From 9d32630d01830c40cdb14e5af83be31ad63bc70e Mon Sep 17 00:00:00 2001 From: taljacobson Date: Wed, 26 Apr 2017 22:12:59 +0300 Subject: [PATCH] add some non type blocking any's --- index.d.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index ba4fc36c..82e1540e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -32,9 +32,10 @@ declare module "react-native-firebase" { * such as a pre-caught exception this is possible by using the report method. */ crash(): RNFirebase.crash.Crash; - + apps: Array; googleApiAvailability: RNFirebase.GoogleApiAvailabilityType; - static initializeApp(options?: any, name?: string): FireBase + static initializeApp(options?: any | RNFirebase.configurationOptions, name?: string): FireBase; + [key: string]: any; } namespace RNFirebase { @@ -155,6 +156,7 @@ declare module "react-native-firebase" { */ putFile(filePath: string, metadata?: any): StorageTask; setMaxDownloadRetryTime(time: number): void + [key: string]: any; } interface Storage { @@ -287,11 +289,13 @@ declare module "react-native-firebase" { * disconnect to firebase backend */ goOffline(): void + [key: string]: any; } interface RnReference extends Reference { keepSynced(bool: boolean): any - filter(name: string, value: any, key?: string): any + filter(name: string, value: any, key?: string): any; + [key: string]: any; } interface Query { @@ -398,7 +402,8 @@ declare module "react-native-firebase" { /** * Sets a key/value pair of data on the current user. */ - setUserProperty(name: string, value: string): void + setUserProperty(name: string, value: string): void; + [key: string]: any; } interface User { @@ -538,9 +543,10 @@ declare module "react-native-firebase" { * given a confirmation code and new password. */ signOut(): Promise + [key: string]: any; } } - + namespace messaging { interface Messaging { @@ -654,6 +660,7 @@ declare module "react-native-firebase" { * An Error object must be passed into the report method. */ report(error: RnError, maxStackSize: Number): void + [key: string]: any; } } }