Open Jack-Works opened 1 year ago
Thank you for taking the time to open this issue and suggest fixes to the problem. I kindly ask that you consider creating a pull request with your suggested changes, so that we can review and discuss them further.
Thank you again for your contribution!
Thank you for taking the time to open this issue and suggest fixes to the problem. I kindly ask that you consider creating a pull request with your suggested changes, so that we can review and discuss them further.
Hi, my suggestion needs to copy the output file, which requires changing the build step, I don't know if that is good.
if you use patch-package you could make it works by adding to package.json
- "require": "./dist/index.js"
+ "require": "./dist/index.js",
+ "types": "./dist/index.d.ts"
Same issue with moduleResolution bundler typescript 5+. There is no type definition.
Could not find a declaration file for module 'urlcat'. '/hello/node_modules/urlcat/dist/index.mjs' implicitly has an 'any' type.
I've created a PR to fix this issue: #264
Any plans to merge the above?
I'm running to this issue, is there a workaround, or a library that works better with typescript.
@ethansimmons while I owe a lot of thanks to urlcat over the years, I've started working on my own version to replace it called pathcat
https://www.npmjs.com/package/pathcat
I've also left a note of recognition to urlcat in the readme of pathcat 🙂
Reports the following error:
Suggested changes to fix this problem
and copy
./dist/index.d.ts
to./dist/index.d.mts