[internals] Bump the library and tests app to the latest version of RN, React, etc

This commit is contained in:
Chris Bianca
2018-01-16 17:08:44 +00:00
parent d73928432d
commit 63859b311d
23 changed files with 2050 additions and 604 deletions

View File

@@ -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) {

View File

@@ -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 {

View File

@@ -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,
}

View File

@@ -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;
}