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’
Type Parameters
Section titled “Type Parameters”TFields
Section titled “TFields”TFields
extends Record
<string
, FieldDefinition
<unknown
>>