TreeNodeSchemaNonClass TypeAlias
Schema which is not a class.
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 */
export type TreeNodeSchemaNonClass<Name extends string = string, Kind extends NodeKind = NodeKind, TNode extends TreeNode | TreeLeafValue = TreeNode | TreeLeafValue, TInsertable = never, ImplicitlyConstructable extends boolean = boolean, Info = unknown, TConstructorExtra = never> = TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info, TInsertable> & (undefined extends TConstructorExtra ? {
create(data?: TInsertable | TConstructorExtra): TNode;
} : {
create(data: TInsertable | TConstructorExtra): TNode;
});
Type Parameters
Parameter | Constraint | Default | Description |
---|---|---|---|
Name | string | string | |
Kind | NodeKind | NodeKind | |
TNode | TreeNode | TreeLeafValue | TreeNode | TreeLeafValue | |
TInsertable | never | ||
ImplicitlyConstructable | boolean | boolean | |
Info | unknown | ||
TConstructorExtra | never |
Remarks
This is used for schema which cannot have their instances constructed using constructors, like leaf schema.