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

16 lines (15 loc) 664 B
import type { Fn } from '../../../../../@aileron/declare'; import type { JsonSchema } from '../../../../../types'; type MergeSchemaHandler = Fn<[ base: JsonSchema, source: Partial<JsonSchema> ], JsonSchema>; /** * Returns the appropriate schema intersection function based on the JSON Schema. * Each type has its own specialized merge logic for combining schemas in an allOf array. * * @param schema - The JSON Schema to get the merge function for * @returns The merge function for the given schema type, or null if no merge function exists */ export declare const getMergeSchemaHandler: (schema: JsonSchema) => MergeSchemaHandler | null; export {};