Is it possible to map a tuple's generic type to a union type?
type TupleToUnion<T> = T[keyof T]; // This will include all values in the tuple
const value: TupleToUnion<[7, "string"]> = 2; // This assignment should not be permitted since 2 is the length of the tuple
Expected union type: 7 | string