Packages > @fluidframework/tree >

InsertableTreeFieldFromImplicitField

Type of content that can be inserted into the tree for a field of the given schema.

Signature

export type InsertableTreeFieldFromImplicitField<TSchema extends ImplicitFieldSchema = FieldSchema> = TSchema extends FieldSchema<infer Kind, infer Types> ? ApplyKind<InsertableTreeNodeFromImplicitAllowedTypes<Types>, Kind> : TSchema extends ImplicitAllowedTypes ? InsertableTreeNodeFromImplicitAllowedTypes<TSchema> : unknown;

Type Parameters

Parameter Constraint Default Description
TSchema ImplicitFieldSchema FieldSchema