UNPKG

@ashetm/ng-broadcast-channel

Version:

``@ashetm/ng-broadcast-channel`` is a library that simplify manipulation of ``BroadcastChannel`` API.

13 lines (12 loc) 373 B
import { NgZone } from "@angular/core"; import { Observable } from "rxjs"; export declare class BroadcastChannelRef<T> { private readonly _ngZone; private readonly _name; readonly data$: Observable<T>; private readonly _broadcastChannel; get name(): string; constructor(_ngZone: NgZone, _name: string); close(): void; send(data: T): void; }