Results 107 comments of Evan Hahn

Everything looks okay at a glance, but ESM + TypeScript + Jest often causes problems. What's the full error you're seeing? What happens if you add `// @ts-ignore` before importing...

It seems like ts-jest isn't pulling in the right type declarations for some reason. I don't know why. `// @ts-ignore` simply tells TypeScript to ignore the next line. This is...

Awhile ago, I chatted with a TypeScript team member who endorsed the way Helmet exports its types. But I concede that it's complicated and it's possible I made a mistake...

To work with Node, I expect that `"moduleResolution"` needs to be set to `"nodenext"`, `"node10"`, or one of its aliases. [According to the docs](https://www.typescriptlang.org/tsconfig#moduleResolution), you don't always get this by...

Thanks! I'll take a look at this when I get a chance (probably not for a few weeks).

Would you mind splitting this into smaller pull requests for easier review? No worries if not, but I'll be able to review faster if you do so.

Sorry for running into this. What version of Helmet are you using? And if you're using TypeScript, what's in your tsconfig.json?