Closed pendruct closed 5 months ago
Hi, is there any way to do const enums?
For example,
enum Test { Foo, Bar }
becomes
const enum Test { Foo, Bar }
or..
enum Test { Foo = 5, Bar = 6 }
const enum Test { Foo = 5, Bar = 6 }
Currently it seems like the enums generated do not have the const prefix in the generated Typescript code. I only use const enums for my project
^ this should work
Wow, thanks so much! @AnthonyMichaelTDM Did you do all that just for me? That's so kind!
🫡
Hi, is there any way to do const enums?
For example,
becomes
or..
becomes
Currently it seems like the enums generated do not have the const prefix in the generated Typescript code. I only use const enums for my project