File tree Expand file tree Collapse file tree 11 files changed +51
-69
lines changed Expand file tree Collapse file tree 11 files changed +51
-69
lines changed Original file line number Diff line number Diff line change
1
+ import { ComponentContainer } from '@firebase/component' ;
2
+
3
+ export interface FirebaseAppNext {
4
+ /**
5
+ * The (read-only) name (identifier) for this App. '[DEFAULT]' is the default
6
+ * App.
7
+ */
8
+ readonly name : string ;
9
+
10
+ /**
11
+ * The (read-only) configuration options from the app initialization.
12
+ */
13
+ readonly options : FirebaseOptionsNext ;
14
+
15
+ /**
16
+ * The settable config flag for GDPR opt-in/opt-out
17
+ */
18
+ automaticDataCollectionEnabled : boolean ;
19
+ }
20
+
21
+ export interface FirebaseAppInternalNext extends FirebaseAppNext {
22
+ container : ComponentContainer ;
23
+ isDeleted : boolean ;
24
+ checkDestroyed ( ) : void ;
25
+ }
26
+
27
+ export interface FirebaseOptionsNext {
28
+ apiKey ?: string ;
29
+ authDomain ?: string ;
30
+ databaseURL ?: string ;
31
+ projectId ?: string ;
32
+ storageBucket ?: string ;
33
+ messagingSenderId ?: string ;
34
+ appId ?: string ;
35
+ measurementId ?: string ;
36
+ }
37
+
38
+ export interface FirebaseAppConfigNext {
39
+ name ?: string ;
40
+ automaticDataCollectionEnabled ?: boolean ;
41
+ }
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
23
23
} from '@firebase/app-types/private' ;
24
24
import { Component , ComponentType , Name } from '@firebase/component' ;
25
25
import { DEFAULT_ENTRY_NAME } from '../constants' ;
26
- import { FirebaseAppInternalNext } from '../next/ types' ;
26
+ import { FirebaseAppInternalNext } from '@firebase/app- types/next ' ;
27
27
import { deleteApp } from '../next' ;
28
28
import { addComponent , addOrOverwriteComponent } from '../next/internal' ;
29
29
@@ -102,8 +102,7 @@ export class FirebaseAppImpl implements FirebaseApp {
102
102
instanceIdentifier : string = DEFAULT_ENTRY_NAME
103
103
) : void {
104
104
// eslint-disable-next-line @typescript-eslint/no-explicit-any
105
- this . app . container
106
- . getProvider ( name as any )
105
+ this . app . container . getProvider ( name as any )
107
106
. clearInstance ( instanceIdentifier ) ;
108
107
}
109
108
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import { FirebaseAppLiteImpl } from './lite/firebaseAppLite';
33
33
import { DEFAULT_ENTRY_NAME } from '../constants' ;
34
34
import { Component , ComponentType } from '@firebase/component' ;
35
35
import { SDK_VERSION , initializeApp , registerVersion } from '../next' ;
36
- import { FirebaseAppInternalNext } from '../next/ types' ;
36
+ import { FirebaseAppInternalNext } from '@firebase/app- types/next ' ;
37
37
import { registerComponent } from '../next/internal' ;
38
38
39
39
/**
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import {
23
23
} from '@firebase/app-types/private' ;
24
24
import { DEFAULT_ENTRY_NAME } from '../../constants' ;
25
25
import { Component , ComponentType , Name } from '@firebase/component' ;
26
- import { FirebaseAppInternalNext } from '../.. /next/types ' ;
26
+ import { FirebaseAppInternalNext } from '@firebase/app-types /next' ;
27
27
import { addComponent } from '../../next/internal' ;
28
28
import { deleteApp } from '../../next' ;
29
29
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ import {
26
26
registerVersion
27
27
} from './api' ;
28
28
import { DEFAULT_ENTRY_NAME } from '../constants' ;
29
- import { FirebaseAppInternalNext } from './ types' ;
29
+ import { FirebaseAppInternalNext } from '@firebase/app- types/next ' ;
30
30
import { clearComponents , components , registerComponent } from './internal' ;
31
31
import { createTestComponent } from '../../test/util' ;
32
32
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
20
20
FirebaseOptionsNext ,
21
21
FirebaseAppConfigNext ,
22
22
FirebaseAppInternalNext
23
- } from './ types' ;
23
+ } from '@firebase/app- types/next ' ;
24
24
import { DEFAULT_ENTRY_NAME , PLATFORM_LOG_STRING } from '../constants' ;
25
25
import { ERROR_FACTORY , AppError } from '../errors' ;
26
26
import {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import { expect } from 'chai';
19
19
import '../../test/setup' ;
20
20
import { FirebaseAppImplNext } from './firebaseApp' ;
21
21
import { ComponentContainer } from '@firebase/component' ;
22
- import { FirebaseAppInternalNext } from './ types' ;
22
+ import { FirebaseAppInternalNext } from '@firebase/app- types/next ' ;
23
23
24
24
describe ( 'FirebaseAppNext' , ( ) => {
25
25
it ( 'has various accessors' , ( ) => {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
19
19
FirebaseAppNext ,
20
20
FirebaseOptionsNext ,
21
21
FirebaseAppConfigNext
22
- } from './ types' ;
22
+ } from '@firebase/app- types/next ' ;
23
23
import { ComponentContainer } from '@firebase/component' ;
24
24
import { ERROR_FACTORY , AppError } from '../errors' ;
25
25
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import {
27
27
components ,
28
28
clearComponents
29
29
} from './internal' ;
30
- import { FirebaseAppInternalNext } from './ types' ;
30
+ import { FirebaseAppInternalNext } from '@firebase/app- types/next ' ;
31
31
32
32
declare module '@firebase/component' {
33
33
interface NameServiceMapping {
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- import { FirebaseAppInternalNext , FirebaseAppNext } from './ types' ;
18
+ import { FirebaseAppInternalNext , FirebaseAppNext } from '@firebase/app- types/next ' ;
19
19
import { Component } from '@firebase/component' ;
20
20
import { logger } from '../logger' ;
21
21
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments