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;
|
error?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface NotificationObject extends NotificationOptions {
|
export interface NotificationObject extends NotificationOptions { title: string; }
|
||||||
title: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function errorObservable(message: string): Observable<any> {
|
function errorObservable(message: string): Observable<any> {
|
||||||
|
|
|
@ -8,7 +8,7 @@ export declare class ServiceWorkerModule {
|
||||||
export declare class SwPush {
|
export declare class SwPush {
|
||||||
readonly isEnabled: boolean;
|
readonly isEnabled: boolean;
|
||||||
readonly messages: Observable<object>;
|
readonly messages: Observable<object>;
|
||||||
readonly messagesClicked: Observable<object>;
|
readonly messagesClicked: Observable<{ action: string; notification: NotificationObject }>;
|
||||||
readonly subscription: Observable<PushSubscription | null>;
|
readonly subscription: Observable<PushSubscription | null>;
|
||||||
constructor(sw: NgswCommChannel);
|
constructor(sw: NgswCommChannel);
|
||||||
requestSubscription(options: {
|
requestSubscription(options: {
|
||||||
|
|
Loading…
Reference in New Issue