Type Challenges Judge

String to Union

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

For example

type Test = '123'; type Result = StringToUnion<Test>; // expected to be "1" | "2" | "3"