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

12 lines
289 B
TypeScript

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