Packages > @fluidframework/tree >

InsertableObjectFromSchemaRecord

Helper used to produce types for:

  1. Insertable content which can be used to construct an object node.

  2. Insertable content which is an unhydrated object node.

  3. Union of 1 and 2.

Signature

export type InsertableObjectFromSchemaRecord<T extends RestrictiveReadonlyRecord<string, ImplicitFieldSchema>> = {
    readonly [Property in keyof T]: InsertableTreeFieldFromImplicitField<T[Property]>;
};

Type Parameters

Parameter Constraint Description
T RestrictiveReadonlyRecord<string, ImplicitFieldSchema>