Skip to main content

NodeFromSchema TypeAlias

Takes in TreeNodeSchema[] and returns a TypedNode union.

Signature

export type NodeFromSchema<T extends TreeNodeSchema> = T extends TreeNodeSchema<string, NodeKind, infer TNode> ? TNode : never;

Type Parameters

Parameter Constraint Description
T TreeNodeSchema