QuizAdvanced
The infer Keyword
Using infer to capture a type inside a conditional type.
Given `type Elem<T> = T extends (infer U)[] ? U : never`, what is `Elem<string[]>`?
Using infer to capture a type inside a conditional type.
Given `type Elem<T> = T extends (infer U)[] ? U : never`, what is `Elem<string[]>`?