This repository was archived by the owner on Jun 4, 2025. It is now read-only.
This repository was archived by the owner on Jun 4, 2025. It is now read-only.
[inversify-restify-utils] IDEs think there is an error on annotations. #355
Open
Description
My IDE really thinks there is an error on @Get('/')
annotation, but there is no actual issue since everything works fine when I run the project.
Expected Behavior
There should be no errors displayed if there are no actual errors.
Current Behavior
After sone research I discovered it may have to do with the annotations function definition is kind of funky and the compiler couldn't quite figure it out.
Possible Solution
Maybe having an overloaded Get annotation could help? It kind of looks like the parameter options: interfaces.RouteOptions
is too complex and since an overload is possible in Typescript, why not?
Steps to Reproduce (for bugs)
- put a
@Get('/')
on an index method of a controller - see red underline
Context
The issue is just kind of annoying to see the red underline when nothing is actually wrong. Causes me to doubt my codes.
Your Environment
- Version used:
inversify: ^4.13.0",
inversify-restify-utils: ^3.4.0 - Environment name and version (e.g. Chrome 39, node.js 5.4):
node: 10.8.0 - Operating System and version (desktop or mobile):
Webclipse IDE on a Mac - Link to your project:
Stack trace
Here is the error it gives me:
Unable to resolve signature of method decorator when called as an expression.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status