UNPKG

reactive-blocs

Version:
12 lines (11 loc) 411 B
import { BehaviorSubject, Observable, Subject } from 'rxjs'; interface Event { from: string; to: string; payload: any; } export declare const blocs: BehaviorSubject<string[]>; export declare const events: BehaviorSubject<Event[]>; export declare const currentEvent: Observable<Event>; export declare const link: (source: Observable<any>, target: Subject<any>, labels?: string[]) => void; export {};