d3 / d3-geo-projection

Extended geographic projections for d3-geo.
https://observablehq.com/collection/@d3/d3-geo-projection
Other
1.11k stars 201 forks source link

No types definition package of d3-geo-projection #226

Closed nickyonge closed 1 year ago

nickyonge commented 1 year ago

Noticed an error in VS Code for a lack of type definitions specifically for d3-geo-projections, see image:

image

It suggests npm i --save-dev @types/d3-geo-projection, however that results in a 404: npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fd3-geo-projection - Not found

Which is true, the NPM registry specifically for d3-geo-projection type definitions isn't found (link to package works, link to types 404s). However, it DOES exist for others, like d3 (package, types) and d3-geo (package, types).

I have no idea how to generate that package, I also don't know the priority of something like that. Would love to see the docs rounded out :)

Fil commented 1 year ago

The types for D3 and its modules are currently community-maintained at https://github.com/DefinitelyTyped/DefinitelyTyped. It would be great to add types for this module too!