Skip to main content
Module

x/zod/mod.ts>z.ZodLiteralDef

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
interface z.ZodLiteralDef
implements ZodTypeDef
import { type z } from "https://deno.land/x/zod@v3.20.0/mod.ts";
const { ZodLiteralDef } = z;

Type Parameters

optional
T = any

Properties

value: T
typeName: ZodFirstPartyTypeKind.ZodLiteral