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

10 lines
280 B
TypeScript

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