Skip to content

Commit 2493c17

Browse files
authored
Update import names (#5212)
* update import names * update name * update names
1 parent 9c13da4 commit 2493c17

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

packages-exp/installations-compat/src/installationsCompat.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import { FirebaseInstallations as FirebaseInstallationsCompat } from '@firebase/installations-types';
1919
import { FirebaseApp, _FirebaseService } from '@firebase/app-compat';
2020
import {
21-
FirebaseInstallations,
21+
Installations,
2222
deleteInstallations,
2323
getId,
2424
getToken,
@@ -28,11 +28,9 @@ import {
2828
} from '@firebase/installations-exp';
2929

3030
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) {}
3634

3735
getId(): Promise<string> {
3836
return getId(this._delegate);

packages-exp/installations-compat/src/testing/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
import { FirebaseApp } from '@firebase/app-compat';
19-
import { FirebaseInstallations } from '@firebase/installations-exp';
19+
import { Installations } from '@firebase/installations-exp';
2020

2121
const appName = 'testApp';
2222
const apiKey = 'AIzaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaA';
@@ -41,7 +41,7 @@ export function getFakeApp(): FirebaseApp {
4141
};
4242
}
4343

44-
export function getFakeInstallations(): FirebaseInstallations {
44+
export function getFakeInstallations(): Installations {
4545
return {
4646
app: getFakeApp(),
4747
appConfig: {

packages-exp/messaging-compat/src/messaging-compat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import {
2020
_FirebaseService
2121
} from '@firebase/app-compat';
2222
import {
23-
FirebaseMessaging,
23+
Messaging,
2424
MessagePayload,
2525
deleteToken,
2626
getToken,
@@ -89,7 +89,7 @@ function isSwSupported(): boolean {
8989
}
9090

9191
export class MessagingCompatImpl implements MessagingCompat, _FirebaseService {
92-
constructor(readonly app: AppCompat, readonly _delegate: FirebaseMessaging) {
92+
constructor(readonly app: AppCompat, readonly _delegate: Messaging) {
9393
this.app = app;
9494
this._delegate = _delegate;
9595
}

packages-exp/messaging-compat/test/fakes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
import { FirebaseApp } from '@firebase/app-compat';
19-
import { FirebaseMessaging } from '@firebase/messaging-exp';
19+
import { Messaging } from '@firebase/messaging-exp';
2020

2121
export function getFakeApp(): FirebaseApp {
2222
return {
@@ -36,6 +36,6 @@ export function getFakeApp(): FirebaseApp {
3636
};
3737
}
3838

39-
export function getFakeModularMessaging(): FirebaseMessaging {
39+
export function getFakeModularMessaging(): Messaging {
4040
return {};
4141
}

0 commit comments

Comments
 (0)