Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/zod/index.ts>z.FilterEnum

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
type alias z.FilterEnum
import { type z } from "https://deno.land/x/zod@v3.21.1/index.ts";
const { FilterEnum } = z;

Type Parameters

Values
ToExclude
definition: Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum<Rest, ToExclude> : [Head, ...FilterEnum<Rest, ToExclude>] : never