实现一个将接收到的 String 参数转换为一个字母 Union 的类型

例如:

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