Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

util.arrayToEnum

import { util } from "https://esm.sh/zod@3.25.76/index.d.cts"; 

const { arrayToEnum } = util;
const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => [k in U[number]]: k;