For each desired package, place the below file into your patches/
directory, and enable https://github.com/ds300/patch-package via postinstall
hook.
Last active
September 25, 2020 15:53
-
-
Save davidgovea/2feea6af41b41f76fae1a9c14465cb69 to your computer and use it in GitHub Desktop.
Test patches for https://github.com/invertase/react-native-firebase/pull/4306
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/admob/lib/index.d.ts b/node_modules/@react-native-firebase/admob/lib/index.d.ts | |
index eba141c..921d2db 100644 | |
--- a/node_modules/@react-native-firebase/admob/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/admob/lib/index.d.ts | |
@@ -14,8 +14,8 @@ | |
* limitations under the License. | |
* | |
*/ | |
- | |
import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
+import * as React from 'react'; | |
/** | |
* Firebase Admob package for React Native. | |
@@ -398,9 +398,9 @@ export namespace FirebaseAdMobTypes { | |
*/ | |
setDebugGeography( | |
geography: | |
- | AdsConsentDebugGeography.DISABLED | |
- | AdsConsentDebugGeography.EEA | |
- | AdsConsentDebugGeography.NOT_EEA, | |
+ | AdsConsentDebugGeography['DISABLED'] | |
+ | AdsConsentDebugGeography['EEA'] | |
+ | AdsConsentDebugGeography['NOT_EEA'], | |
): Promise<void>; | |
/** | |
@@ -424,9 +424,9 @@ export namespace FirebaseAdMobTypes { | |
*/ | |
setStatus( | |
status: | |
- | AdsConsentStatus.UNKNOWN | |
- | AdsConsentStatus.NON_PERSONALIZED | |
- | AdsConsentStatus.PERSONALIZED, | |
+ | AdsConsentStatus['UNKNOWN'] | |
+ | AdsConsentStatus['NON_PERSONALIZED'] | |
+ | AdsConsentStatus['PERSONALIZED'], | |
): Promise<void>; | |
/** | |
@@ -443,7 +443,9 @@ export namespace FirebaseAdMobTypes { | |
* ``` | |
*/ | |
getStatus(): Promise< | |
- AdsConsentStatus.UNKNOWN | AdsConsentStatus.NON_PERSONALIZED | AdsConsentStatus.PERSONALIZED | |
+ | AdsConsentStatus['UNKNOWN'] | |
+ | AdsConsentStatus['NON_PERSONALIZED'] | |
+ | AdsConsentStatus['PERSONALIZED'] | |
>; | |
/** | |
@@ -537,9 +539,9 @@ export namespace FirebaseAdMobTypes { | |
* - PERSONALIZED: The user has accepted personalized ads. | |
*/ | |
status: | |
- | AdsConsentStatus.UNKNOWN | |
- | AdsConsentStatus.NON_PERSONALIZED | |
- | AdsConsentStatus.PERSONALIZED; | |
+ | AdsConsentStatus['UNKNOWN'] | |
+ | AdsConsentStatus['NON_PERSONALIZED'] | |
+ | AdsConsentStatus['PERSONALIZED']; | |
/** | |
* If `true`, the user requested an ad-free version of your application. | |
@@ -559,9 +561,9 @@ export namespace FirebaseAdMobTypes { | |
* - PERSONALIZED: The user has accepted personalized ads. | |
*/ | |
status: | |
- | AdsConsentStatus.UNKNOWN | |
- | AdsConsentStatus.NON_PERSONALIZED | |
- | AdsConsentStatus.PERSONALIZED; | |
+ | AdsConsentStatus['UNKNOWN'] | |
+ | AdsConsentStatus['NON_PERSONALIZED'] | |
+ | AdsConsentStatus['PERSONALIZED']; | |
/** | |
* If `true` the user is within the EEA or their location could not be determined. | |
@@ -768,10 +770,10 @@ export namespace FirebaseAdMobTypes { | |
* Ratings are based on the [digital content label classifications](https://support.google.com/admob/answer/7562142). | |
*/ | |
maxAdContentRating?: | |
- | MaxAdContentRating.G | |
- | MaxAdContentRating.PG | |
- | MaxAdContentRating.T | |
- | MaxAdContentRating.MA; | |
+ | MaxAdContentRating['G'] | |
+ | MaxAdContentRating['PG'] | |
+ | MaxAdContentRating['T'] | |
+ | MaxAdContentRating['MA']; | |
/** | |
* If `true`, indicates that you want your content treated as child-directed for purposes of COPPA. | |
@@ -843,14 +845,14 @@ export namespace FirebaseAdMobTypes { | |
*/ | |
export type AdEventListener = ( | |
type: | |
- | AdEventType.LOADED | |
- | AdEventType.ERROR | |
- | AdEventType.OPENED | |
- | AdEventType.CLICKED | |
- | AdEventType.LEFT_APPLICATION | |
- | AdEventType.CLOSED | |
- | RewardedAdEventType.LOADED | |
- | RewardedAdEventType.EARNED_REWARD, | |
+ | AdEventType['LOADED'] | |
+ | AdEventType['ERROR'] | |
+ | AdEventType['OPENED'] | |
+ | AdEventType['CLICKED'] | |
+ | AdEventType['LEFT_APPLICATION'] | |
+ | AdEventType['CLOSED'] | |
+ | RewardedAdEventType['LOADED'] | |
+ | RewardedAdEventType['EARNED_REWARD'], | |
error?: Error, | |
data?: any | RewardedAdReward, | |
) => void; | |
@@ -1180,35 +1182,29 @@ export namespace FirebaseAdMobTypes { | |
} | |
} | |
-declare module '@react-native-firebase/admob' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import React from 'react'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
- import BannerAd = FirebaseAdMobTypes.BannerAd; | |
- | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
- | |
- export const AdsConsentDebugGeography: {} & FirebaseAdMobTypes.AdsConsentDebugGeography; | |
- export const AdsConsentStatus: {} & FirebaseAdMobTypes.AdsConsentStatus; | |
- export const MaxAdContentRating: {} & FirebaseAdMobTypes.MaxAdContentRating; | |
- export const TestIds: {} & FirebaseAdMobTypes.TestIds; | |
- export const AdEventType: {} & FirebaseAdMobTypes.AdEventType; | |
- export const BannerAdSize: {} & FirebaseAdMobTypes.BannerAdSize; | |
- export const RewardedAdEventType: {} & FirebaseAdMobTypes.RewardedAdEventType; | |
- export const AdsConsent: {} & FirebaseAdMobTypes.AdsConsent; | |
- export const InterstitialAd: typeof FirebaseAdMobTypes.InterstitialAd; | |
- export const RewardedAd: typeof FirebaseAdMobTypes.RewardedAd; | |
- export const BannerAd: React.SFC<BannerAd>; | |
- | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseAdMobTypes.Module, | |
- FirebaseAdMobTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export const AdsConsentDebugGeography: FirebaseAdMobTypes.AdsConsentDebugGeography; | |
+export const AdsConsentStatus: FirebaseAdMobTypes.AdsConsentStatus; | |
+export const MaxAdContentRating: FirebaseAdMobTypes.MaxAdContentRating; | |
+export const TestIds: FirebaseAdMobTypes.TestIds; | |
+export const AdEventType: FirebaseAdMobTypes.AdEventType; | |
+export const BannerAdSize: FirebaseAdMobTypes.BannerAdSize; | |
+export const RewardedAdEventType: FirebaseAdMobTypes.RewardedAdEventType; | |
+export const AdsConsent: FirebaseAdMobTypes.AdsConsent; | |
+export const InterstitialAd: typeof FirebaseAdMobTypes.InterstitialAd; | |
+export const RewardedAd: typeof FirebaseAdMobTypes.RewardedAd; | |
+export const BannerAd: React.SFC<FirebaseAdMobTypes.BannerAd>; | |
+ | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseAdMobTypes.Module, | |
+ FirebaseAdMobTypes.Statics | |
+>; | |
+ | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ storage: typeof defaultExport; | |
+ app(name?: string): ReactNativeFirebase.FirebaseApp & { admob(): FirebaseAdMobTypes.Module }; | |
+}; | |
+ | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -1224,41 +1220,39 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
admob(): FirebaseAdMobTypes.Module; | |
} | |
- } | |
-} | |
- | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- /** | |
- * The Google AdMob application App ID for Android. | |
- * | |
- * This can be found under: Apps > App settings > App ID on the Google AdMob dashboard. | |
- * | |
- * For testing purposes, use the App ID: `ca-app-pub-3940256099942544~3347511713`. | |
- * | |
- * @android | |
- */ | |
- admob_android_app_id: string; | |
- /** | |
- * The Google AdMob application App ID for iOS. | |
- * | |
- * This can be found under: Apps > App settings > App ID on the Google AdMob dashboard. | |
- * | |
- * For testing purposes, use the App ID: `ca-app-pub-3940256099942544~1458002511`. | |
- * | |
- * @ios | |
- */ | |
- admob_ios_app_id: string; | |
- | |
- /** | |
- * By default, the Google Mobile Ads SDK initializes app measurement and begins sending user-level event data to | |
- * Google immediately when the app starts. This initialization behavior ensures you can enable AdMob user metrics | |
- * without making additional code changes. | |
- * | |
- * If you require your app users to provide consent before collecting data, setting the value to `true` will prevent | |
- * data being sent until the `firebase.admob().initialize()` method has been called. | |
- */ | |
- admob_delay_app_measurement_init: boolean; | |
+ interface FirebaseJsonConfig { | |
+ /** | |
+ * The Google AdMob application App ID for Android. | |
+ * | |
+ * This can be found under: Apps > App settings > App ID on the Google AdMob dashboard. | |
+ * | |
+ * For testing purposes, use the App ID: `ca-app-pub-3940256099942544~3347511713`. | |
+ * | |
+ * @android | |
+ */ | |
+ admob_android_app_id: string; | |
+ | |
+ /** | |
+ * The Google AdMob application App ID for iOS. | |
+ * | |
+ * This can be found under: Apps > App settings > App ID on the Google AdMob dashboard. | |
+ * | |
+ * For testing purposes, use the App ID: `ca-app-pub-3940256099942544~1458002511`. | |
+ * | |
+ * @ios | |
+ */ | |
+ admob_ios_app_id: string; | |
+ | |
+ /** | |
+ * By default, the Google Mobile Ads SDK initializes app measurement and begins sending user-level event data to | |
+ * Google immediately when the app starts. This initialization behavior ensures you can enable AdMob user metrics | |
+ * without making additional code changes. | |
+ * | |
+ * If you require your app users to provide consent before collecting data, setting the value to `true` will prevent | |
+ * data being sent until the `firebase.admob().initialize()` method has been called. | |
+ */ | |
+ admob_delay_app_measurement_init: boolean; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/analytics/lib/index.d.ts b/node_modules/@react-native-firebase/analytics/lib/index.d.ts | |
index a0796b2..0777066 100644 | |
--- a/node_modules/@react-native-firebase/analytics/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/analytics/lib/index.d.ts | |
@@ -1262,7 +1262,7 @@ export namespace FirebaseAnalyticsTypes { | |
* | |
* @param params See {@link analytics.SetCheckoutOptionEventParameters}. | |
*/ | |
- logSetCheckoutOption(params: SetCheckoutOptionEventParameters): Promise<void>; | |
+ logSetCheckoutOption(params: any): Promise<void>; | |
/** | |
* Share event. Apps with social features can log the Share event to identify the most viral content. | |
@@ -1480,21 +1480,19 @@ export namespace FirebaseAnalyticsTypes { | |
} | |
} | |
-declare module '@react-native-firebase/analytics' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< | |
+ FirebaseAnalyticsTypes.Module, | |
+ FirebaseAnalyticsTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ analytics: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { analytics(): FirebaseAnalyticsTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStatics< | |
- FirebaseAnalyticsTypes.Module, | |
- FirebaseAnalyticsTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -1512,33 +1510,31 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
analytics(): FirebaseAnalyticsTypes.Module; | |
} | |
- } | |
-} | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- /** | |
- * 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; | |
+ interface FirebaseJsonConfig { | |
+ /** | |
+ * 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; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/app/lib/index.d.ts b/node_modules/@react-native-firebase/app/lib/index.d.ts | |
index 93320d9..ee81e45 100644 | |
--- a/node_modules/@react-native-firebase/app/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/app/lib/index.d.ts | |
@@ -148,6 +148,8 @@ export namespace ReactNativeFirebase { | |
* Make this app unusable and free up resources. | |
*/ | |
delete(): Promise<void>; | |
+ | |
+ utils(): Utils.Module; | |
} | |
export interface Module { | |
@@ -189,6 +191,13 @@ export namespace ReactNativeFirebase { | |
* The current React Native Firebase version. | |
*/ | |
readonly SDK_VERSION: string; | |
+ | |
+ /** | |
+ * Utils provides a collection of utilities to aid in using Firebase | |
+ * and related services inside React Native, e.g. Test Lab helpers | |
+ * and Google Play Services version helpers. | |
+ */ | |
+ utils: typeof utils; | |
} | |
/** | |
@@ -536,37 +545,10 @@ export namespace Utils { | |
} | |
} | |
-declare module '@react-native-firebase/app' { | |
- /** | |
- * Add Utils module as a named export for `app`. | |
- */ | |
- export const utils: ReactNativeFirebase.FirebaseModuleWithStatics<Utils.Module, Utils.Statics>; | |
- | |
- /** | |
- * Default Firebase export. | |
- */ | |
- const module: {} & ReactNativeFirebase.Module; | |
- export default module; | |
-} | |
+/** | |
+ * Add Utils module as a named export for `app`. | |
+ */ | |
+export const utils: ReactNativeFirebase.FirebaseModuleWithStatics<Utils.Module, Utils.Statics>; | |
-declare module '@react-native-firebase/app' { | |
- /** | |
- * Attach Utils namespace to `firebase.` and `FirebaseApp.`. | |
- */ | |
- namespace ReactNativeFirebase { | |
- import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; | |
- | |
- interface Module { | |
- /** | |
- * Utils provides a collection of utilities to aid in using Firebase | |
- * and related services inside React Native, e.g. Test Lab helpers | |
- * and Google Play Services version helpers. | |
- */ | |
- utils: FirebaseModuleWithStatics<Utils.Module, Utils.Statics>; | |
- } | |
- | |
- interface FirebaseApp { | |
- utils(): Utils.Module; | |
- } | |
- } | |
-} | |
+declare const module: ReactNativeFirebase.Module; | |
+export default module; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/auth/lib/index.d.ts b/node_modules/@react-native-firebase/auth/lib/index.d.ts | |
index fc451a5..286111a 100644 | |
--- a/node_modules/@react-native-firebase/auth/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/auth/lib/index.d.ts | |
@@ -1634,21 +1634,17 @@ export namespace FirebaseAuthTypes { | |
type CallbackOrObserver<T extends (...args: any[]) => any> = T | { next: T }; | |
-declare module '@react-native-firebase/auth' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
- | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
- | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseAuthTypes.Module, | |
- FirebaseAuthTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseAuthTypes.Module, | |
+ FirebaseAuthTypes.Statics | |
+>; | |
+ | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ auth: typeof defaultExport; | |
+ app(name?: string): ReactNativeFirebase.FirebaseApp & { auth(): FirebaseAuthTypes.Module }; | |
+}; | |
+ | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/crashlytics/lib/index.d.ts b/node_modules/@react-native-firebase/crashlytics/lib/index.d.ts | |
index f518612..62459ba 100644 | |
--- a/node_modules/@react-native-firebase/crashlytics/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/crashlytics/lib/index.d.ts | |
@@ -249,21 +249,19 @@ export namespace FirebaseCrashlyticsTypes { | |
} | |
} | |
-declare module '@react-native-firebase/crashlytics' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< | |
+ FirebaseCrashlyticsTypes.Module, | |
+ FirebaseCrashlyticsTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ crashlytics: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { crashlytics(): FirebaseCrashlyticsTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStatics< | |
- FirebaseCrashlyticsTypes.Module, | |
- FirebaseCrashlyticsTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -280,13 +278,11 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
crashlytics(): FirebaseCrashlyticsTypes.Module; | |
} | |
- } | |
-} | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- crashlytics_ndk_enabled: boolean; | |
- crashlytics_debug_enabled: boolean; | |
- crashlytics_auto_collection_enabled: boolean; | |
+ interface FirebaseJsonConfig { | |
+ crashlytics_ndk_enabled: boolean; | |
+ crashlytics_debug_enabled: boolean; | |
+ crashlytics_auto_collection_enabled: boolean; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/database/lib/index.d.ts b/node_modules/@react-native-firebase/database/lib/index.d.ts | |
index dcb2894..31316ce 100644 | |
--- a/node_modules/@react-native-firebase/database/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/database/lib/index.d.ts | |
@@ -264,7 +264,7 @@ export namespace FirebaseDatabaseTypes { | |
* @param values Object containing multiple values. | |
* @param onComplete Callback called when write to server is complete. Contains the parameters (Error | null). | |
*/ | |
- update(values: { [key: string]: value }, onComplete?: Function): Promise<void>; | |
+ update(values: { [key: string]: any }, onComplete?: Function): Promise<void>; | |
/** | |
* Sets a priority for the data at this Database location. Setting null removes any priority at this location. | |
@@ -915,7 +915,7 @@ export namespace FirebaseDatabaseTypes { | |
* @param values Object containing multiple values. | |
* @param onComplete An optional callback function that will be called when synchronization to the server has completed. The callback will be passed a single parameter: null for success, or an Error object indicating a failure. | |
*/ | |
- update(values: { [key: string]: value }, onComplete?: Function): Promise<void>; | |
+ update(values: { [key: string]: any }, onComplete?: Function): Promise<void>; | |
} | |
export type EventType = | |
@@ -1248,21 +1248,19 @@ export namespace FirebaseDatabaseTypes { | |
} | |
} | |
-declare module '@react-native-firebase/database' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseDatabaseTypes.Module, | |
+ FirebaseDatabaseTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ database: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { database(): FirebaseDatabaseTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseDatabaseTypes.Module, | |
- FirebaseDatabaseTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -1280,32 +1278,30 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
database(databaseUrl?: string): FirebaseDatabaseTypes.Module; | |
} | |
- } | |
-} | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- /** | |
- * Set whether database persistence is enabled or disabled. | |
- * | |
- * This can be overridden in JavaScript, e.g. when requesting permission or on a condition. | |
- * | |
- * #### Example | |
- * | |
- * ```json | |
- * // <project-root>/firebase.json | |
- * { | |
- * "react-native": { | |
- * "database_persistence_enabled": false | |
- * } | |
- * } | |
- * ``` | |
- * | |
- * ```js | |
- * // Re-enable database persistence | |
- * await firebase.database().setPersistenceEnabled(true); | |
- * ``` | |
- */ | |
- database_persistence_enabled: boolean; | |
+ interface FirebaseJsonConfig { | |
+ /** | |
+ * Set whether database persistence is enabled or disabled. | |
+ * | |
+ * This can be overridden in JavaScript, e.g. when requesting permission or on a condition. | |
+ * | |
+ * #### Example | |
+ * | |
+ * ```json | |
+ * // <project-root>/firebase.json | |
+ * { | |
+ * "react-native": { | |
+ * "database_persistence_enabled": false | |
+ * } | |
+ * } | |
+ * ``` | |
+ * | |
+ * ```js | |
+ * // Re-enable database persistence | |
+ * await firebase.database().setPersistenceEnabled(true); | |
+ * ``` | |
+ */ | |
+ database_persistence_enabled: boolean; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/dynamic-links/lib/index.d.ts b/node_modules/@react-native-firebase/dynamic-links/lib/index.d.ts | |
index c8f0c45..0083f6f 100644 | |
--- a/node_modules/@react-native-firebase/dynamic-links/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/dynamic-links/lib/index.d.ts | |
@@ -540,7 +540,7 @@ export namespace FirebaseDynamicLinksTypes { | |
* @returns Unsubscribe function, call the returned function to unsubscribe from all future events. | |
* @param listener The listener callback, called with Dynamic Link instances. | |
*/ | |
- onLink(listener: Function<DynamicLink>): Function; | |
+ onLink(listener: (link: DynamicLink) => void): Function; | |
/** | |
* Resolve a given dynamic link (short or long) directly. | |
@@ -566,21 +566,19 @@ export namespace FirebaseDynamicLinksTypes { | |
} | |
} | |
-declare module '@react-native-firebase/dynamic-links' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< | |
+ FirebaseDynamicLinksTypes.Module, | |
+ FirebaseDynamicLinksTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ dynamicLinks: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { dynamicLinks(): FirebaseDynamicLinksTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStatics< | |
- FirebaseDynamicLinksTypes.Module, | |
- FirebaseDynamicLinksTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/firestore/lib/index.d.ts b/node_modules/@react-native-firebase/firestore/lib/index.d.ts | |
index 8ea648b..0c17e0d 100644 | |
--- a/node_modules/@react-native-firebase/firestore/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/firestore/lib/index.d.ts | |
@@ -1962,7 +1962,7 @@ export namespace FirebaseFirestoreTypes { | |
* }); | |
* ``` | |
*/ | |
- runTransaction(updateFunction: (transaction: Transaction) => Promise): Promise<any>; | |
+ runTransaction(updateFunction: (transaction: Transaction) => Promise<any>): Promise<any>; | |
/** | |
* Specifies custom settings to be used to configure the Firestore instance. Must be set before invoking any other methods. | |
@@ -2023,21 +2023,19 @@ export namespace FirebaseFirestoreTypes { | |
} | |
} | |
-declare module '@react-native-firebase/firestore' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseFirestoreTypes.Module, | |
+ FirebaseFirestoreTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ firestore: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { firestore(): FirebaseFirestoreTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseFirestoreTypes.Module, | |
- FirebaseFirestoreTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/functions/lib/index.d.ts b/node_modules/@react-native-firebase/functions/lib/index.d.ts | |
index 7bf0f34..d1c7ecb 100644 | |
--- a/node_modules/@react-native-firebase/functions/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/functions/lib/index.d.ts | |
@@ -359,21 +359,19 @@ export namespace FirebaseFunctionsTypes { | |
} | |
} | |
-declare module '@react-native-firebase/functions' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseFunctionsTypes.Module, | |
+ FirebaseFunctionsTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ functions: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { functions(): FirebaseFunctionsTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseFunctionsTypes.Module, | |
- FirebaseFunctionsTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/iid/lib/index.d.ts b/node_modules/@react-native-firebase/iid/lib/index.d.ts | |
index 2370a6d..fab2763 100644 | |
--- a/node_modules/@react-native-firebase/iid/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/iid/lib/index.d.ts | |
@@ -131,21 +131,17 @@ export namespace FirebaseIidTypes { | |
} | |
} | |
-declare module '@react-native-firebase/iid' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseIidTypes.Module, | |
+ FirebaseIidTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ iid: typeof defaultExport; | |
+ app(name?: string): ReactNativeFirebase.FirebaseApp & { iid(): FirebaseIidTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseIidTypes.Module, | |
- FirebaseIidTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/in-app-messaging/lib/index.d.ts b/node_modules/@react-native-firebase/in-app-messaging/lib/index.d.ts | |
index 28bd6aa..ef6eb59 100644 | |
--- a/node_modules/@react-native-firebase/in-app-messaging/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/in-app-messaging/lib/index.d.ts | |
@@ -147,21 +147,19 @@ export namespace FirebaseInAppMessagingTypes { | |
} | |
} | |
-declare module '@react-native-firebase/in-app-messaging' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< | |
+ FirebaseInAppMessagingTypes.Module, | |
+ FirebaseInAppMessagingTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ inAppMessaging: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { inAppMessaging(): FirebaseInAppMessagingTypes.Module }; | |
+}; | |
- const module: FirebaseModuleWithStatics< | |
- FirebaseInAppMessagingTypes.Module, | |
- FirebaseInAppMessagingTypes.Statics | |
- >; | |
- export default module; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -179,33 +177,31 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
inAppMessaging(): FirebaseInAppMessagingTypes.Module; | |
} | |
- } | |
-} | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- /** | |
- * Disable or enable auto collection & receiving of in-app messages and data collection. | |
- * | |
- * 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": { | |
- * "in_app_messaging_auto_collection_enabled": false | |
- * } | |
- * } | |
- * ``` | |
- * | |
- * ```js | |
- * // Re-enable in-app messaging, e.g. once user has granted permission: | |
- * await firebase.inAppMessaging().setAutomaticDataCollectionEnabled(true); | |
- * ``` | |
- */ | |
- in_app_messaging_auto_collection_enabled: boolean; | |
+ interface FirebaseJsonConfig { | |
+ /** | |
+ * Disable or enable auto collection & receiving of in-app messages and data collection. | |
+ * | |
+ * 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": { | |
+ * "in_app_messaging_auto_collection_enabled": false | |
+ * } | |
+ * } | |
+ * ``` | |
+ * | |
+ * ```js | |
+ * // Re-enable in-app messaging, e.g. once user has granted permission: | |
+ * await firebase.inAppMessaging().setAutomaticDataCollectionEnabled(true); | |
+ * ``` | |
+ */ | |
+ in_app_messaging_auto_collection_enabled: boolean; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/messaging/lib/index.d.ts b/node_modules/@react-native-firebase/messaging/lib/index.d.ts | |
index f036f3b..1d89b7a 100644 | |
--- a/node_modules/@react-native-firebase/messaging/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/messaging/lib/index.d.ts | |
@@ -608,7 +608,7 @@ export namespace FirebaseMessagingTypes { | |
* @param authorizedEntity The messaging sender ID. In most cases this will be the current default app. | |
* @param scope The scope to assign a token, which the sever can use to target messages at. | |
*/ | |
- getToken(authorizedEntity?: string, scope?: string = 'FCM'): Promise<string>; | |
+ getToken(authorizedEntity?: string, scope?: string): Promise<string>; | |
/** | |
* Removes access to an FCM token previously authorized by it's scope. Messages sent by the server | |
@@ -623,7 +623,7 @@ export namespace FirebaseMessagingTypes { | |
* @param authorizedEntity The messaging sender ID. In most cases this will be the current default app. | |
* @param scope The scope to assign when token will be deleted. | |
*/ | |
- deleteToken(authorizedEntity?: string, scope?: string = 'FCM'): Promise<void>; | |
+ deleteToken(authorizedEntity?: string, scope?: string): Promise<void>; | |
/** | |
* When any FCM payload is received, the listener callback is called with a `RemoteMessage`. | |
@@ -897,7 +897,7 @@ export namespace FirebaseMessagingTypes { | |
* ``` | |
* | |
*/ | |
- setBackgroundMessageHandler(handler: (message: RemoteMessage) => Promise<any>); | |
+ setBackgroundMessageHandler(handler: (message: RemoteMessage) => Promise<any>): void; | |
/** | |
* Send a new `RemoteMessage` to the FCM server. | |
@@ -949,21 +949,19 @@ export namespace FirebaseMessagingTypes { | |
} | |
} | |
-declare module '@react-native-firebase/messaging' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< | |
+ FirebaseMessagingTypes.Module, | |
+ FirebaseMessagingTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ messaging: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { messaging(): FirebaseMessagingTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStatics< | |
- FirebaseMessagingTypes.Module, | |
- FirebaseMessagingTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -981,23 +979,21 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
messaging(): FirebaseMessagingTypes.Module; | |
} | |
- } | |
-} | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- messaging_auto_init_enabled?: boolean; | |
- messaging_android_headless_task_timeout?: number; | |
- messaging_android_notification_channel_id?: string; | |
- messaging_android_notification_color?: string; | |
- /** | |
- * Whether RNFirebase Messaging automatically calls `[[UIApplication sharedApplication] registerForRemoteNotifications];` | |
- * automatically on app launch (recommended) - defaults to true. | |
- * | |
- * If set to false; make sure to call `firebase.messaging().registerDeviceForRemoteMessages()` | |
- * early on in your app startup - otherwise you will NOT receive remote messages/notifications | |
- * in your app. | |
- */ | |
- messaging_ios_auto_register_for_remote_messages?: boolean; | |
+ interface FirebaseJsonConfig { | |
+ messaging_auto_init_enabled?: boolean; | |
+ messaging_android_headless_task_timeout?: number; | |
+ messaging_android_notification_channel_id?: string; | |
+ messaging_android_notification_color?: string; | |
+ /** | |
+ * Whether RNFirebase Messaging automatically calls `[[UIApplication sharedApplication] registerForRemoteNotifications];` | |
+ * automatically on app launch (recommended) - defaults to true. | |
+ * | |
+ * If set to false; make sure to call `firebase.messaging().registerDeviceForRemoteMessages()` | |
+ * early on in your app startup - otherwise you will NOT receive remote messages/notifications | |
+ * in your app. | |
+ */ | |
+ messaging_ios_auto_register_for_remote_messages?: boolean; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/ml-natural-language/lib/index.d.ts b/node_modules/@react-native-firebase/ml-natural-language/lib/index.d.ts | |
index 2ec7452..ef4e4e1 100644 | |
--- a/node_modules/@react-native-firebase/ml-natural-language/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/ml-natural-language/lib/index.d.ts | |
@@ -224,21 +224,19 @@ export namespace FirebaseLanguageTypes { | |
} | |
} | |
-declare module '@react-native-firebase/ml-natural-language' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseLanguageTypes.Module, | |
+ FirebaseLanguageTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ naturalLanguage: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { naturalLanguage(): FirebaseLanguageTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseLanguageTypes.Module, | |
- FirebaseLanguageTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -257,19 +255,17 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
naturalLanguage(): FirebaseLanguageTypes.Module; | |
} | |
- } | |
-} | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- /** | |
- * If `true`, the Language ID Model will be installed onto the device. | |
- */ | |
- ml_natural_language_language_id_model: boolean; | |
+ interface FirebaseJsonConfig { | |
+ /** | |
+ * If `true`, the Language ID Model will be installed onto the device. | |
+ */ | |
+ ml_natural_language_language_id_model: boolean; | |
- /** | |
- * If `true`, the Smart Reply Model will be installed onto the device. | |
- */ | |
- ml_natural_language_smart_reply_model: boolean; | |
+ /** | |
+ * If `true`, the Smart Reply Model will be installed onto the device. | |
+ */ | |
+ ml_natural_language_smart_reply_model: boolean; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/ml-vision/lib/index.d.ts b/node_modules/@react-native-firebase/ml-vision/lib/index.d.ts | |
index 156d3a2..dd18c28 100644 | |
--- a/node_modules/@react-native-firebase/ml-vision/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/ml-vision/lib/index.d.ts | |
@@ -16,7 +16,7 @@ | |
*/ | |
import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- | |
+import { MLKitVision } from './BarcodeDetectorTypes'; | |
/** | |
* Firebase ML Kit package for React Native. | |
* | |
@@ -66,12 +66,12 @@ export namespace FirebaseVisionTypes { | |
VisionFaceContourType: typeof VisionFaceContourType; | |
VisionCloudLandmarkRecognizerModelType: typeof VisionCloudLandmarkRecognizerModelType; | |
VisionDocumentTextRecognizedBreakType: typeof VisionDocumentTextRecognizedBreakType; | |
- VisionBarcodeFormat: typeof VisionBarcodeFormat; | |
- VisionBarcodeValueType: typeof VisionBarcodeValueType; | |
- VisionBarcodeAddressType: typeof VisionBarcodeAddressType; | |
- VisionBarcodeEmailType: typeof VisionBarcodeEmailType; | |
- VisionBarcodePhoneType: typeof VisionBarcodePhoneType; | |
- VisionBarcodeWifiEncryptionType: typeof VisionBarcodeWifiEncryptionType; | |
+ VisionBarcodeFormat: typeof MLKitVision.VisionBarcodeFormat; | |
+ VisionBarcodeValueType: typeof MLKitVision.VisionBarcodeValueType; | |
+ VisionBarcodeAddressType: typeof MLKitVision.VisionBarcodeAddressType; | |
+ VisionBarcodeEmailType: typeof MLKitVision.VisionBarcodeEmailType; | |
+ VisionBarcodePhoneType: typeof MLKitVision.VisionBarcodePhoneType; | |
+ VisionBarcodeWifiEncryptionType: typeof MLKitVision.VisionBarcodeWifiEncryptionType; | |
} | |
/** | |
@@ -671,7 +671,12 @@ export namespace FirebaseVisionTypes { | |
/** | |
* A hierarchical representation of document text recognized in an image. | |
*/ | |
- export interface VisionDocumentText extends VisionText { | |
+ export interface VisionDocumentText { | |
+ /** | |
+ * Retrieve the recognized text as a string. | |
+ */ | |
+ text: string; | |
+ | |
/** | |
* Gets an array `VisionTextBlock`, which is a block of text that can be further decomposed to an array of `VisionDocumentTextParagraph`. | |
*/ | |
@@ -1170,42 +1175,38 @@ export namespace FirebaseVisionTypes { | |
*/ | |
barcodeDetectorProcessImage( | |
imageFilePath: string, | |
- barcodeDetectorOptions?: VisionBarcodeDetectorOptions, | |
- ): Promise<VisionBarcode[]>; | |
+ barcodeDetectorOptions?: MLKitVision.VisionBarcodeDetectorOptions, | |
+ ): Promise<MLKitVision.VisionBarcode[]>; | |
} | |
} | |
-declare module '@react-native-firebase/ml-vision' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
- | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
- | |
- export const VisionBarcodeFormat: {} & typeof FirebaseVisionTypes.VisionBarcodeFormat; | |
- export const VisionFaceContourType: {} & typeof FirebaseVisionTypes.VisionFaceContourType; | |
- export const VisionFaceLandmarkType: {} & typeof FirebaseVisionTypes.VisionFaceLandmarkType; | |
- export const VisionBarcodeValueType: {} & typeof FirebaseVisionTypes.VisionBarcodeValueType; | |
- export const VisionBarcodeEmailType: {} & typeof FirebaseVisionTypes.VisionBarcodeEmailType; | |
- export const VisionBarcodePhoneType: {} & typeof FirebaseVisionTypes.VisionBarcodePhoneType; | |
- export const VisionBarcodeAddressType: {} & typeof FirebaseVisionTypes.VisionBarcodeAddressType; | |
- export const VisionFaceDetectorContourMode: {} & typeof FirebaseVisionTypes.VisionFaceDetectorContourMode; | |
- export const VisionFaceDetectorLandmarkMode: {} & typeof FirebaseVisionTypes.VisionFaceDetectorLandmarkMode; | |
- export const VisionBarcodeWifiEncryptionType: {} & FirebaseVisionTypes.VisionBarcodeWifiEncryptionType; | |
- export const VisionFaceDetectorPerformanceMode: {} & typeof FirebaseVisionTypes.VisionFaceDetectorPerformanceMode; | |
- export const VisionCloudTextRecognizerModelType: {} & typeof FirebaseVisionTypes.VisionCloudTextRecognizerModelType; | |
- export const VisionFaceDetectorClassificationMode: {} & typeof FirebaseVisionTypes.VisionFaceDetectorClassificationMode; | |
- export const VisionDocumentTextRecognizedBreakType: {} & typeof FirebaseVisionTypes.VisionDocumentTextRecognizedBreakType; | |
- export const VisionCloudLandmarkRecognizerModelType: {} & typeof FirebaseVisionTypes.VisionCloudLandmarkRecognizerModelType; | |
- | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseVisionTypes.Module, | |
- FirebaseVisionTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseVisionTypes.Module, | |
+ FirebaseVisionTypes.Statics | |
+>; | |
+ | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ analytics: typeof defaultExport; | |
+ app(name?: string): ReactNativeFirebase.FirebaseApp & { vision(): FirebaseVisionTypes.Module }; | |
+}; | |
+ | |
+export const VisionBarcodeFormat: FirebaseVisionTypes.Statics['VisionBarcodeFormat']; | |
+export const VisionFaceContourType: FirebaseVisionTypes.Statics['VisionFaceContourType']; | |
+export const VisionFaceLandmarkType: FirebaseVisionTypes.Statics['VisionFaceLandmarkType']; | |
+export const VisionBarcodeValueType: FirebaseVisionTypes.Statics['VisionBarcodeValueType']; | |
+export const VisionBarcodeEmailType: FirebaseVisionTypes.Statics['VisionBarcodeEmailType']; | |
+export const VisionBarcodePhoneType: FirebaseVisionTypes.Statics['VisionBarcodePhoneType']; | |
+export const VisionBarcodeAddressType: FirebaseVisionTypes.Statics['VisionBarcodeAddressType']; | |
+export const VisionFaceDetectorContourMode: FirebaseVisionTypes.Statics['VisionFaceDetectorContourMode']; | |
+export const VisionFaceDetectorLandmarkMode: FirebaseVisionTypes.Statics['VisionFaceDetectorLandmarkMode']; | |
+export const VisionBarcodeWifiEncryptionType: FirebaseVisionTypes.Statics['VisionBarcodeWifiEncryptionType']; | |
+export const VisionFaceDetectorPerformanceMode: FirebaseVisionTypes.Statics['VisionFaceDetectorPerformanceMode']; | |
+export const VisionCloudTextRecognizerModelType: FirebaseVisionTypes.Statics['VisionCloudTextRecognizerModelType']; | |
+export const VisionFaceDetectorClassificationMode: FirebaseVisionTypes.Statics['VisionFaceDetectorClassificationMode']; | |
+export const VisionDocumentTextRecognizedBreakType: FirebaseVisionTypes.Statics['VisionDocumentTextRecognizedBreakType']; | |
+export const VisionCloudLandmarkRecognizerModelType: FirebaseVisionTypes.Statics['VisionCloudLandmarkRecognizerModelType']; | |
+ | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -1223,15 +1224,13 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
vision(): FirebaseVisionTypes.Module; | |
} | |
- } | |
-} | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- ml_vision_face_model: boolean; | |
- ml_vision_ocr_model: boolean; | |
- ml_vision_barcode_model: boolean; | |
- ml_vision_label_model: boolean; | |
- ml_vision_image_label_model: boolean; | |
+ interface FirebaseJsonConfig { | |
+ ml_vision_face_model: boolean; | |
+ ml_vision_ocr_model: boolean; | |
+ ml_vision_barcode_model: boolean; | |
+ ml_vision_label_model: boolean; | |
+ ml_vision_image_label_model: boolean; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/perf/lib/index.d.ts b/node_modules/@react-native-firebase/perf/lib/index.d.ts | |
index 5af0888..f1035b8 100644 | |
--- a/node_modules/@react-native-firebase/perf/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/perf/lib/index.d.ts | |
@@ -109,7 +109,7 @@ export namespace FirebasePerformanceTypes { | |
* @param attribute Name of the attribute. Max length is 40 chars. | |
* @param value Value of the attribute. Max length is 100 chars. | |
*/ | |
- putAttribute(attribute: string, value: string); | |
+ putAttribute(attribute: string, value: string): void; | |
/** | |
* Gets the value of the metric with the given name in the current trace. If the metric | |
@@ -155,7 +155,7 @@ export namespace FirebasePerformanceTypes { | |
* @param metricName Name of the metric to set. Must not have a leading or trailing whitespace, no leading underscore '_' character and have a max length of 32 characters. | |
* @param value The value the metric should be set to. | |
*/ | |
- putMetric(metricName: string, value: number); | |
+ putMetric(metricName: string, value: number): void; | |
/** | |
* Increments the named metric by the `incrementBy` value. | |
@@ -169,7 +169,7 @@ export namespace FirebasePerformanceTypes { | |
* @param metricName Name of the metric to increment. Must not have a leading or trailing whitespace, no leading underscore '_' character and have a max length of 32 characters. | |
* @param incrementBy The value the metric should be incremented by. | |
*/ | |
- incrementMetric(metricName: string, incrementBy: number); | |
+ incrementMetric(metricName: string, incrementBy: number): void; | |
/** | |
* Removes a metric by name if it exists. | |
@@ -182,7 +182,7 @@ export namespace FirebasePerformanceTypes { | |
* | |
* @param metricName Name of the metric to remove. | |
*/ | |
- removeMetric(metricName: string); | |
+ removeMetric(metricName: string): void; | |
/** | |
* Marks the start time of the trace. Does nothing if already started. | |
@@ -256,7 +256,7 @@ export namespace FirebasePerformanceTypes { | |
* @param attribute Name of the attribute. Max length is 40 chars. | |
* @param value Value of the attribute. Max length is 100 chars. | |
*/ | |
- putAttribute(attribute: string, value: string); | |
+ putAttribute(attribute: string, value: string): void; | |
/** | |
* Removes an already added attribute. Does nothing if attribute does not exist. | |
@@ -269,7 +269,7 @@ export namespace FirebasePerformanceTypes { | |
* | |
* @param attribute Name of the attribute to be removed. | |
*/ | |
- removeAttribute(attribute: string); | |
+ removeAttribute(attribute: string): void; | |
/** | |
* Sets the httpResponse code of the request. | |
@@ -285,7 +285,7 @@ export namespace FirebasePerformanceTypes { | |
* | |
* @param code Value must be greater than 0. Set to null to remove. Invalid usage will be logged natively. | |
*/ | |
- setHttpResponseCode(code: number | null); | |
+ setHttpResponseCode(code: number | null): void; | |
/** | |
* Sets the size of the request payload. | |
@@ -299,7 +299,7 @@ export namespace FirebasePerformanceTypes { | |
* | |
* @param bytes Value must be greater than 0. Set to null to remove. Invalid usage will be logged natively. | |
*/ | |
- setRequestPayloadSize(bytes: number | null); | |
+ setRequestPayloadSize(bytes: number | null): void; | |
/** | |
* Sets the size of the response payload. | |
@@ -313,7 +313,7 @@ export namespace FirebasePerformanceTypes { | |
* | |
* @param bytes Value must be greater than 0. Set to null to remove. Invalid usage will be logged natively. | |
*/ | |
- setResponsePayloadSize(bytes: number | null); | |
+ setResponsePayloadSize(bytes: number | null): void; | |
/** | |
* Content type of the response e.g. `text/html` or `application/json`. | |
@@ -327,7 +327,7 @@ export namespace FirebasePerformanceTypes { | |
* | |
* @param contentType Valid string of MIME type. Set to null to remove. Invalid usage will be logged natively. | |
*/ | |
- setResponseContentType(contentType: string | null); | |
+ setResponseContentType(contentType: string | null): void; | |
/** | |
* Marks the start time of the request. Does nothing if already started. | |
@@ -443,21 +443,17 @@ export namespace FirebasePerformanceTypes { | |
} | |
} | |
-declare module '@react-native-firebase/perf' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< | |
+ FirebasePerformanceTypes.Module, | |
+ FirebasePerformanceTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ perf: typeof defaultExport; | |
+ app(name?: string): ReactNativeFirebase.FirebaseApp & { perf(): FirebasePerformanceTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStatics< | |
- FirebasePerformanceTypes.Module, | |
- FirebasePerformanceTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. | |
@@ -474,33 +470,31 @@ declare module '@react-native-firebase/app' { | |
interface FirebaseApp { | |
perf(): FirebasePerformanceTypes.Module; | |
} | |
- } | |
-} | |
-namespace ReactNativeFirebase { | |
- interface FirebaseJsonConfig { | |
- /** | |
- * Disable or enable auto collection of performance monitoring data collection. | |
- * | |
- * 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": { | |
- * "perf_auto_collection_enabled": false | |
- * } | |
- * } | |
- * ``` | |
- * | |
- * ```js | |
- * // Re-enable performance monitoring data collection, e.g. once user has granted permission: | |
- * await firebase.perf().setPerformanceCollectionEnabled(true); | |
- * ``` | |
- */ | |
- perf_auto_collection_enabled: boolean; | |
+ interface FirebaseJsonConfig { | |
+ /** | |
+ * Disable or enable auto collection of performance monitoring data collection. | |
+ * | |
+ * 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": { | |
+ * "perf_auto_collection_enabled": false | |
+ * } | |
+ * } | |
+ * ``` | |
+ * | |
+ * ```js | |
+ * // Re-enable performance monitoring data collection, e.g. once user has granted permission: | |
+ * await firebase.perf().setPerformanceCollectionEnabled(true); | |
+ * ``` | |
+ */ | |
+ perf_auto_collection_enabled: boolean; | |
+ } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/remote-config/lib/index.d.ts b/node_modules/@react-native-firebase/remote-config/lib/index.d.ts | |
index 8165d2e..9d48256 100644 | |
--- a/node_modules/@react-native-firebase/remote-config/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/remote-config/lib/index.d.ts | |
@@ -517,21 +517,19 @@ export namespace FirebaseRemoteConfigTypes { | |
} | |
} | |
-declare module '@react-native-firebase/remote-config' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStatics = ReactNativeFirebase.FirebaseModuleWithStatics; | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStatics< | |
+ FirebaseRemoteConfigTypes.Module, | |
+ FirebaseRemoteConfigTypes.Statics | |
+>; | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ remoteConfig: typeof defaultExport; | |
+ app( | |
+ name?: string, | |
+ ): ReactNativeFirebase.FirebaseApp & { remoteConfig(): FirebaseRemoteConfigTypes.Module }; | |
+}; | |
- const defaultExport: FirebaseModuleWithStatics< | |
- FirebaseRemoteConfigTypes.Module, | |
- FirebaseRemoteConfigTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/node_modules/@react-native-firebase/storage/lib/index.d.ts b/node_modules/@react-native-firebase/storage/lib/index.d.ts | |
index 79a5ecc..d6ae110 100644 | |
--- a/node_modules/@react-native-firebase/storage/lib/index.d.ts | |
+++ b/node_modules/@react-native-firebase/storage/lib/index.d.ts | |
@@ -1097,21 +1097,17 @@ export namespace FirebaseStorageTypes { | |
} | |
} | |
-declare module '@react-native-firebase/storage' { | |
- // tslint:disable-next-line:no-duplicate-imports required otherwise doesn't work | |
- import { ReactNativeFirebase } from '@react-native-firebase/app'; | |
- import ReactNativeFirebaseModule = ReactNativeFirebase.Module; | |
- import FirebaseModuleWithStaticsAndApp = ReactNativeFirebase.FirebaseModuleWithStaticsAndApp; | |
- | |
- const firebaseNamedExport: {} & ReactNativeFirebaseModule; | |
- export const firebase = firebaseNamedExport; | |
- | |
- const defaultExport: FirebaseModuleWithStaticsAndApp< | |
- FirebaseStorageTypes.Module, | |
- FirebaseStorageTypes.Statics | |
- >; | |
- export default defaultExport; | |
-} | |
+declare const defaultExport: ReactNativeFirebase.FirebaseModuleWithStaticsAndApp< | |
+ FirebaseStorageTypes.Module, | |
+ FirebaseStorageTypes.Statics | |
+>; | |
+ | |
+export const firebase: ReactNativeFirebase.Module & { | |
+ storage: typeof defaultExport; | |
+ app(name?: string): ReactNativeFirebase.FirebaseApp & { storage(): FirebaseStorageTypes.Module }; | |
+}; | |
+ | |
+export default defaultExport; | |
/** | |
* Attach namespace to `firebase.` and `FirebaseApp.`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment