I have a function that takes in a type like:
type Input = [Array<string>, Array<number>, Array<boolean>];
It returns output in the form:
Array<[string, number, boolean]>
Effectively flattening the type out of the array.
Is there a way to achieve this with generics? My function signature at the moment looks like:
function foo<T extends Array<Array<unknown>>>(arrays: T) {
}
Assumedly, I need to apply some sort of transform onto T, what transform do I need?