Closed jakke-korpelainen closed 1 month ago
Hello there jakke-korpelainen š
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.š
Duplicate of https://github.com/lukeautry/tsoa/issues/1418 but it is stale
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
Current Behavior
Error:
'TsoaRoute' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.ts(1484)
Possible Solution
Could consider respecting the
verbatimModuleSyntax
compilation flag and adding the runtime import according to it.Steps to Reproduce
verbatimModuleSyntax
in tsconfig.json.routes.ts
will cause a compilation error:'TsoaRoute' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
Context (Environment)
Version of the library: tsoa@6.2.0 Version of NodeJS: v20.11.0