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

x/netzo/deps/zod/mod.ts>z.util.arrayToEnum

Deno-powered framework for building business web apps
Go to Latest
variable z.util.arrayToEnum
import { z } from "https://deno.land/x/netzo@0.3.91/deps/zod/mod.ts";
const { arrayToEnum } = z.util;

type

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