According to this post, as of ServiceStack 5.2 it is possible to generate enums as strings for TypeScript.
I was wondering if it is a bug/logical reason that the generation does not work for enumerations that do not start with a 0 value or enumerations that are not sequential.
For example:
public enum SomeEnum { Type1 = 1, Type2 = 2 }
public enum SomeEnum { Type1 = 0, Type2 = 4 }
Will not generate stringized enums but the next snippet will:
public enum SomeEnum { Type1 = 0, Type2 = 1 }
What is the advised way to support enumerations in typescript when dealing with enums that don’t contain the value 0 or are nog sequential?