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

x/valibot/src/schemas/string/index.ts>StringSchema

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface StringSchema
implements BaseSchema<string, string, StringIssue>
import { type StringSchema } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/schemas/string/index.ts";

String schema type.

Type Parameters

TMessage extends ErrorMessage<StringIssue> | undefined

Properties

readonly
type: "string"

The schema type.

readonly
reference: string

The schema reference.

readonly
expects: "string"

The expected property.

readonly
message: TMessage

The error message.