Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/value_schema/dist-deno/schemas/string.ts>string

simple, easy-to-use, and declarative input validator; supports Node.js, TypeScript, Deno, and Bun
Go to Latest
function string
import { string } from "https://deno.land/x/value_schema@v4.0.0-rc.2/dist-deno/schemas/string.ts";

schema for string or null or undefined

Returns

StringSchema<null | undefined>

schema for string or undefined

schema for string or null

schema for string