Packages > @fluidframework/tree > TreeNodeSchemaNonClass

TreeNodeSchemaNonClass Interface

Schema which is not a class.

Signature

export interface TreeNodeSchemaNonClass<out Name extends string = string, out Kind extends NodeKind = NodeKind, out TNode = unknown, in TInsertable = never, out ImplicitlyConstructable extends boolean = boolean, out Info = unknown> extends TreeNodeSchemaCore<Name, Kind, ImplicitlyConstructable, Info>

Extends: TreeNodeSchemaCore <Name, Kind, ImplicitlyConstructable, Info>

Type Parameters

Parameter Constraint Default Description
Name string string
Kind NodeKind NodeKind
TNode unknown
TInsertable never
ImplicitlyConstructable boolean boolean
Info unknown

Remarks

This is used for schema which cannot have their instances constructed using constructors, like leaf schema.

Methods

Method Return Type Description
create(data) TNode

Method Details

create

Signature

create(data: TInsertable): TNode;

Parameters

Parameter Type Description
data TInsertable

Returns

Return type: TNode