String to Union

Easy
array
infer
conditional types
recursion

Description:

Implement the type version of Array.reverse

For example:

type a = Reverse<['a', 'b']> // ['b', 'a'] type b = Reverse<['a', 'b', 'c']> // ['c', 'b', 'a']

Code

Loading...