Skip to main content
Version: v2

Statics Interface

Statics for classes created by createSchema(types, inputSchemaFactory, name).

This API is provided as a beta preview and may change without notice.

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

Signature​

interface Statics<T extends readonly TreeNodeSchema[]>

Type Parameters​

ParameterConstraintDescription
Treadonly TreeNodeSchema[]

Methods​

MethodAlertsReturn TypeDescription
create(this, child)BetaTreeFieldFromImplicitField<TThis>Create a TreeNode with this schema which wraps the provided child to create the union.

Method Details​

create​

Create a TreeNode with this schema which wraps the provided child to create the union.

This API is provided as a beta preview and may change without notice.

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

Signature​

create<TThis extends TreeNodeSchema>(this: TThis, child: TreeNodeFromImplicitAllowedTypes<T>): TreeFieldFromImplicitField<TThis>;
Type Parameters​
ParameterConstraintDescription
TThisTreeNodeSchema

Parameters​

ParameterTypeDescription
thisTThis
childTreeNodeFromImplicitAllowedTypes<T>

Returns​

Return type: TreeFieldFromImplicitField<TThis>