18. implement TupleToUnion<T>

TypeScript

  - 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.