Enum methods with suffix ToInt not importeds
alexisvisco opened this issue · comments
Alexis Viscogliosi commented
Hi,
While generating a proto with a enum in another package, methods with ToInt arn't imported.
Example https://github.com/alexisvisco/protocol-example/tree/enum-does-not-works
Tate Thurston commented
Hey @alexisvisco thanks for reporting. Could you give me a little more context here? Which file(s) should I be looking at?
Alexis Viscogliosi commented
When you are generating the code you will see an error in your editor, or when building typescript files
Tate Thurston commented
Ah, got it. Thanks @alexisvisco, I see what's going on here. This is a regression I introduced when I migrated to a string representation for enums.