mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-29 12:45:45 +08:00
[internals] Bump the library and tests app to the latest version of RN, React, etc
This commit is contained in:
@@ -48,7 +48,7 @@ export default class Path {
|
||||
*
|
||||
* @package
|
||||
*/
|
||||
static fromName(name): Path {
|
||||
static fromName(name: string): Path {
|
||||
const parts = name.split('/');
|
||||
|
||||
if (parts.length === 0) {
|
||||
|
||||
@@ -64,6 +64,7 @@ export const buildTypeMap = (value: any): FirestoreTypeMap | null => {
|
||||
} else if (value === DOCUMENT_ID) {
|
||||
return {
|
||||
type: 'documentid',
|
||||
value: null,
|
||||
};
|
||||
} else if (type === 'boolean' || type === 'number' || type === 'string') {
|
||||
return {
|
||||
|
||||
@@ -182,7 +182,7 @@ export type FirestoreQueryDirection = 'DESC' | 'desc' | 'ASC' | 'asc';
|
||||
export type FirestoreQueryOperator = '<' | '<=' | '=' | '==' | '>' | '>=';
|
||||
|
||||
export type FirestoreTypeMap = {
|
||||
type: 'array' | 'boolean' | 'date' | 'fieldvalue' | 'geopoint' | 'null' | 'number' | 'object' | 'reference' | 'string',
|
||||
type: 'array' | 'boolean' | 'date' | 'documentid' | 'fieldvalue' | 'geopoint' | 'null' | 'number' | 'object' | 'reference' | 'string',
|
||||
value: any,
|
||||
}
|
||||
|
||||
|
||||
@@ -30,11 +30,11 @@ export const initialiseLogger = (module: ModuleBase, logNamespace: string) => {
|
||||
};
|
||||
|
||||
export default class Log {
|
||||
static createLogger(namespace) {
|
||||
static createLogger(namespace: string) {
|
||||
return require('bows')(namespace);
|
||||
}
|
||||
|
||||
static setLevel(booleanOrDebugString) {
|
||||
static setLevel(booleanOrDebugString: boolean | string) {
|
||||
window.localStorage.debug = booleanOrDebugString;
|
||||
window.localStorage.debugColors = !!booleanOrDebugString;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user