UNPKG

valia

Version:

A runtime data validator in TypeScript with advanced type inference, built-in validation functions, and seamless integration for server and client environments.

13 lines (12 loc) 331 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BooleanFormat = void 0; exports.BooleanFormat = { defaultCriteria: {}, checking(queue, path, criteria, value) { if (typeof value !== "boolean") { return ("TYPE_NOT_BOOLEAN"); } return (null); }, };