UNPKG

computed-types

Version:

Runtime validation types for TypeScript.

8 lines (7 loc) 297 B
import { SchemaParameters, SchemaValidatorFunction } from './io'; import { ErrorLike, ObjectPath } from './errors'; export default function compiler<S>(schema: S, opts?: { error?: ErrorLike<SchemaParameters<S>>; basePath?: ObjectPath; strict?: boolean; }): SchemaValidatorFunction<S>;