UNPKG

valia

Version:

A runtime data validator in TypeScript with advanced type inference, built-in validation functions, and seamless integration for server and client environments.

5 lines (3 loc) 192 B
export type PlainObject = Record<string | symbol, unknown>; export type PlainFunction = (...args: unknown[]) => unknown; export type AsyncFunction = (...args: unknown[]) => Promise<unknown>;