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

x/frugal/dep/zod.ts>z.util.arrayToEnum

A frugal web framework
Latest
variable z.util.arrayToEnum
import { z } from "https://deno.land/x/frugal@0.9.6/dep/zod.ts";
const { arrayToEnum } = z.util;

type

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