z.util.arrayToEnumconst arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => [k in U[number]]: k;