Skip to main content
Module

x/zod/types.ts>ZodLiteral

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

Properties

readonly
value

Methods

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

Static Properties

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