Skip to main content

InsertableTreeNodeFromImplicitAllowedTypes TypeAlias

Type of content that can be inserted into the tree for a node of the given schema.

Signature

export type InsertableTreeNodeFromImplicitAllowedTypes<TSchema extends ImplicitAllowedTypes> = [
TSchema
] extends [TreeNodeSchema] ? InsertableTypedNode<TSchema> : [TSchema] extends [AllowedTypes] ? InsertableTreeNodeFromAllowedTypes<TSchema> : never;

Type Parameters

Parameter Constraint Description
TSchema ImplicitAllowedTypes Schema to process.

See Also

Input