overmind
Version:
Frictionless state management
29 lines (28 loc) • 1.33 kB
TypeScript
import { IMutation } from 'proxy-state-tree';
export { deepCopy } from './statemachine';
export declare const createOnInitialize: () => ({ actions }: {
actions: any;
}, instance: any) => Promise<any[]>;
export declare const ENVIRONMENT: string;
export declare const IS_TEST: boolean;
export declare const IS_OPERATOR: unique symbol;
export declare const ORIGINAL_ACTIONS: unique symbol;
export declare const EXECUTION: unique symbol;
export declare const MODE_DEFAULT: unique symbol;
export declare const MODE_TEST: unique symbol;
export declare const MODE_SSR: unique symbol;
export declare class MockedEventEmitter {
emit(): void;
emitAsync(): void;
on(): void;
once(): void;
addListener(): void;
}
export declare const json: <T>(obj: T) => T;
export declare function isPromise(maybePromise: any): any;
export declare function processState(state: {}): {};
export declare function getFunctionName(func: Function): any;
export declare function getChangeMutations(stateA: object, stateB: object, path?: string[], mutations?: IMutation[]): IMutation[];
export declare function getActionsByName(name: string, actions?: {}, currentPath?: string[]): any;
export declare function getActionPaths(actions?: {}, currentPath?: string[]): any;
export declare function createActionsProxy(actions: any, cb: any): any;