Module

x/zod/mod.ts>z.ZodLiteralDef

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

Type Parameters

optional
T = any

Properties

value: T
typeName: ZodFirstPartyTypeKind.ZodLiteral