Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When TypeScript uses a `moduleResolution` of `Node16` or `NodeNext` and an `exports` map is encountered, `main`, `types` and `typings` entries declared on the `package.json` root are ignored so `types` needs to be present in the exports map. Fixes this sort of error: ``` src/index.ts:19:23 - error TS7016: Could not find a declaration file for module 'private-ip'. '/Users/alex/Documents/Workspaces/ipfs/helia-http-gateway/node_modules/private-ip/index.js' implicitly has an 'any' type. There are types at '/path/to/node_modules/private-ip/lib/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'private-ip' library may need to update its package.json or typings. 19 import isPrivate from 'private-ip' ```
- Loading branch information