mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
12 lines
284 B
TypeScript
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 });
|
|
}
|
|
}
|