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

12 lines
297 B
TypeScript

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