UNPKG

786 BTypeScriptView Raw
1import { Serializer } from './serializer';
2export declare type TypeScriptType = typeof Number | typeof Boolean | typeof String | typeof Object | typeof Array | null;
3export interface SchemaNode {
4 readonly name: string;
5 readonly type: string;
6 readonly tsType: TypeScriptType;
7 readonly defined: boolean;
8 readonly dirty: boolean;
9 readonly frozen: boolean;
10 readonly readOnly: boolean;
11 readonly defaultValue: any | null;
12 readonly required: boolean;
13 readonly parent: SchemaNode | null;
14 readonly description: string | null;
15 readonly children: {
16 [key: string]: SchemaNode;
17 } | null;
18 readonly items: SchemaNode[] | null;
19 readonly itemPrototype: SchemaNode | null;
20 value: any;
21 serialize(serializer: Serializer): void;
22}