htmlparser2 icon indicating copy to clipboard operation
htmlparser2 copied to clipboard

Make types available via package.json exports

Open wereHamster opened this issue 2 years ago • 1 comments

This is needed for TypeScript 4.7, otherwise it can't find the declaration files.

wereHamster avatar Jun 05 '22 19:06 wereHamster

Could you share in which scenario TypeScript doesn't find type definitions? For me, it picks up the types property without an issue, both for CommonJS and ESM code.

fb55 avatar Jul 08 '22 12:07 fb55

Closing this as I still don't understand when this is needed. Happy to revisit with some more context!

fb55 avatar Aug 05 '22 14:08 fb55