Module

x/zod/index.ts>util.arrayToEnum

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
variable util.arrayToEnum
import { util } from "https://dotland.deno.dev/x/zod@v3.21.3/index.ts";
const { arrayToEnum } = util;

type

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