Documentation / zerotal / validator / Infer
Type Alias: Infer<S>
Infer<
S> = { [K in keyof S]: S[K]["nullable"] extends true ? InferFieldType<S[K]> | null : InferFieldType<S[K]> }
Defined in: packages/validator/src/types.ts:57
Infer the validated TypeScript type from a Schema. All fields are treated as required at the type level — the required/optional distinction is enforced at runtime only. Trade-off acknowledged in the plan.
Type Parameters
S
S extends Schema