-
Notifications
You must be signed in to change notification settings - Fork 41
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
Type Errors in node_modules/koa-helmet/node_modules/helmet/dist/types/index #84
Comments
There are other issues with the definition file when using type HelmetOptions = Required<Parameters<typeof helmet>>[0]; and we can use instead: type HelmetOptions = Required<Parameters<typeof helmet.default>>[0]; or even simpler: type HelmetOptions = helmet.HelmetOptions; and yeah, of course, there is also the case issue mentioned by @zvaehn for the particular case of |
I believe that last issue is what gives the error |
done. #87 |
Sorry about this! Fixed in #87 and released in version 7.0.2 |
It seems that there are some type errors in the "koa-helmet.d.ts" file.
Package Version: 7.0.1
Node Version: v16.14.0
Npm Version: 9.1.1
should be written with a capital "H" ->
KoaHelmetCspDirectiveValue
The text was updated successfully, but these errors were encountered: