Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[inversify-restify-utils] IDEs think there is an error on annotations. #355

Open
kferrone opened this issue Aug 21, 2018 · 0 comments
Open

Comments

@kferrone
Copy link

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)

  1. put a @Get('/') on an index method of a controller
  2. 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.
@notaphplover notaphplover transferred this issue from inversify/InversifyJS Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant