mobx-keystone
Version:
A MobX powered state management solution based on data trees with first class support for TypeScript, snapshots, patches and much more
20 lines (19 loc) • 661 B
TypeScript
/**
* Runs a block in unprocted mode, as if it were run inside a model action.
* Consider using a proper model action instead since these kind of actions are not recorded.
*
* @template T Return type.
* @param name Mobx action name.
* @param fn Action block.
* @returns
*/
export declare function runUnprotected<T>(name: string, fn: () => T): T;
/**
* Runs a block in unprocted mode, as if it were run inside a model action.
* Consider using a proper model action instead since these kind of actions are not recorded.
*
* @template T Return type.
* @param fn Action block.
* @returns
*/
export declare function runUnprotected<T>(fn: () => T): T;