x/zod/mod.ts

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

Type Parameters

T extends EnumLike[src]

Properties

readonly
enum
[src]

Methods

_parse(input: ParseInput): ParseReturnType<T[keyof T]>[src]

Static Properties

create: <T extends EnumLike>(values: T, params?: RawCreateParams) => ZodNativeEnum<T>[src]