mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-19 23:40:20 +08:00
[types] update types
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
28
packages/analytics/lib/index.d.ts
vendored
28
packages/analytics/lib/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
4
packages/app/lib/index.d.ts
vendored
4
packages/app/lib/index.d.ts
vendored
@@ -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 {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user