@firebase/app-compat 0.2.45 → 0.2.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/esm/index.esm2017.js +408 -408
  2. package/dist/esm/index.esm2017.js.map +1 -1
  3. package/dist/esm/src/errors.d.ts +28 -28
  4. package/dist/esm/src/firebaseApp.d.ts +91 -91
  5. package/dist/esm/src/firebaseNamespace.d.ts +26 -26
  6. package/dist/esm/src/firebaseNamespaceCore.d.ts +27 -27
  7. package/dist/esm/src/index.d.ts +26 -26
  8. package/dist/esm/src/index.lite.d.ts +18 -18
  9. package/dist/esm/src/lite/firebaseAppLite.d.ts +49 -49
  10. package/dist/esm/src/lite/firebaseNamespaceLite.d.ts +18 -18
  11. package/dist/esm/src/logger.d.ts +18 -18
  12. package/dist/esm/src/public-types.d.ts +100 -100
  13. package/dist/esm/src/registerCoreComponents.d.ts +17 -17
  14. package/dist/esm/src/types.d.ts +71 -71
  15. package/dist/esm/test/firebaseAppCompat.test.d.ts +17 -17
  16. package/dist/esm/test/setup.d.ts +17 -17
  17. package/dist/esm/test/util.d.ts +28 -28
  18. package/dist/index.cjs.js +408 -408
  19. package/dist/index.cjs.js.map +1 -1
  20. package/dist/index.lite.js +317 -317
  21. package/dist/index.lite.js.map +1 -1
  22. package/dist/src/errors.d.ts +28 -28
  23. package/dist/src/firebaseApp.d.ts +91 -91
  24. package/dist/src/firebaseNamespace.d.ts +26 -26
  25. package/dist/src/firebaseNamespaceCore.d.ts +27 -27
  26. package/dist/src/index.d.ts +26 -26
  27. package/dist/src/index.lite.d.ts +18 -18
  28. package/dist/src/lite/firebaseAppLite.d.ts +49 -49
  29. package/dist/src/lite/firebaseNamespaceLite.d.ts +18 -18
  30. package/dist/src/logger.d.ts +18 -18
  31. package/dist/src/public-types.d.ts +100 -100
  32. package/dist/src/registerCoreComponents.d.ts +17 -17
  33. package/dist/src/types.d.ts +71 -71
  34. package/dist/test/firebaseAppCompat.test.d.ts +17 -17
  35. package/dist/test/setup.d.ts +17 -17
  36. package/dist/test/util.d.ts +28 -28
  37. package/package.json +6 -6
