So I found a suggestion that in typescript you can have string-based enums using this syntax:
export enum TextAlign {
Left = <any>"start",
Right = <any>"end",
Center = <any>"middle"
}
Are there any drawbacks of using this approach?
There is a suggestion to use String Literal Type instead, although I find the enum more comfortable, as you can iterate through values.