mobx-keystone
Version:
A MobX powered state management solution based on data trees with first class support for TypeScript, snapshots, patches and much more
40 lines (39 loc) • 818 B
TypeScript
/**
* A built-in action.
*/
export declare enum BuiltInAction {
/**
* applyPatches
*/
ApplyPatches = "$$applyPatches",
/**
* applySnapshot
*/
ApplySnapshot = "$$applySnapshot",
/**
* detach
*/
Detach = "$$detach",
/**
* applySet
*/
ApplySet = "$$applySet",
/**
* applyDelete
*/
ApplyDelete = "$$applyDelete",
/**
* applyMethodCall
*/
ApplyMethodCall = "$$applyMethodCall"
}
/**
* Returns if a given action name is a built-in action, this is, one of:
* - applyPatches()
* - applySnapshot()
* - detach()
*
* @param actionName Action name to check.
* @returns true if it is a built-in action, false otherwise.
*/
export declare function isBuiltInAction(actionName: string): actionName is BuiltInAction;