26. implement ReverseTuple<T>

TypeScript
Is this helpful ?

  - accepted / - tried

Implement ReverseTuple<T> to reverse a tuple type.

type A = ReverseTuple<[string, number, boolean]> // [boolean, number, string]
type B = ReverseTuple<[1,2,3]> // [3,2,1]
type C = ReverseTuple<[]> // []

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

Discuss(6)