18. implement TupleToUnion<T>

  - accepted / - tried

Given a tuple type, implement TupleToUnion<T> to get a union type from it.

type Foo = [string, number, boolean]

type Bar = TupleToUnion<Foo> // string | number | boolean

Let's try to solve this problem within 5 minutes.

(1)
(26)