UNPKG

resourcex

Version:

ResourceX - Utilities to wrap global variables into rxjs observables with **reduced** learning curve

8 lines (7 loc) 241 B
export declare type TSnapshot<R> = { val: any; action: string; args: any[]; state: R; }; export declare function wrapMiddleware<R>(funs: ((s: TSnapshot<R>) => Promise<any>)[]): (input: TSnapshot<R>) => Promise<TSnapshot<R>>;