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分钟以内搞定这个问题

讨论(8)