Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/domain_functions/src/test-prelude.ts>z.util.arrayToEnum

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
variable z.util.arrayToEnum
import { z } from "https://deno.land/x/domain_functions@v2.6.0/src/test-prelude.ts";
const { arrayToEnum } = z.util;

type

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