UNPKG

succulent

Version:

Powerful and easy runtime type checking

4 lines (3 loc) 167 B
import { SchemaBase } from "../schema"; export declare function check<T>(x: unknown, schema: SchemaBase<T>): asserts x is T; export declare const guard: typeof check;