typescriptpoet
typescriptpoet copied to clipboard
fix: make sure static modifier precedes readonly modifier to avoid IDE complaining about the order
The IDE is marking the generated code with error when generating a readonly static property because readonly is always emitted before static, this is because at some point while emitting the modifier EnumSet.copyOf is used which will reorder the modifiers to match the order in the enum, moving readonly after static should solve the issue.