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

11 lines (10 loc) 333 B
import type { JsonSchemaType, JsonSchemaWithVirtual } from '../../../types'; type Return = { type: JsonSchemaType; nullable: boolean; }; export declare const extractSchemaInfo: <Schema extends { type?: JsonSchemaWithVirtual["type"]; nullable?: boolean; }>(jsonSchema: Schema | undefined) => Return | null; export {};