Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

z.StringValidation

import type { z } from "https://esm.sh/zod@3.25.76/index.d.cts"; 

const { StringValidation } = z;
type StringValidation =
| "email"
| "url"
| "emoji"
| "uuid"
| "nanoid"
| "regex"
| "cuid"
| "cuid2"
| "ulid"
| "datetime"
| "date"
| "time"
| "duration"
| "ip"
| "cidr"
| "base64"
| "jwt"
| "base64url"
| {
includes: string;
position?: number | undefined;
}
| {
startsWith: string;
}
| {
endsWith: string;
}
;

§Type

§
"email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | {
includes: string;
position?: number | undefined;
}
| {
startsWith: string;
}
| {
endsWith: string;
}
[src]