sindresorhus / ow

Function argument validation for humans
https://sindresorhus.com/ow/
MIT License
3.8k stars 105 forks source link

backwards compatibility with typescript module resolution #243

Closed guysegal closed 2 years ago

guysegal commented 2 years ago

I'm using latest typescript version, and my project uses other libraries (i.e fastify/swagger plugin). If I'm using moduleResolution: node16 (or above) the ow module resolution works, but I'm getting types error from these other libraries.

By adding types to package.json I'm able to resolve modules both from other packages and this package as well

sindresorhus commented 2 years ago

You are trying to fix your problem in the wrong place. The existing package.json here is correct and I don't intend to add anything extra.