@firebase/messaging-interop-types 0.2.4-20260505164105 → 0.2.4-eap-crashlytics.3dd4e65d9
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.
- package/index.d.ts +6 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
export interface MessagingInternal {
|
|
19
19
|
getToken(options?: GetTokenOptions): Promise<string>;
|
|
20
|
+
register(options?: RegisterOptions): Promise<void>;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
interface GetTokenOptions {
|
|
@@ -24,6 +25,11 @@ interface GetTokenOptions {
|
|
|
24
25
|
serviceWorkerRegistration?: ServiceWorkerRegistration;
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
export interface RegisterOptions {
|
|
29
|
+
vapidKey?: string;
|
|
30
|
+
serviceWorkerRegistration?: ServiceWorkerRegistration;
|
|
31
|
+
}
|
|
32
|
+
|
|
27
33
|
export type MessagingInternalComponentName = 'messaging-internal';
|
|
28
34
|
|
|
29
35
|
declare module '@firebase/component' {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/messaging-interop-types",
|
|
3
|
-
"version": "0.2.4-
|
|
3
|
+
"version": "0.2.4-eap-crashlytics.3dd4e65d9",
|
|
4
4
|
"description": "@firebase/messaging-interop-types Types",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"license": "Apache-2.0",
|