Junior — Senior
Determining the type of a multi-dimensional array
livecode
Task condition
It is necessary to define the type of an array whose elements can be nested to any depth. The goal is to describe such a type so that TypeScript correctly infers types for both simple values and nested arrays of any depth. This should be achieved using recursive types and conditional type operators without modifying any existing code blocks (none are provided in the task).