ts
1type UnionFromTuple<Tuple extends readonly (string | number | boolean)[]> =2 Tuple[number];34const animals = ['🐶', '🙀', '🐮'] as const;56type Animal = UnionFromTuple<typeof animals>;78// type Animal = '🐶' | '🙀' | '🐮';