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

9 lines (8 loc) 369 B
import type { JsonSchemaType, JsonSchemaWithVirtual } from '../../../../../types'; /** * Returns the node group based on the schema type. * @param type - JSON schema type * @param schema - JSON schema * @returns Node group: `branch` | `terminal` */ export declare const getNodeGroup: (type: JsonSchemaType, schema: JsonSchemaWithVirtual) => "branch" | "terminal";