@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
TypeScript
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 {};