[types] update types

This commit is contained in:
Salakar
2019-07-15 02:27:45 +01:00
parent 7151a6a364
commit 5becd0dc13
4 changed files with 515 additions and 453 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -266,3 +266,31 @@ declare module '@react-native-firebase/app' {
}
}
}
namespace ReactNativeFirebase {
interface FirebaseConfig {
/**
* Disable or enable auto collection of analytics data.
*
* This is useful for opt-in-first data flows, for example when dealing with GDPR compliance.
* This can be overridden in JavaScript.
*
* #### Example
*
* ```json
* // <project-root>/firebase.json
* {
* "react-native": {
* "analytics_auto_collection_enabled": false
* }
* }
* ```
*
* ```js
* // Re-enable analytics data collection, e.g. once user has granted permission:
* await firebase.analytics().setAnalyticsCollectionEnabled(true);
* ```
*/
analytics_auto_collection_enabled: boolean;
}
}

View File

@@ -58,7 +58,7 @@ export namespace ReactNativeFirebase {
readonly nativeErrorMessage: string;
}
export type FirebaseAppOptions = {
export interface FirebaseAppOptions {
/**
* The Google App ID that is used to uniquely identify an instance of an app.
*/
@@ -113,7 +113,7 @@ export namespace ReactNativeFirebase {
*/
deepLinkURLScheme?: string;
[name: string]: any;
};
}
export interface FirebaseAppConfig {
/**