Closed Hypnosphi closed 9 months ago
See https://github.com/blakeembrey/change-case/pull/303. Rather it’s node ESM support that is broken. This package works correctly in typescript if you have it configured for node 16 resolution, which is the first resolution version of TypeScript supporting ESM.
I think the type support is broken overall.
This is the best tool for diagnostics. The author of the tool was one of the core developers of the TypeScript compiler itself, so he knows this inside and out.
https://arethetypeswrong.github.io/?p=change-case%405.0.1
You can learn more here: https://github.com/arethetypeswrong/arethetypeswrong.github.io
@moltar No, the link you shared says it's correct:
I am not supporting CommonJS in this module. Those two resolutions are intentionally unsupported.
I appreciate the link though, I will include this in the README so it's clear I intentionally will not support node10
or CommonJS.
Reproduction: https://github.com/Hypnosphi/change-case-ts-issue