swc/crates/swc_bundler/tests/.cache/deno/733ebae467731b038d892df56cd882efecc1065e.ts
2021-11-09 20:42:49 +09:00

12 lines
284 B
TypeScript

// Loaded from https://deno.land/x/validasaur/src/rules/is_bool.ts
import type { Validity } from "../types.ts";
import { invalid } from "../utils.ts";
export function isBool(value: any): Validity {
if (typeof value !== "boolean") {
return invalid("isBool", { value });
}
}