UNPKG

@antischematic/angular-state-library

Version:
9 lines (8 loc) 591 B
import { DispatchObserver, ZoneCompatible } from "./interfaces"; import { Observable } from "rxjs"; export interface DispatchOptions { zone?: "noop" | ZoneCompatible; } export declare function dispatch<TValue>(source: Observable<TValue>, options?: DispatchOptions): Observable<TValue>; export declare function dispatch<TValue>(source: Observable<TValue>, observer: DispatchObserver<TValue>, options?: DispatchOptions): Observable<TValue>; export declare function dispatch<TValue>(source: Observable<TValue>, next: (value: TValue) => void, options?: DispatchOptions): Observable<TValue>;