UNPKG

ngx-schema-forms

Version:

New features: - Ajv schema validator. - Angular forms compatible: Property tree is created using FormGroup, FormArray and FormControl classes. - Array now properly loads initial data from model. - WidgetTyep: WidgetRegistry now supports WidgetType, now wo

21 lines (20 loc) 469 B
export interface Schema { [key: string]: any; } export interface SchemaError { code: string; message: string; params?: any; } export interface SchemaErrors { [path: string]: SchemaError; } export declare type SchemaValidatorFn = (value: any) => SchemaErrors | null; export declare enum SchemaPropertyType { String = "string", Object = "object", Array = "array", Boolean = "boolean", Integer = "integer", Number = "number", }