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
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.
The text was updated successfully, but these errors were encountered:
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)
@Get('/')
on an index method of a controllerContext
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
inversify: ^4.13.0",
inversify-restify-utils: ^3.4.0
node: 10.8.0
Webclipse IDE on a Mac
Stack trace
Here is the error it gives me:
The text was updated successfully, but these errors were encountered: