Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
variable util.arrayToEnum
import { util } from "https://deno.land/x/netzo@0.3.66/deps/zod/mod.ts";
const { arrayToEnum } = util;

type

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