Packages > @fluidframework/tree >

InsertableObjectFromSchemaRecordUnsafe

Unenforced version of InsertableObjectFromSchemaRecord.

Signature

export type InsertableObjectFromSchemaRecordUnsafe<T extends Unenforced<RestrictiveReadonlyRecord<string, ImplicitFieldSchema>>> = {
    readonly [Property in keyof T as FieldHasDefaultUnsafe<T[Property]> extends false ? Property : never]: InsertableTreeFieldFromImplicitFieldUnsafe<T[Property]>;
} & {
    readonly [Property in keyof T as FieldHasDefaultUnsafe<T[Property]> extends true ? Property : never]?: InsertableTreeFieldFromImplicitFieldUnsafe<T[Property]>;
};

Type Parameters

Parameter Constraint Description
T Unenforced<RestrictiveReadonlyRecord<string, ImplicitFieldSchema>>

Remarks

Do note use this type directly: its only needed in the implementation of generic logic which define recursive schema, not when using recursive schema.