Skip to content

TypeAlias.ObjectValidator

github-actions[bot] edited this page May 13, 2026 · 30 revisions

umt / ObjectValidator

Type Alias: ObjectValidator<T, U>

ObjectValidator<T, U> = (value) => ValidateCoreReturnType<{ [key in keyof PickPartial<U, OptionalKeys<U>>]: PickPartial<U, OptionalKeys<U>>[key] }> & object

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

Object validator augmented with the original shape map. The shape map is exposed so derived helpers such as pick(), omit(), partial(), and required() can compose new object validators from existing ones.

Type Declaration

shape

shape: T

Type Parameters

T

T extends ObjectShape

U

U = { [key in keyof T]: ValidateType<ReturnType<T[key]>["type"]> }

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally