mobx-keystone-mindreframer
Version:
A MobX powered state management solution based on data trees with first class support for Typescript, snapshots, patches and much more
19 lines (18 loc) • 560 B
TypeScript
/**
* A type that represents any integer number value.
* Syntactic sugar for `types.refinement(types.number, n => Number.isInteger(n), "integer")`
*
* ```ts
* types.integer
* ```
*/
export declare const typesInteger: import("./schemas").IdentityType<number>;
/**
* A type that represents any string value other than "".
* Syntactic sugar for `types.refinement(types.string, s => s !== "", "nonEmpty")`
*
* ```ts
* types.nonEmptyString
* ```
*/
export declare const typesNonEmptyString: import("./schemas").IdentityType<string>;