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) 494 B
import type { Dictionary } from '../@aileron/declare'; import type { ChildNodeComponent } from '../components/SchemaNode'; import type { ChildNodeComponentProps } from '../types'; type ChildNodeComponentMap<Value extends Dictionary> = { [key in keyof Value]: ChildNodeComponent<ChildNodeComponentProps<Value[key]>>; }; export declare const useChildNodeComponentMap: <Value extends Dictionary>(ChildNodeComponents: ChildNodeComponent[]) => ChildNodeComponentMap<Required<Value>>; export {};