helmetjs / helmet

Help secure Express apps with various HTTP headers

Home Page:https://helmetjs.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript required versions

danielfx90 opened this issue · comments

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.

  • v6.0.0 <= Helmet < v6.2.0: Supports TS v4 in general (I did not test it with TS below v4).
  • v6.2.0 <= Helmet: Requires TS v4.7.2 and above.

Hope it helps! Cheers!

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.