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> = IsUnion<TList> extends true ? never : {
readonly [Property in keyof TList]: [TList[Property]] extends [
LazyItem<infer TSchema extends TreeNodeSchema>
] ? InsertableTypedNode<TSchema> : never;
}[NumberKeys<TList>];
Type Parameters
| Parameter | Constraint | Description |
|---|---|---|
| TList | AllowedTypes | AllowedTypes to process |
See Also
Input \