fix(service-worker): add missing annotation for SwPush (#19721)
PR Close #19721
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
import {Subject} from 'rxjs/Subject';
|
||||
|
||||
@ -23,6 +24,7 @@ import {NgswCommChannel} from './low_level';
|
||||
*
|
||||
* @experimental
|
||||
*/
|
||||
@Injectable()
|
||||
export class SwPush {
|
||||
readonly messages: Observable<object>;
|
||||
readonly subscription: Observable<PushSubscription|null>;
|
||||
@ -79,4 +81,4 @@ export class SwPush {
|
||||
const unsubscribeOnce = op_take.call(unsubscribe, 1);
|
||||
return op_toPromise.call(unsubscribeOnce) as Promise<void>;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user