feat(service-worker): allow configuring when the SW is registered (#21842)

Fixes #20970

PR Close #21842
This commit is contained in:
JiaLi.Passion
2018-01-29 01:38:16 +09:00
committed by Andrew Kushnir
parent aa53d6cc6d
commit 4cfba58072
4 changed files with 58 additions and 16 deletions

View File

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