UNPKG

r-magnet

Version:

A state management library for React

15 lines (14 loc) 573 B
import { EffectHandler2 as EffectHandler, ActionParam, ActionFn } from './typeHelper'; export declare function createEffectHelper(effectMap: Map<string, any>): (actions: ActionParam, handlerFn: EffectHandler) => { unsubscribe: () => void; }; export declare function onHelper(effectMap: Map<string, any>): (...actions: ActionFn[]) => { debounce(milliseconds: number): { effect(handlerFn: EffectHandler): { unsubscribe: () => void; }; }; effect(handlerFn: EffectHandler): { unsubscribe: () => void; }; };