Convert TypeScript enum to a string.
Note: I prefer just to use the object syntax, as a TS enum, since you can assign the value for the right-hand and don't get the often unexpected behavior of both forward/reverse indexes in the enum itself.
Also, aside: you can configure .Net MVC and other frameworks to deliver enums as text strings, to align behaviors better. I'm also a proponent of using the string values in databases as it provides better clarity imo. If you're using PostgreSQL it supports an enum type declaration for your table columns directly as a constraining usage in practice.