fix(service-worker): Add typing to public api guard and fix lint errors (#25860)
PR Close #25860
This commit is contained in:
parent
c60418b1f4
commit
10618752e6
|
@ -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<any> {
|
||||
|
|
|
@ -8,7 +8,7 @@ export declare class ServiceWorkerModule {
|
|||
export declare class SwPush {
|
||||
readonly isEnabled: boolean;
|
||||
readonly messages: Observable<object>;
|
||||
readonly messagesClicked: Observable<object>;
|
||||
readonly messagesClicked: Observable<{ action: string; notification: NotificationObject }>;
|
||||
readonly subscription: Observable<PushSubscription | null>;
|
||||
constructor(sw: NgswCommChannel);
|
||||
requestSubscription(options: {
|
||||
|
|
Loading…
Reference in New Issue