String to Union

Medium
conditional types
template literal
infer
recursive

Description:

Implement the String to Union type. Type take string argument. The output should be a union of input letters

For example

StringToUnion<"123"> // expected to be "1" | "2" | "3"

Code

Loading...