UNPKG

mobx

Version:

Simple, scalable state management.

10 lines (9 loc) 594 B
export interface IAction { isMobxAction: boolean; } export declare function createAction(actionName: string, fn: Function, ref?: Object): Function & IAction; export declare function executeAction(actionName: string, fn: Function, scope?: any, args?: IArguments): any; export declare function allowStateChanges<T>(allowStateChanges: boolean, func: () => T): T; export declare function allowStateChangesStart(allowStateChanges: boolean): boolean; export declare function allowStateChangesEnd(prev: boolean): void; export declare function allowStateChangesInsideComputed<T>(func: () => T): T;