geotiffjs / geotiff.js

geotiff.js is a small library to parse TIFF files for visualization or analysis. It is written in pure JavaScript, and is usable in both the browser and node.js applications.
https://geotiffjs.github.io/
MIT License
878 stars 183 forks source link

Map .d.ts files in package.json #324

Closed ahocevar closed 2 years ago

ahocevar commented 2 years ago

This pull request improves the developer experience for TypeScript users and users of smart JS editors that provide type hints. This is achieved by properly mapping types to exports in package.json.

constantinius commented 2 years ago

@ahocevar great thing!

When introducting new APIs I guess we also have to add these to the mapping?

ahocevar commented 2 years ago

Yes @constantinius, when you add new exports, you have to add the respective type definition paths to the typesVersions section.