Unbox hard #utils #promise #function #tuple #array

by Julian Coy @eXamadeus

Take the Challenge

How can we build a type that "unboxes" arrays, functions, promises, and tuples? Example: ```typescript Unbox // string Unbox<()=>number> // number Unbox // boolean Unbox> // boolean ``` Bonus: Can we make it recursive? ```typescript Unbox<() => () => () => () => number> // number ``` Double Bonus: Can we control the recursion? ```typescript Unbox<() => () => () => () => number, 3> // () => number ```
Back Share your Solutions Check out Solutions