@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
8 lines (7 loc) • 300 B
TypeScript
import type { ArrayValue, ObjectValue } from '../../../types';
/**
* Returns default value from JSON Schema's default property or based on type
* @param type - JSON Schema type
* @returns Empty value
*/
export declare const getEmptyValue: (type?: string) => ArrayValue | ObjectValue | undefined;