import { ZodType } from "https://dotland.deno.dev/x/zod@v3.20/index.ts";
Constructors
new
ZodType(def: Def)Methods
_getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext
_getType(input: ParseInput): string
abstract
_parse(input: ParseInput): ParseReturnType<Output>_parseAsync(input: ParseInput): AsyncParseReturnType<Output>
_parseSync(input: ParseInput): SyncParseReturnType<Output>
_processInputParams(input: ParseInput): { status: ParseStatus; ctx: ParseContext; }
_refinement(refinement: RefinementEffect<Output>["refinement"]): ZodEffects<this, Output, Input>
and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>
brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>
default(def: util.noUndefined<Input>): ZodDefault<this>
default(def: () => util.noUndefined<Input>): ZodDefault<this>
describe(description: string): this
isNullable(): boolean
isOptional(): boolean
nullable(): ZodNullable<this>
nullish(): ZodNullable<ZodOptional<this>>
optional(): ZodOptional<this>
or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>
parse(data: unknown, params?: Partial<ParseParams>): Output
parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>
pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>
promise(): ZodPromise<this>
refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>
refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>
refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input>
refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, Output, Input>
safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>
safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>
superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>
superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>
transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>