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

12 lines
289 B
TypeScript

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