UNPKG

@zcorky/schema

Version:

Object schema validation written with TypeScript, inspired by dayjs and schema

3 lines (2 loc) 175 B
import { IOptions } from '../core/interface'; export declare const assert: <T>(fn: (v: T) => boolean, message: string) => (path: string, value: T, options: IOptions) => void;