Skip to main content

InsertableObjectFromSchemaRecordAlpha TypeAlias

Alpha version of InsertableObjectFromSchemaRecord that supports field defaults.

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

export type InsertableObjectFromSchemaRecordAlpha<T extends RestrictiveStringRecord<ImplicitFieldSchema>> = RestrictiveStringRecord<ImplicitFieldSchema> extends T ? {
arbitraryKey: "arbitraryValue";
} extends T ? Record<string, never> : never : FlattenKeys<{
readonly [Property in keyof T]?: InsertableTreeFieldFromImplicitField<T[Property & string]>;
} & {
readonly [Property in keyof T as FieldHasDefaultAlpha<T[Property & string]> extends false ? Property : never]: InsertableTreeFieldFromImplicitField<T[Property & string]>;
}>;

Type Parameters

ParameterConstraintDescription
TRestrictiveStringRecord<ImplicitFieldSchema>