x/zod/types.ts

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
class ZodLiteral
extends ZodType<T, ZodLiteralDef<T>>
import { ZodLiteral } from "https://deno.land/x/zod@v3.17.3/types.ts?s=ZodLiteral";

Properties

readonly
value
[src]

Methods

_parse(input: ParseInput): ParseReturnType<this["_output"]>[src]

Static Properties

create: <T extends Primitive>(value: T, params?: RawCreateParams) => ZodLiteral<T>[src]