UNPKG

@edgeguideab/expect

Version:

Check for user input in a consistent way and generate error messages for missings

5 lines (4 loc) 268 B
import { Options, Validation } from "./definitions"; import { ExpectTypes } from "./types/index"; declare function expect<Schema extends Record<string, Options | ExpectTypes> | Record<string, any>>(schema: Schema, input: unknown): Validation<Schema>; export = expect;