UNPKG

reviewed

Version:

Ergonomic, extensible and lightweight validators.

11 lines (10 loc) 265 B
import { Validated, Validator } from "./validators"; export type ArrayFields<T> = { [P in keyof T]: T[P][]; }; export type ValidatedFields<T> = { [P in keyof T]: Validated<T[P]>; }; export type ValidatorFields<T> = { [P in keyof T]: Validator<T[P]>; };