UNPKG

@canard/schema-form

Version:

React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components

9 lines (8 loc) 262 B
/** * Returns default value based on JSON Schema's default property or type * @param jsonSchema - JSON Schema * @returns Default value */ export declare const getSafeEmptyValue: <Schema extends { type?: string; }>(value: any, jsonSchema: Schema) => any;