mobx
Version:
Simple, scalable state management.
45 lines (44 loc) • 2.99 kB
TypeScript
export declare const niceErrors: {
readonly 0: "Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'";
readonly 1: (annotationType: any, key: PropertyKey) => string;
readonly 5: "'keys()' can only be used on observable objects, arrays, sets and maps";
readonly 6: "'values()' can only be used on observable objects, arrays, sets and maps";
readonly 7: "'entries()' can only be used on observable objects, arrays and maps";
readonly 8: "'set()' can only be used on observable objects, arrays and maps";
readonly 9: "'remove()' can only be used on observable objects, arrays and maps";
readonly 10: "'has()' can only be used on observable objects, arrays and maps";
readonly 11: "'get()' can only be used on observable objects, arrays and maps";
readonly 12: "Invalid annotation";
readonly 13: "Dynamic observable objects cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)";
readonly 14: "Intercept handlers should return nothing or a change object";
readonly 15: "Observable arrays cannot be frozen. If you're passing observables to 3rd party component/function that calls Object.freeze, pass copy instead: toJS(observable)";
readonly 16: "Modification exception: the internal structure of an observable array was changed.";
readonly 19: (other: any) => string;
readonly 20: (other: any) => string;
readonly 21: (dataStructure: any) => string;
readonly 23: "It is not possible to get index atoms from arrays";
readonly 24: (thing: any) => string;
readonly 25: (property: any, name: any) => string;
readonly 26: "please specify a property";
readonly 27: (property: any, name: any) => string;
readonly 28: (thing: any) => string;
readonly 29: "Expecting some object";
readonly 30: "invalid action stack. did you forget to finish an action?";
readonly 31: "missing option for computed: get";
readonly 32: (name: any, derivation: any) => string;
readonly 33: (name: any) => string;
readonly 34: (name: any) => string;
readonly 35: "There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`";
readonly 36: "isolateGlobalState should be called before MobX is running any reactions";
readonly 37: (method: any) => string;
readonly 38: "'ownKeys()' can only be used on observable objects";
readonly 39: "'defineProperty()' can only be used on observable objects";
readonly 40: (length: any) => string;
readonly 41: (other: any) => string;
readonly 42: (key: any) => string;
readonly 43: (annotationType: any, name: any, kind: any) => string;
readonly 44: (annotationType: any) => string;
};
declare const errors: typeof niceErrors;
export declare function die(error: string | keyof typeof errors, ...args: any[]): never;
export {};