fix(service-worker): Add typing to public api guard and fix lint errors (#25860)

PR Close #25860
This commit is contained in:
Joost Zöllner 2018-09-28 10:12:54 +02:00 committed by Kara Erickson
parent c60418b1f4
commit 10618752e6
2 changed files with 2 additions and 4 deletions

View File

@ -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> {

View File

@ -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: {