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