Closed
Description
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
- 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
Metadata
Metadata
Assignees
Labels
No labels