File tree Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Expand file tree Collapse file tree 4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 18
18
import { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types' ;
19
19
import { FirebaseApp , _FirebaseService } from '@firebase/app-compat' ;
20
20
import {
21
- FirebaseInstallations ,
21
+ Installations ,
22
22
deleteInstallations ,
23
23
getId ,
24
24
getToken ,
@@ -28,11 +28,9 @@ import {
28
28
} from '@firebase/installations-exp' ;
29
29
30
30
export class InstallationsCompat
31
- implements FirebaseInstallationsCompat , _FirebaseService {
32
- constructor (
33
- public app : FirebaseApp ,
34
- readonly _delegate : FirebaseInstallations
35
- ) { }
31
+ implements FirebaseInstallationsCompat , _FirebaseService
32
+ {
33
+ constructor ( public app : FirebaseApp , readonly _delegate : Installations ) { }
36
34
37
35
getId ( ) : Promise < string > {
38
36
return getId ( this . _delegate ) ;
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { FirebaseApp } from '@firebase/app-compat' ;
19
- import { FirebaseInstallations } from '@firebase/installations-exp' ;
19
+ import { Installations } from '@firebase/installations-exp' ;
20
20
21
21
const appName = 'testApp' ;
22
22
const apiKey = 'AIzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA' ;
@@ -41,7 +41,7 @@ export function getFakeApp(): FirebaseApp {
41
41
} ;
42
42
}
43
43
44
- export function getFakeInstallations ( ) : FirebaseInstallations {
44
+ export function getFakeInstallations ( ) : Installations {
45
45
return {
46
46
app : getFakeApp ( ) ,
47
47
appConfig : {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import {
20
20
_FirebaseService
21
21
} from '@firebase/app-compat' ;
22
22
import {
23
- FirebaseMessaging ,
23
+ Messaging ,
24
24
MessagePayload ,
25
25
deleteToken ,
26
26
getToken ,
@@ -89,7 +89,7 @@ function isSwSupported(): boolean {
89
89
}
90
90
91
91
export class MessagingCompatImpl implements MessagingCompat , _FirebaseService {
92
- constructor ( readonly app : AppCompat , readonly _delegate : FirebaseMessaging ) {
92
+ constructor ( readonly app : AppCompat , readonly _delegate : Messaging ) {
93
93
this . app = app ;
94
94
this . _delegate = _delegate ;
95
95
}
Original file line number Diff line number Diff line change 16
16
*/
17
17
18
18
import { FirebaseApp } from '@firebase/app-compat' ;
19
- import { FirebaseMessaging } from '@firebase/messaging-exp' ;
19
+ import { Messaging } from '@firebase/messaging-exp' ;
20
20
21
21
export function getFakeApp ( ) : FirebaseApp {
22
22
return {
@@ -36,6 +36,6 @@ export function getFakeApp(): FirebaseApp {
36
36
} ;
37
37
}
38
38
39
- export function getFakeModularMessaging ( ) : FirebaseMessaging {
39
+ export function getFakeModularMessaging ( ) : Messaging {
40
40
return { } ;
41
41
}
You can’t perform that action at this time.
0 commit comments