balazsbotond / urlcat

A URL builder library for JavaScript.
https://urlcat.org
MIT License
1.82k stars 57 forks source link

Add "types" to package.json exports to fix module type resolution #264

Open trevorsmith opened 8 months ago

trevorsmith commented 8 months ago

This commit fixes the following Typescript error:

Could not find a declaration file for module 'urlcat'. 'foo/node_modules/urlcat/dist/index.mjs' implicitly has an 'any' type.
There are types at 'foo/urlcat/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'urlcat' library may need to update its package.json or typings.
PranayPant commented 2 months ago

any plans to merge?