1
1
import { InjectionToken , NgModule , Optional , NgZone } from '@angular/core' ;
2
- import { auth , database , firestore , functions , messaging , storage , analytics , remoteConfig } from 'firebase/app' ;
2
+ import { auth , database , messaging , storage , firestore , functions } from 'firebase/app' ;
3
3
// @ts -ignore (https://github.com/firebase/firebase-js-sdk/pull/1206)
4
4
import firebase from 'firebase/app' ; // once fixed can pull in as "default as firebase" above
5
5
@@ -15,12 +15,16 @@ export const FIREBASE_APP_NAME = FirebaseNameOrConfigToken;
15
15
16
16
export type FirebaseDatabase = database . Database ;
17
17
export type FirebaseAuth = auth . Auth ;
18
- export type FirebaseAnalytics = analytics . Analytics ;
18
+ // SEMVER analytics.Analytics;
19
+ export type FirebaseAnalytics = any ;
19
20
export type FirebaseMessaging = messaging . Messaging ;
21
+ // SEMVER performance.Performance
22
+ export type FirebasePerformance = any ;
20
23
export type FirebaseStorage = storage . Storage ;
21
24
export type FirebaseFirestore = firestore . Firestore ;
22
25
export type FirebaseFunctions = functions . Functions ;
23
- export type FirebaseRemoteConfig = remoteConfig . RemoteConfig ;
26
+ // SEMVER remoteConfig.RemoteConfig;
27
+ export type FirebaseRemoteConfig = any ;
24
28
25
29
// Have to implement as we need to return a class from the provider, we should consider exporting
26
30
// this in the firebase/app types as this is our highest risk of breaks
@@ -31,7 +35,7 @@ export class FirebaseApp {
31
35
auth : ( ) => FirebaseAuth ;
32
36
database : ( databaseURL ?: string ) => FirebaseDatabase ;
33
37
messaging : ( ) => FirebaseMessaging ;
34
- performance : ( ) => any ; // SEMVER: once >= 6 import performance.Performance
38
+ performance : ( ) => FirebasePerformance ;
35
39
storage : ( storageBucket ?: string ) => FirebaseStorage ;
36
40
delete : ( ) => Promise < void > ;
37
41
firestore : ( ) => FirebaseFirestore ;
0 commit comments