Open dnjstrom opened 2 months ago
I faced to the same issue when try to use the examples
@hxtruong6 that is unrelated to the original report so I’ll be hiding the comment. Try searching closed issues instead, it’s because your typescript configuration is incorrect for ESM support.
I think I closed a past issue on the complexity on typing these, but I think it could be good to have available. I would accept a PR if anyone wants to attempt this.
Previous issue: https://github.com/blakeembrey/change-case/issues/294.
@hxtruong6 that is unrelated to the original report so I’ll be hiding the comment. Try searching closed issues instead, it’s because your typescript configuration is incorrect for ESM support.
"module": "NodeNext",
Yes. You are right when I change the tsconfig.json with other module. Thank you.
When using
change-case/keys
I would love for the resulting object to be typed correctly without having to do an explicit cast. Currently all transformations produceunknown
.