Closed quarhodron closed 1 year ago
Having the same problem with import * as express from 'express';
instead of import type * as express from 'express';
.
Would be very happy for this easy update
Another fix would be to add // @ts-ignore
before the import
Having the same problem with
import * as express from 'express';
instead ofimport type * as express from 'express';
. Would be very happy for this easy update
Would you like to open a PR?
I have not contributed to tsoa up to now so I would need some pointers on where to adapt this behvaior. (I could not find it within some seconds).
Dayum. How could I miss this 🙄 PR is set
After I generated
routes.ts
I get the error:I think it's safe to set
"importsNotUsedAsValues": "error"
in tsoa tsconfig since it wouldn't affect current user configs while it will help those who just like me have it set it toerror
in my own tsconfig.Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
routes.ts
Current Behavior
routes.ts
Possible Solution
changing this line https://github.com/lukeautry/tsoa/blob/7c05b4d3f67c313752d38e0efc6826f64b4f27fe/packages/cli/src/routeGeneration/templates/koa.hbs#L22 and setting
"importsNotUsedAsValues": "error"
intsconfig.json
Steps to Reproduce
set
"importsNotUsedAsValues": "error"
intsconfig.json
Breaking change?
no