UNPKG

mst-effect

Version:

Designed to be used with MobX-State-Tree to create asynchronous actions using RxJS.

9 lines 458 B
import { EFFECT_ACTION_IDENTITY } from '../const'; export declare type EffectAction = { [EFFECT_ACTION_IDENTITY]: () => void; }; export declare type ValidEffectActions = EffectAction | EffectAction[]; export declare function action<P extends any[]>(fn: (...params: P) => void, ...params: P): EffectAction; export declare const NOOP: EffectAction; export declare function runActions(actions: ValidEffectActions): void; //# sourceMappingURL=action.d.ts.map