Add TIMESTAMP to database.ServerValue

This commit is contained in:
Alex Gentile 2017-06-24 20:46:56 -07:00 committed by GitHub
parent 9c293ef1e5
commit bc2f2c4317
1 changed files with 7 additions and 2 deletions

7
index.d.ts vendored
View File

@ -12,7 +12,12 @@ declare module "react-native-firebase" {
auth(): RNFirebase.auth.Auth;
on(type: string, handler: (msg: any) => void): any;
/** mimics firebase Web SDK */
database(): RNFirebase.database.Database;
database: {
(): RNFirebase.database.Database
ServerValue: {
TIMESTAMP: number
}
}
/**RNFirebase mimics the Web Firebase SDK Storage,
* whilst providing some iOS and Android specific functionality.
*/