Skip to content

TypeAlias.InferObject

github-actions[bot] edited this page Jul 8, 2026 · 24 revisions

umt / InferObject

Type Alias: InferObject<T>

InferObject<T> = { [key in keyof PickPartial<ObjectShapeProperties<T>, OptionalKeys<ObjectShapeProperties<T>>>]: PickPartial<ObjectShapeProperties<T>, OptionalKeys<ObjectShapeProperties<T>>>[key] }

Defined in: Validate/object/core.ts:42

Inferred object type produced by object(). Splits the property map into required and optional halves via PickPartial + OptionalKeys so optional properties surface with ?: in the resulting type.

Type Parameters

T

T extends ObjectShape

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally