@react-native-firebase/app-types
Advanced tools
Comparing version 6.0.0-alpha.1 to 6.0.0-alpha.2
@@ -18,2 +18,4 @@ /* | ||
import {FirebaseApp} from "./index"; | ||
export interface NativeFirebaseError extends Error { | ||
@@ -192,1 +194,65 @@ /** | ||
} | ||
/** | ||
* | ||
* @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; | ||
} | ||
} |
{ | ||
"name": "@react-native-firebase/app-types", | ||
"version": "6.0.0-alpha.1", | ||
"version": "6.0.0-alpha.2", | ||
"author": "Invertase <oss@invertase.io> (http://invertase.io)", | ||
@@ -16,3 +16,3 @@ "description": "@react-native-firebase/app-types", | ||
"license": "Apache-2.0", | ||
"gitHead": "5024081214e6cebd3a918274d502d56522f6b3e7", | ||
"gitHead": "2787d4413eb70c61a687c4d6913add6a6a01f582", | ||
"publishConfig": { | ||
@@ -19,0 +19,0 @@ "access": "public" |
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
9950
217