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

5分間以内で解いてみて

ディスカス(8)