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

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

The modular and type safe schema library for validating structural data 🤖
Latest
interface StringSchema
implements BaseSchema<string, string, StringIssue>
import { type StringSchema } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/schemas/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.