18. implement TupleToUnion<T>

TypeScript

  -通过 / -执行

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

争取5分钟以内搞定这个问题