jburzynski / TypeGen

Single-class-per-file C# to TypeScript generator
MIT License
195 stars 55 forks source link

Bug 204 defaultvalue a number whenenumstringinitializers true #206

Open martiendejong opened 1 month ago

martiendejong commented 1 month ago

This solves https://github.com/jburzynski/TypeGen/issues/204 Please look at the Generator.GetEnumMemberReference function before merging because I suspect that my approach is suboptimal as it uses the index field of the Enum to get to the string value instead of using the mechanisms defined in TypeGen.