Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/pup/deps.ts>z.util.arrayToEnum

Universal process manager built in Deno
Go to Latest
variable z.util.arrayToEnum
import { z } from "https://deno.land/x/pup@1.0.0-alpha-16/deps.ts";
const { arrayToEnum } = z.util;

type

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