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
| Parameter | Constraint | Description |
|---|---|---|
| T | readonly TreeNodeSchema[] |
Methods
| Method | Alerts | Return Type | Description |
|---|---|---|---|
| create(this, child) | Beta | TreeFieldFromImplicitField<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
| Parameter | Constraint | Description |
|---|---|---|
| TThis | TreeNodeSchema |
Parameters
| Parameter | Type | Description |
|---|---|---|
| this | TThis | |
| child | TreeNodeFromImplicitAllowedTypes<T> |
Returns
Return type: TreeFieldFromImplicitField<TThis>