helmetjs / helmet

Help secure Express apps with various HTTP headers
https://helmetjs.github.io/
MIT License
10.24k stars 369 forks source link

Typescript required versions #448

Closed danielfx90 closed 8 months ago

danielfx90 commented 10 months ago

Hi!

I faced the Cannot find module 'helmet' or its corresponding type declarations. error. I feel that there are some Typescript version requirements that should be documented somewhere.

Hope it helps! Cheers!

EvanHahn commented 10 months ago

Thanks for this! I'll see about improving this or, at worst, adding some official documentation.

EvanHahn commented 8 months ago

I couldn't reproduce this. I installed typescript@4.6.4 (the version prior to v4.7.2) and helmet@6.2.0 and things compiled just fine.

Given that (1) I couldn't reproduce this (2) you can upgrade to the latest typescript@4 to fix your problem (3) Helmet v6 is no longer supported, I'm going to close this issue.

Let me know if that's wrong and I'll reopen.