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

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