Skip to main content

TreeNodeSchemaClassUnsafe Interface

Unenforced version of TreeNodeSchemaClass.

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 interface TreeNodeSchemaClassUnsafe<out Name extends string, out Kind extends NodeKind, out TNode extends Unenforced<TreeNode>, in TInsertable, out ImplicitlyConstructable extends boolean, out Info> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info>

Extends: TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info>

Type Parameters

Parameter Constraint Description
Name string
Kind NodeKind
TNode Unenforced<TreeNode>
TInsertable
ImplicitlyConstructable boolean
Info

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.

Construct Signatures

ConstructSignature Modifiers Return Type Description
new (data: TInsertable | InternalTreeNode): Unhydrated<TNode> sealed Unhydrated<TNode> Constructs an Unhydrated node with this schema.

Construct Signature Details

new (data: TInsertable | InternalTreeNode): Unhydrated<TNode>

Constructs an Unhydrated node with this 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

/** @sealed */
new (data: TInsertable | InternalTreeNode): Unhydrated<TNode>;

Remarks

This constructor is also used internally to construct hydrated nodes with a different parameter type. Therefore, overriding this constructor with different argument types is not type-safe and is not supported.

Parameters

Parameter Type Description
data TInsertable | InternalTreeNode

Returns

Return type: Unhydrated<TNode>