@@ -1,49 +1,49 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { FirebaseApp, FirebaseOptions } from '../public-types';
18
- import { _FirebaseNamespace, _FirebaseService } from '../types';
19
- import { _FirebaseAppInternal as FirebaseAppExp } from '@firebase/app';
20
- import { Compat } from '@firebase/util';
21
- /**
22
- * Global context object for a collection of services using
23
- * a shared authentication state.
24
- */
25
- export declare class FirebaseAppLiteImpl implements FirebaseApp, Compat<FirebaseAppExp> {
26
- readonly _delegate: FirebaseAppExp;
27
- private readonly firebase;
28
- constructor(_delegate: FirebaseAppExp, firebase: _FirebaseNamespace);
29
- get automaticDataCollectionEnabled(): boolean;
30
- set automaticDataCollectionEnabled(val: boolean);
31
- get name(): string;
32
- get options(): FirebaseOptions;
33
- delete(): Promise<void>;
34
- /**
35
- * Return a service instance associated with this app (creating it
36
- * on demand), identified by the passed instanceIdentifier.
37
- *
38
- * NOTE: Currently storage is the only one that is leveraging this
39
- * functionality. They invoke it by calling:
40
- *
41
- * ```javascript
42
- * firebase.app().storage('STORAGE BUCKET ID')
43
- * ```
44
- *
45
- * The service name is passed to this already
46
- * @internal
47
- */
48
- _getService(name: string, instanceIdentifier?: string): _FirebaseService;
49
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { FirebaseApp, FirebaseOptions } from '../public-types';
18
+ import { _FirebaseNamespace, _FirebaseService } from '../types';
19
+ import { _FirebaseAppInternal as FirebaseAppExp } from '@firebase/app';
20
+ import { Compat } from '@firebase/util';
21
+ /**
22
+ * Global context object for a collection of services using
23
+ * a shared authentication state.
24
+ */
25
+ export declare class FirebaseAppLiteImpl implements FirebaseApp, Compat<FirebaseAppExp> {
26
+ readonly _delegate: FirebaseAppExp;
27
+ private readonly firebase;
28
+ constructor(_delegate: FirebaseAppExp, firebase: _FirebaseNamespace);
29
+ get automaticDataCollectionEnabled(): boolean;
30
+ set automaticDataCollectionEnabled(val: boolean);
31
+ get name(): string;
32
+ get options(): FirebaseOptions;
33
+ delete(): Promise<void>;
34
+ /**
35
+ * Return a service instance associated with this app (creating it
36
+ * on demand), identified by the passed instanceIdentifier.
37
+ *
38
+ * NOTE: Currently storage is the only one that is leveraging this
39
+ * functionality. They invoke it by calling:
40
+ *
41
+ * ```javascript
42
+ * firebase.app().storage('STORAGE BUCKET ID')
43
+ * ```
44
+ *
45
+ * The service name is passed to this already
46
+ * @internal
47
+ */
48
+ _getService(name: string, instanceIdentifier?: string): _FirebaseService;
49
+ }
@@ -1,18 +1,18 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { FirebaseNamespace } from '../public-types';
18
- export declare function createFirebaseNamespaceLite(): FirebaseNamespace;
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { FirebaseNamespace } from '../public-types';
18
+ export declare function createFirebaseNamespaceLite(): FirebaseNamespace;
@@ -1,18 +1,18 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { Logger } from '@firebase/logger';
18
- export declare const logger: Logger;
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { Logger } from '@firebase/logger';
18
+ export declare const logger: Logger;
@@ -1,100 +1,100 @@
1
- /**
2
- * @license
3
- * Copyright 2021 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import { LogCallback, LogLevelString, LogOptions } from '@firebase/logger';
18
- import { _FirebaseApp } from './firebaseApp';
19
- export interface FirebaseOptions {
20
- apiKey?: string;
21
- authDomain?: string;
22
- databaseURL?: string;
23
- projectId?: string;
24
- storageBucket?: string;
25
- messagingSenderId?: string;
26
- appId?: string;
27
- measurementId?: string;
28
- }
29
- export interface FirebaseAppConfig {
30
- name?: string;
31
- automaticDataCollectionEnabled?: boolean;
32
- }
33
- interface FirebaseAppConstructor {
34
- new (): FirebaseApp;
35
- }
36
- /**
37
- * This interface will be enhanced by other products by adding e.g. firestore(), messaging() methods.
38
- * As a result, FirebaseAppImpl can't directly implement it, otherwise there will be typings errors:
39
- *
40
- * For example, "Class 'FirebaseAppImpl' incorrectly implements interface 'FirebaseApp'.
41
- * Property 'installations' is missing in type 'FirebaseAppImpl' but required in type 'FirebaseApp'"
42
- *
43
- * To workaround this issue, we defined a _FirebaseApp interface which is implemented by FirebaseAppImpl
44
- * and let FirebaseApp extends it.
45
- */
46
- export interface FirebaseApp extends _FirebaseApp {
47
- }
48
- export interface FirebaseNamespace {
49
- /**
50
- * Create (and initialize) a FirebaseApp.
51
- *
52
- * @param options Options to configure the services used in the App.
53
- * @param config The optional config for your firebase app
54
- */
55
- initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp;
56
- /**
57
- * Create (and initialize) a FirebaseApp.
58
- *
59
- * @param options Options to configure the services used in the App.
60
- * @param name The optional name of the app to initialize ('[DEFAULT]' if
61
- * omitted)
62
- */
63
- initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
64
- app: {
65
- /**
66
- * Retrieve an instance of a FirebaseApp.
67
- *
68
- * Usage: firebase.app()
69
- *
70
- * @param name The optional name of the app to return ('[DEFAULT]' if omitted)
71
- */
72
- (name?: string): FirebaseApp;
73
- /**
74
- * For testing FirebaseApp instances:
75
- * app() instanceof firebase.app.App
76
- *
77
- * DO NOT call this constuctor directly (use firebase.app() instead).
78
- */
79
- App: FirebaseAppConstructor;
80
- };
81
- /**
82
- * A (read-only) array of all the initialized Apps.
83
- */
84
- apps: FirebaseApp[];
85
- /**
86
- * Registers a library's name and version for platform logging purposes.
87
- * @param library Name of 1p or 3p library (e.g. firestore, angularfire)
88
- * @param version Current version of that library.
89
- */
90
- registerVersion(library: string, version: string, variant?: string): void;
91
- setLogLevel(logLevel: LogLevelString): void;
92
- onLog(logCallback: LogCallback, options?: LogOptions): void;
93
- SDK_VERSION: string;
94
- }
95
- declare module '@firebase/component' {
96
- interface NameServiceMapping {
97
- 'app-compat': FirebaseApp;
98
- }
99
- }
100
- export {};
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { LogCallback, LogLevelString, LogOptions } from '@firebase/logger';
18
+ import { _FirebaseApp } from './firebaseApp';
19
+ export interface FirebaseOptions {
20
+ apiKey?: string;
21
+ authDomain?: string;
22
+ databaseURL?: string;
23
+ projectId?: string;
24
+ storageBucket?: string;
25
+ messagingSenderId?: string;
26
+ appId?: string;
27
+ measurementId?: string;
28
+ }
29
+ export interface FirebaseAppConfig {
30
+ name?: string;
31
+ automaticDataCollectionEnabled?: boolean;
32
+ }
33
+ interface FirebaseAppConstructor {
34
+ new (): FirebaseApp;
35
+ }
36
+ /**
37
+ * This interface will be enhanced by other products by adding e.g. firestore(), messaging() methods.
38
+ * As a result, FirebaseAppImpl can't directly implement it, otherwise there will be typings errors:
39
+ *
40
+ * For example, "Class 'FirebaseAppImpl' incorrectly implements interface 'FirebaseApp'.
41
+ * Property 'installations' is missing in type 'FirebaseAppImpl' but required in type 'FirebaseApp'"
42
+ *
43
+ * To workaround this issue, we defined a _FirebaseApp interface which is implemented by FirebaseAppImpl
44
+ * and let FirebaseApp extends it.
45
+ */
46
+ export interface FirebaseApp extends _FirebaseApp {
47
+ }
48
+ export interface FirebaseNamespace {
49
+ /**
50
+ * Create (and initialize) a FirebaseApp.
51
+ *
52
+ * @param options Options to configure the services used in the App.
53
+ * @param config The optional config for your firebase app
54
+ */
55
+ initializeApp(options: FirebaseOptions, config?: FirebaseAppConfig): FirebaseApp;
56
+ /**
57
+ * Create (and initialize) a FirebaseApp.
58
+ *
59
+ * @param options Options to configure the services used in the App.
60
+ * @param name The optional name of the app to initialize ('[DEFAULT]' if
61
+ * omitted)
62
+ */
63
+ initializeApp(options: FirebaseOptions, name?: string): FirebaseApp;
64
+ app: {
65
+ /**
66
+ * Retrieve an instance of a FirebaseApp.
67
+ *
68
+ * Usage: firebase.app()
69
+ *
70
+ * @param name The optional name of the app to return ('[DEFAULT]' if omitted)
71
+ */
72
+ (name?: string): FirebaseApp;
73
+ /**
74
+ * For testing FirebaseApp instances:
75
+ * app() instanceof firebase.app.App
76
+ *
77
+ * DO NOT call this constuctor directly (use firebase.app() instead).
78
+ */
79
+ App: FirebaseAppConstructor;
80
+ };
81
+ /**
82
+ * A (read-only) array of all the initialized Apps.
83
+ */
84
+ apps: FirebaseApp[];
85
+ /**
86
+ * Registers a library's name and version for platform logging purposes.
87
+ * @param library Name of 1p or 3p library (e.g. firestore, angularfire)
88
+ * @param version Current version of that library.
89
+ */
90
+ registerVersion(library: string, version: string, variant?: string): void;
91
+ setLogLevel(logLevel: LogLevelString): void;
92
+ onLog(logCallback: LogCallback, options?: LogOptions): void;
93
+ SDK_VERSION: string;
94
+ }
95
+ declare module '@firebase/component' {
96
+ interface NameServiceMapping {
97
+ 'app-compat': FirebaseApp;
98
+ }
99
+ }
100
+ export {};
@@ -1,17 +1,17 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export declare function registerCoreComponents(variant?: string): void;
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export declare function registerCoreComponents(variant?: string): void;
@@ -1,71 +1,71 @@
1
- /**
2
- * @license
3
- * Copyright 2017 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- /**
18
- * THIS FILE IS FOR INTERNAL USAGE ONLY, IF YOU ARE NOT DEVELOPING THE FIREBASE
19
- * SDKs, PLEASE DO NOT REFERENCE THIS FILE AS IT MAY CHANGE WITHOUT WARNING
20
- */
21
- import { FirebaseApp, FirebaseNamespace } from './public-types';
22
- import { Compat } from '@firebase/util';
23
- import { Component, ComponentContainer, Name } from '@firebase/component';
24
- export interface FirebaseServiceInternals {
25
- /**
26
- * Delete the service and free it's resources - called from
27
- * app.delete().
28
- */
29
- delete(): Promise<void>;
30
- }
31
- export interface _FirebaseService extends Compat<unknown> {
32
- app: FirebaseApp;
33
- INTERNAL?: FirebaseServiceInternals;
34
- }
35
- /**
36
- * All ServiceNamespaces extend from FirebaseServiceNamespace
37
- */
38
- export interface FirebaseServiceNamespace<T extends _FirebaseService> {
39
- (app?: FirebaseApp): T;
40
- }
41
- export interface _FirebaseApp extends FirebaseApp {
42
- container: ComponentContainer;
43
- _addComponent<T extends Name>(component: Component<T>): void;
44
- _addOrOverwriteComponent<T extends Name>(component: Component<T>): void;
45
- _removeServiceInstance(name: string, instanceIdentifier?: string): void;
46
- }
47
- export interface _FirebaseNamespace extends FirebaseNamespace {
48
- INTERNAL: {
49
- /**
50
- * Internal API to register a Firebase Service into the firebase namespace.
51
- *
52
- * Each service will create a child namespace (firebase.<name>) which acts as
53
- * both a namespace for service specific properties, and also as a service
54
- * accessor function (firebase.<name>() or firebase.<name>(app)).
55
- *
56
- * @param name The Firebase Service being registered.
57
- * @param createService Factory function to create a service instance.
58
- * @param serviceProperties Properties to copy to the service's namespace.
59
- * @param appHook All appHooks called before initializeApp returns to caller.
60
- * @param allowMultipleInstances Whether the registered service supports
61
- * multiple instances per app. If not specified, the default is false.
62
- */
63
- registerComponent<T extends Name>(component: Component<T>): FirebaseServiceNamespace<_FirebaseService> | null;
64
- /**
65
- * Internal API to remove an app from the list of registered apps.
66
- */
67
- removeApp(name: string): void;
68
- useAsService(app: FirebaseApp, serviceName: string): string | null;
69
- [index: string]: unknown;
70
- };
71
- }
1
+ /**
2
+ * @license
3
+ * Copyright 2017 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * THIS FILE IS FOR INTERNAL USAGE ONLY, IF YOU ARE NOT DEVELOPING THE FIREBASE
19
+ * SDKs, PLEASE DO NOT REFERENCE THIS FILE AS IT MAY CHANGE WITHOUT WARNING
20
+ */
21
+ import { FirebaseApp, FirebaseNamespace } from './public-types';
22
+ import { Compat } from '@firebase/util';
23
+ import { Component, ComponentContainer, Name } from '@firebase/component';
24
+ export interface FirebaseServiceInternals {
25
+ /**
26
+ * Delete the service and free it's resources - called from
27
+ * app.delete().
28
+ */
29
+ delete(): Promise<void>;
30
+ }
31
+ export interface _FirebaseService extends Compat<unknown> {
32
+ app: FirebaseApp;
33
+ INTERNAL?: FirebaseServiceInternals;
34
+ }
35
+ /**
36
+ * All ServiceNamespaces extend from FirebaseServiceNamespace
37
+ */
38
+ export interface FirebaseServiceNamespace<T extends _FirebaseService> {
39
+ (app?: FirebaseApp): T;
40
+ }
41
+ export interface _FirebaseApp extends FirebaseApp {
42
+ container: ComponentContainer;
43
+ _addComponent<T extends Name>(component: Component<T>): void;
44
+ _addOrOverwriteComponent<T extends Name>(component: Component<T>): void;
45
+ _removeServiceInstance(name: string, instanceIdentifier?: string): void;
46
+ }
47
+ export interface _FirebaseNamespace extends FirebaseNamespace {
48
+ INTERNAL: {
49
+ /**
50
+ * Internal API to register a Firebase Service into the firebase namespace.
51
+ *
52
+ * Each service will create a child namespace (firebase.<name>) which acts as
53
+ * both a namespace for service specific properties, and also as a service
54
+ * accessor function (firebase.<name>() or firebase.<name>(app)).
55
+ *
56
+ * @param name The Firebase Service being registered.
57
+ * @param createService Factory function to create a service instance.
58
+ * @param serviceProperties Properties to copy to the service's namespace.
59
+ * @param appHook All appHooks called before initializeApp returns to caller.
60
+ * @param allowMultipleInstances Whether the registered service supports
61
+ * multiple instances per app. If not specified, the default is false.
62
+ */
63
+ registerComponent<T extends Name>(component: Component<T>): FirebaseServiceNamespace<_FirebaseService> | null;
64
+ /**
65
+ * Internal API to remove an app from the list of registered apps.
66
+ */
67
+ removeApp(name: string): void;
68
+ useAsService(app: FirebaseApp, serviceName: string): string | null;
69
+ [index: string]: unknown;
70
+ };
71
+ }
@@ -1,17 +1,17 @@
1
- /**
2
- * @license
3
- * Copyright 2020 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- import './setup';
1
+ /**
2
+ * @license
3
+ * Copyright 2020 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import './setup';
@@ -1,17 +1,17 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- export {};
1
+ /**
2
+ * @license
3
+ * Copyright 2019 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ export {};