The Flatten type takes an array type and returns the type of the elements in the array. It uses conditional types and type inference to achieve this. If A is an array of some type I, it returns I. If A is not an array, it returns never.
The Flatten type takes an array type and returns the type of the elements in the array. It uses conditional types and type inference to achieve this. If A is an array of some type I, it returns I. If A is not an array, it returns never.