is there a way to convert the union type of strings to an enum? e.g
enum
type SomeType = \'A\' | \'B\' | \'C\'
is there way to genera