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

export 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

Parameter Constraint Default Description
Name string string
Kind NodeKind NodeKind
TNode Unenforced<TreeNode | TreeLeafValue> unknown
TBuild never
ImplicitlyConstructable boolean boolean
Info unknown

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.