questions/32427-hard-unbox/README.md
How can we build a type that "unboxes" arrays, functions, promises, and tuples?
Example:
Unbox<string> // string
Unbox<()=>number> // number
Unbox<boolean[]> // boolean
Unbox<Promise<boolean>> // boolean
Bonus: Can we make it recursive?
Unbox<() => () => () => () => number> // number
Double Bonus: Can we control the recursion?
Unbox<() => () => () => () => number, 3> // () => number
<a href="../../README.md" target="_blank"></a> <a href="https://tsch.js.org/32427/answer" target="_blank"></a> <a href="https://tsch.js.org/32427/solutions" target="_blank"></a> <!--info-footer-end-->