Type Alias StringToUnion<S>

StringToUnion: S extends `${infer F}${infer R}` ? F | StringToUnion<R> : never

Type Parameters

  • S extends string