Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/zod/mod.ts>util.arrayToEnum

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
variable util.arrayToEnum
import { util } from "https://deno.land/x/zod@v3.20.1/mod.ts";
const { arrayToEnum } = util;

type

<T extends string, U extends [T, ...T[]]>(items: U) => [k in U[number]]: k