@react-native-firebase/app-types
Advanced tools
Comparing version 0.0.4-alpha.0 to 0.0.26
@@ -45,11 +45,2 @@ /* | ||
export type ReactNativeFirebaseModuleAndStatics<M, S = {}> = { | ||
(): M; | ||
/** | ||
* This React Native Firebase module version. | ||
*/ | ||
readonly SDK_VERSION: string; | ||
} & S; | ||
export type FirebaseOptions = { | ||
@@ -87,3 +78,2 @@ /** | ||
/** | ||
@@ -190,4 +180,86 @@ * The Project Number from the Google Developer's console, for example "012345678901", used to | ||
export interface ReactNativeFirebaseModule { | ||
export class ReactNativeFirebaseModule { | ||
app: FirebaseApp; | ||
} | ||
/** | ||
* | ||
* @firebase app | ||
*/ | ||
export namespace App { | ||
export interface FirebaseApp { | ||
/** | ||
* The name (identifier) for this App. '[DEFAULT]' is the default App. | ||
*/ | ||
readonly name: string; | ||
/** | ||
* The (read-only) configuration options from the app initialization. | ||
*/ | ||
readonly options: FirebaseOptions; | ||
/** | ||
* Make this app unusable and free up resources. | ||
*/ | ||
delete(): Promise<void>; | ||
} | ||
export interface ReactNativeFirebaseNamespace { | ||
/** | ||
* Create (and initialize) a FirebaseApp. | ||
* | ||
* @param options Options to configure the services used in the App. | ||
* @param config The optional config for your firebase app | ||
*/ | ||
initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp; | ||
/** | ||
* Create (and initialize) a FirebaseApp. | ||
* | ||
* @param options Options to configure the services used in the App. | ||
* @param name The optional name of the app to initialize ('[DEFAULT]' if | ||
* omitted) | ||
*/ | ||
initializeApp(options: FirebaseOptions, name?: string): FirebaseApp; | ||
/** | ||
* Retrieve an instance of a FirebaseApp. | ||
* | ||
* @example | ||
* ```js | ||
* const app = firebase.app('foo'); | ||
* ``` | ||
* | ||
* @param name The optional name of the app to return ('[DEFAULT]' if omitted) | ||
*/ | ||
app(name?: string): FirebaseApp; | ||
/** | ||
* A (read-only) array of all the initialized Apps. | ||
*/ | ||
apps: FirebaseApp[]; | ||
/** | ||
* The current React Native Firebase version. | ||
*/ | ||
readonly SDK_VERSION: string; | ||
} | ||
} | ||
export type ReactNativeFirebaseModuleAndStatics<M, S = {}> = { | ||
(): M; | ||
/** | ||
* This React Native Firebase module version. | ||
*/ | ||
readonly SDK_VERSION: string; | ||
} & S; | ||
export type ReactNativeFirebaseModuleAndStaticsWithApp<M, S = {}> = { | ||
(app?: FirebaseApp): M; | ||
/** | ||
* This React Native Firebase module version. | ||
*/ | ||
readonly SDK_VERSION: string; | ||
} & S; |
{ | ||
"name": "@react-native-firebase/app-types", | ||
"version": "0.0.4-alpha.0", | ||
"version": "0.0.26", | ||
"author": "Invertase <oss@invertase.io> (http://invertase.io)", | ||
@@ -16,3 +16,3 @@ "description": "@react-native-firebase/app-types", | ||
"license": "Apache-2.0", | ||
"gitHead": "a380dd1fd3994a37723b7b18c575320710e16d94", | ||
"gitHead": "639c15d4b8ba8a972f0fe17fcc285b4a6e4af320", | ||
"publishConfig": { | ||
@@ -19,0 +19,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10208
223