|
5 | 5 | ```ts |
6 | 6 |
|
7 | 7 | import { Component } from '@firebase/component'; |
8 | | -import { FirebaseApp } from '@firebase/app-types-exp'; |
9 | | -import { FirebaseAppConfig } from '@firebase/app-types-exp'; |
10 | | -import { FirebaseOptions } from '@firebase/app-types-exp'; |
| 8 | +import { ComponentContainer } from '@firebase/component'; |
11 | 9 | import { LogCallback } from '@firebase/logger'; |
12 | 10 | import { LogLevelString } from '@firebase/logger'; |
13 | 11 | import { LogOptions } from '@firebase/logger'; |
@@ -35,11 +33,55 @@ export const _DEFAULT_ENTRY_NAME = "[DEFAULT]"; |
35 | 33 | // @public |
36 | 34 | export function deleteApp(app: FirebaseApp): Promise<void>; |
37 | 35 |
|
38 | | -export { FirebaseApp } |
| 36 | +// @public |
| 37 | +export interface FirebaseApp { |
| 38 | + automaticDataCollectionEnabled: boolean; |
| 39 | + readonly name: string; |
| 40 | + readonly options: FirebaseOptions; |
| 41 | +} |
| 42 | + |
| 43 | +// @public |
| 44 | +export interface FirebaseAppConfig { |
| 45 | + automaticDataCollectionEnabled?: boolean; |
| 46 | + name?: string; |
| 47 | +} |
39 | 48 |
|
40 | | -export { FirebaseAppConfig } |
| 49 | +// @internal (undocumented) |
| 50 | +export interface _FirebaseAppInternal extends FirebaseApp { |
| 51 | + // (undocumented) |
| 52 | + checkDestroyed(): void; |
| 53 | + // (undocumented) |
| 54 | + container: ComponentContainer; |
| 55 | + // (undocumented) |
| 56 | + isDeleted: boolean; |
| 57 | +} |
41 | 58 |
|
42 | | -export { FirebaseOptions } |
| 59 | +// @public |
| 60 | +export interface FirebaseOptions { |
| 61 | + // (undocumented) |
| 62 | + apiKey?: string; |
| 63 | + // (undocumented) |
| 64 | + appId?: string; |
| 65 | + // (undocumented) |
| 66 | + authDomain?: string; |
| 67 | + // (undocumented) |
| 68 | + databaseURL?: string; |
| 69 | + // (undocumented) |
| 70 | + measurementId?: string; |
| 71 | + // (undocumented) |
| 72 | + messagingSenderId?: string; |
| 73 | + // (undocumented) |
| 74 | + projectId?: string; |
| 75 | + // (undocumented) |
| 76 | + storageBucket?: string; |
| 77 | +} |
| 78 | + |
| 79 | +// @internal (undocumented) |
| 80 | +export interface _FirebaseService { |
| 81 | + // (undocumented) |
| 82 | + app: FirebaseApp; |
| 83 | + _delete(): Promise<void>; |
| 84 | +} |
43 | 85 |
|
44 | 86 | // @public |
45 | 87 | export function getApp(name?: string): FirebaseApp; |
|
0 commit comments