[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/validator](../README) / 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: [validator/src/types.ts:57](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/validator/src/types.ts#L57)

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`](Schema)
