Skip to content

InferShapeFromFields

InferShapeFromFields<TFields> = { [K in keyof TFields]: TFields[K][“isOptional”] extends true ? InferFieldType<TFields[K]> | undefined : InferFieldType<TFields[K]> }

Defined in: types.ts:164

Infers the basic key-value shape from field definitions, without special top-level properties like ‘id’

TFields extends Record<string, FieldDefinition<unknown>>