|
| 1 | +## API Report File for "@firebase/app" |
| 2 | + |
| 3 | +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 | +
|
| 5 | +```ts |
| 6 | + |
| 7 | +import { Component } from '@firebase/component'; |
| 8 | +import { ComponentContainer } from '@firebase/component'; |
| 9 | +import { FirebaseError } from '@firebase/util'; |
| 10 | +import { LogCallback } from '@firebase/logger'; |
| 11 | +import { LogLevelString } from '@firebase/logger'; |
| 12 | +import { LogOptions } from '@firebase/logger'; |
| 13 | +import { Name } from '@firebase/component'; |
| 14 | +import { Provider } from '@firebase/component'; |
| 15 | + |
| 16 | +// @internal (undocumented) |
| 17 | +export function _addComponent<T extends Name>(app: FirebaseApp, component: Component<T>): void; |
| 18 | + |
| 19 | +// @internal (undocumented) |
| 20 | +export function _addOrOverwriteComponent(app: FirebaseApp, component: Component): void; |
| 21 | + |
| 22 | +// @internal (undocumented) |
| 23 | +export const _apps: Map<string, FirebaseApp>; |
| 24 | + |
| 25 | +// @internal |
| 26 | +export function _clearComponents(): void; |
| 27 | + |
| 28 | +// @internal |
| 29 | +export const _components: Map<string, Component<any>>; |
| 30 | + |
| 31 | +// @internal |
| 32 | +export const _DEFAULT_ENTRY_NAME = "[DEFAULT]"; |
| 33 | + |
| 34 | +// @public |
| 35 | +export function deleteApp(app: FirebaseApp): Promise<void>; |
| 36 | + |
| 37 | +// @public |
| 38 | +export interface FirebaseApp { |
| 39 | + automaticDataCollectionEnabled: boolean; |
| 40 | + readonly name: string; |
| 41 | + readonly options: FirebaseOptions; |
| 42 | +} |
| 43 | + |
| 44 | +// @internal (undocumented) |
| 45 | +export interface _FirebaseAppInternal extends FirebaseApp { |
| 46 | + // (undocumented) |
| 47 | + checkDestroyed(): void; |
| 48 | + // (undocumented) |
| 49 | + container: ComponentContainer; |
| 50 | + // (undocumented) |
| 51 | + isDeleted: boolean; |
| 52 | +} |
| 53 | + |
| 54 | +// @public |
| 55 | +export interface FirebaseAppSettings { |
| 56 | + automaticDataCollectionEnabled?: boolean; |
| 57 | + name?: string; |
| 58 | +} |
| 59 | + |
| 60 | +export { FirebaseError } |
| 61 | + |
| 62 | +// @public |
| 63 | +export interface FirebaseOptions { |
| 64 | + apiKey?: string; |
| 65 | + appId?: string; |
| 66 | + authDomain?: string; |
| 67 | + databaseURL?: string; |
| 68 | + measurementId?: string; |
| 69 | + messagingSenderId?: string; |
| 70 | + projectId?: string; |
| 71 | + storageBucket?: string; |
| 72 | +} |
| 73 | + |
| 74 | +// @internal (undocumented) |
| 75 | +export interface _FirebaseService { |
| 76 | + // (undocumented) |
| 77 | + app: FirebaseApp; |
| 78 | + _delete(): Promise<void>; |
| 79 | +} |
| 80 | + |
| 81 | +// @public |
| 82 | +export function getApp(name?: string): FirebaseApp; |
| 83 | + |
| 84 | +// @public |
| 85 | +export function getApps(): FirebaseApp[]; |
| 86 | + |
| 87 | +// @internal (undocumented) |
| 88 | +export function _getProvider<T extends Name>(app: FirebaseApp, name: T): Provider<T>; |
| 89 | + |
| 90 | +// @public |
| 91 | +export function initializeApp(options: FirebaseOptions, name?: string): FirebaseApp; |
| 92 | + |
| 93 | +// @public |
| 94 | +export function initializeApp(options: FirebaseOptions, config?: FirebaseAppSettings): FirebaseApp; |
| 95 | + |
| 96 | +// @public |
| 97 | +export function onLog(logCallback: LogCallback | null, options?: LogOptions): void; |
| 98 | + |
| 99 | +// @internal (undocumented) |
| 100 | +export function _registerComponent<T extends Name>(component: Component<T>): boolean; |
| 101 | + |
| 102 | +// @public |
| 103 | +export function registerVersion(libraryKeyOrName: string, version: string, variant?: string): void; |
| 104 | + |
| 105 | +// @internal (undocumented) |
| 106 | +export function _removeServiceInstance<T extends Name>(app: FirebaseApp, name: T, instanceIdentifier?: string): void; |
| 107 | + |
| 108 | +// @public |
| 109 | +export const SDK_VERSION: string; |
| 110 | + |
| 111 | +// @public |
| 112 | +export function setLogLevel(logLevel: LogLevelString): void; |
| 113 | + |
| 114 | + |
| 115 | +``` |
0 commit comments