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

Helmet has no call signature #247

Closed
AustinGil opened this issue Aug 12, 2020 · 3 comments
Closed

Helmet has no call signature #247

AustinGil opened this issue Aug 12, 2020 · 3 comments

Comments

@AustinGil
Copy link

I have some type checking setup on my project and I'm getting a weird linting error.

const helmet: typeof import(".../node_modules/helmet/dist/index")

With the error being:

This expression is not callable.
  Type 'typeof import(".../node_modules/helmet/dist/index")' has no call signatures.

So far I'm just getting around this by casting the type to any. That works fine, but thought I might point it out here.

@EvanHahn
Copy link
Member

This looks like a TypeScript error that's being discussed in #235, so I'm going to close this issue.

You should be able to fix this in the next version which should be released soon. You can try it out today with npm install [email protected].

Hope this helps!

@AustinGil
Copy link
Author

Oh yeah looks like it. Sorry, I did a search and nothing came up. Thanks for taking a look

@EvanHahn
Copy link
Member

No worries at all. Feel free to open a new issue if anything else comes up, and I'd appreciate your feedback on the release candidate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants