Skip to content
A

ProducedFields

type ProducedFields<F> = Simplify<{ [K in Exclude<keyof F, OmitPresenceKeys<F>>]: FieldValue<F[K]> } & { [K in OmitPresenceKeys<F>]?: FieldValue<F[K]> }>;

Defined in: src/core/producer.ts:208

The output type of an object built from a fields map. A field whose producer has presence: "omit" becomes an optional key (key?:); every other field is a required key. Optional object/oneOf fields are T | null (see FieldValue). Under exactOptionalPropertyTypes this exactly mirrors the runtime absence model.

Type Parameter
F