Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pup/deps.ts>z.ZodLiteral

Universal process manager built in Deno
Go to Latest
class z.ZodLiteral
extends ZodType<T, ZodLiteralDef<T>>
import { z } from "https://deno.land/x/pup@1.0.0-alpha-27/deps.ts";
const { ZodLiteral } = z;

Properties

readonly
value

Methods

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

Static Properties

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