@canard/schema-form
Version:
React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components
10 lines (9 loc) • 497 B
TypeScript
import type { AllowedValue as BaseAllowedValue, InferValueType as BaseInferValueType } from '@winglet/json-schema';
export type VirtualNodeValue = any[];
export type AllowedValue = BaseAllowedValue | VirtualNodeValue;
export type InferValueType<T extends {
type?: string;
}> = T extends {
type: 'virtual';
} ? VirtualNodeValue : BaseInferValueType<T>;
export type { BooleanValue, NumberValue, StringValue, ArrayValue, ObjectValue, NullValue, UndefinedValue, } from '@winglet/json-schema';