You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typescript-inversify generates unusable code, with TypeScript warnings, also services are injected in a way that doesn't work with current version of inversify: inversify/InversifyJS#1004 (comment)
Swagger-codegen version
2.4.9
Command line used for generation
swagger-codegen-cli.jar -l typescript-inversify
Suggest a fix/enhancement
Move DI classses from contructor to properties (api.service.mustache)
Replace type casting from <> to "as" (TS recommend that)
Replace == with ===
Remove redundant local variable basePath.
fix quotemarks
The text was updated successfully, but these errors were encountered:
Moved DI classses from contructor to properties (api.service.mustache)
Removed type casting when not needed (TS showed warning about that)
Replaced == with ===
Removed redundant local variable basePath.
fixed quotemarks
Description
typescript-inversify generates unusable code, with TypeScript warnings, also services are injected in a way that doesn't work with current version of inversify:
inversify/InversifyJS#1004 (comment)
Swagger-codegen version
2.4.9
Command line used for generation
swagger-codegen-cli.jar -l typescript-inversify
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: