Skip to main content

TreeNodeSchemaUnsafe TypeAlias

Unenforced version of TreeNodeSchema.

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

type TreeNodeSchemaUnsafe<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends Unenforced<TreeNode | TreeLeafValue> = unknown, TBuild = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown> = TreeNodeSchemaClassUnsafe<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info> | TreeNodeSchemaNonClassUnsafe<Name, Kind, TNode, TBuild, ImplicitlyConstructable, Info>;

Type Parameters

ParameterConstraintDefaultDescription
Namestringstring
KindNodeKindNodeKind
TNodeUnenforced<TreeNode | TreeLeafValue>unknown
TBuildnever
ImplicitlyConstructablebooleanboolean
Infounknown

Remarks

Do not use this type directly: it is only needed in the implementation of generic logic which define recursive schema, not when using recursive schema. \