UNPKG

runtyp

Version:

Lightning-fast, zero-dependency runtime validation for TS/JS. 25x faster than zod with a cleaner API.

7 lines (6 loc) 234 B
import { InferShape, Pred } from '..'; type ObjectOptions = { allowUnknownKeys?: boolean; }; export declare function object<T extends Record<string, Pred<any>>>(schema: T, options?: ObjectOptions): Pred<InferShape<T>>; export {};