modelling/lib/Types.ts

16 lines
413 B
TypeScript
Raw Permalink Normal View History

2020-06-06 15:48:43 +02:00
export type PersistentTypeString = 'string'|'number'|'boolean'|'array';
export type PersistentPrimitive = string|number|boolean;
export type PersistentType = PersistentPrimitive|PersistentPrimitive[];
export type Observer = (
value: PersistentType,
prev: PersistentType,
key: string
) => void;
export type ControlObserver = (
value: PersistentType,
prev: PersistentType,
key: string
) => boolean;