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