Skip to main content

InsertableTreeNodeFromAllowedTypes TypeAlias

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

This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.

For more information about our API support guarantees, see here.

Signature

export type InsertableTreeNodeFromAllowedTypes<TList extends AllowedTypes> = TList extends readonly [
LazyItem<infer TSchema extends TreeNodeSchema>,
...infer Rest extends AllowedTypes
] ? InsertableTypedNode<TSchema> | InsertableTreeNodeFromAllowedTypes<Rest> : never;

Type Parameters

Parameter Constraint Description
TList AllowedTypes AllowedTypes to process

See Also

Input