PartialWithFieldValue
Similar to TypeScript's Partial<T>
, but allows nested fields to be
omitted and FieldValues to be passed in as property values.
type PartialWithFieldValue<T> = Partial<T> | (T extends Primitive ? T : T extends {} ? [K in keyof T]?: PartialWithFieldValue<T[K]> | FieldValue : never);
§Type
§
Partial<T> | (T extends Primitive ? T : T extends {} ? [K in keyof T]?: PartialWithFieldValue<T[K]> | FieldValue : never)
[src]