Closed
Description
TypeScript 2.4 now allows enum members to contain string initializers.
enum Colors {
Red = "RED",
Green = "GREEN",
Blue = "BLUE",
}
Now, those Java enums
public enum { A, B, C }
could be
enum { A="A", B="B", C="C" }
so that on boths sides - backend and frontend - the enums could be used against the web services.
Metadata
Metadata
Assignees
Labels
No labels