@antischematic/angular-state-library
Version:
Reactive state without boilerplate
9 lines (8 loc) • 591 B
TypeScript
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>;