Open shaKY-iota opened 2 years ago
// your answers type StringToUnion<T extends string> = T extends `${infer First}${infer Rest}` ? First | StringToUnion<Rest> : never