refactor(service-worker): DRY up SW registration logic (#21842)

PR Close #21842
This commit is contained in:
George Kalpakas
2018-11-07 22:45:40 +02:00
committed by Andrew Kushnir
parent 4cfba58072
commit 8f120aff33
3 changed files with 53 additions and 44 deletions

View File

@ -21,7 +21,7 @@ export declare class SwPush {
export declare abstract class SwRegistrationOptions {
enabled?: boolean;
registrationStrategy?: (() => Observable<any>) | string;
registrationStrategy?: string | (() => Observable<unknown>);
scope?: string;
}