Update typings to allow null values to clear Analytics values

See https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics#setUserId(java.lang.String)
This commit is contained in:
Yousef 2017-10-24 12:41:19 +02:00 committed by GitHub
parent 83cb4e8e65
commit c6468cd017
1 changed files with 3 additions and 3 deletions

6
index.d.ts vendored
View File

@ -392,7 +392,7 @@ declare module "react-native-firebase" {
* it is recommended it is always sent as your current class name, * it is recommended it is always sent as your current class name,
* for example on Android it will always show as 'MainActivity' if not specified. * for example on Android it will always show as 'MainActivity' if not specified.
*/ */
setCurrentScreen(screenName: string, screenClassOverride?: string): void setCurrentScreen(screenName: string | null, screenClassOverride?: string): void
/** /**
* Sets the minimum engagement time required before starting a session. * Sets the minimum engagement time required before starting a session.
* The default value is 10000 (10 seconds) * The default value is 10000 (10 seconds)
@ -410,11 +410,11 @@ declare module "react-native-firebase" {
* *
* firebase.analytics().setUserId(id); * firebase.analytics().setUserId(id);
*/ */
setUserId(id: string): void setUserId(id: string | null): void
/** /**
* Sets a key/value pair of data on the current user. * Sets a key/value pair of data on the current user.
*/ */
setUserProperty(name: string, value: string): void; setUserProperty(name: string, value: string | null): void;
[key: string]: any; [key: string]: any;
} }