Hello,
I’m upgrading an old application (backend and frontend) from ServiceStack 4.0.54 to the latest version and I saw that the syntax for the enums
changed. Previously the TypescriptGenerator
generated the following code:
export enum ScheduleMode
{
Asap,
Specified,
}
And since 4.0.62 it generates the following syntax:
type ScheduleMode = Asap | Specified;
The new syntax breaks my code that used the enum like so:
if (ScheduleMode[schedule.status] === <any>ScheduleMode.Asap)
Is there a way to get the old syntax back without modifying each of my enumerations ?
Thanks