diff --git a/packages/service-worker/src/low_level.ts b/packages/service-worker/src/low_level.ts index f63aa3bcba..11146bb8fd 100644 --- a/packages/service-worker/src/low_level.ts +++ b/packages/service-worker/src/low_level.ts @@ -52,9 +52,7 @@ interface StatusEvent { error?: string; } -export interface NotificationObject extends NotificationOptions { - title: string; -} +export interface NotificationObject extends NotificationOptions { title: string; } function errorObservable(message: string): Observable { diff --git a/tools/public_api_guard/service-worker/service-worker.d.ts b/tools/public_api_guard/service-worker/service-worker.d.ts index 8d5d48e50c..88b33f3f9a 100644 --- a/tools/public_api_guard/service-worker/service-worker.d.ts +++ b/tools/public_api_guard/service-worker/service-worker.d.ts @@ -8,7 +8,7 @@ export declare class ServiceWorkerModule { export declare class SwPush { readonly isEnabled: boolean; readonly messages: Observable; - readonly messagesClicked: Observable; + readonly messagesClicked: Observable<{ action: string; notification: NotificationObject }>; readonly subscription: Observable; constructor(sw: NgswCommChannel); requestSubscription(options: {