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

12 lines (11 loc) 679 B
import type { ResolveSchema } from '../../helpers/jsonSchema'; import type { JsonSchemaWithVirtual } from '../../types'; import type { SchemaNodeFactory } from './type'; /** * Creates a SchemaNode factory function that matches the JSON Schema type. * @note Before creating SchemaNode, it resolves the references in the JSON Schema. * @typeParam Schema - The JSON Schema type * @param resolveSchema - Schema resolution function used to resolve references * @returns A factory function that creates SchemaNode instances */ export declare const createSchemaNodeFactory: <Schema extends JsonSchemaWithVirtual>(resolveSchema: ResolveSchema | null) => SchemaNodeFactory<Schema>;