Skip to main content

Statics Interface

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

This API is provided as an alpha 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)AlphaTreeFieldFromImplicitField<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 an alpha 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>