Skip to main content

TreeNodeFromImplicitAllowedTypes TypeAlias

Type of tree node for a field of the given schema.

Signature

export type TreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes = TreeNodeSchema> = TSchema extends TreeNodeSchema ? NodeFromSchema<TSchema> : TSchema extends AllowedTypes ? NodeFromSchema<FlexListToUnion<TSchema>> : unknown;

Type Parameters

Parameter Constraint Default Description
TSchema ImplicitAllowedTypes TreeNodeSchema