Closed Ryu36 closed 2 years ago
Hi! export const enum Test{...} is the incorrect notation.
enum is the enumerable type const is the const
When you do const enum
you change the type enumerable to const with name "enum"
Just settings your eslint and ts
Bug Report
Current behavior
Can't run NestJs in dev mode while using enum in proto definition. Proto-gen-ts creates a wrong TypeScript export for enums. Based on this discussion I've changed the template locally, what fixed it for me.
Input Code
should be
Possible Solution
change the template for enums