-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typescript(vx-geo): re-write packages in TypeScript #537
Conversation
76282ec
to
e19f7c1
Compare
/** | ||
* All props pass through to `<Projection projection="equalEarth" {...props} />` | ||
*/ | ||
// @ts-ignore ts-migrate(2304) FIXME: Cannot find name '$TSFixMe'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we remove this ts-ignore
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops missed these, thanks!
/** | ||
* All props pass through to `<Projection projection="naturalEarth" {...props} />` | ||
*/ | ||
// @ts-ignore ts-migrate(2304) FIXME: Cannot find name '$TSFixMe'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we remove this ts-ignore
?
8711ed0
to
f51e7bd
Compare
🚀 Enhancements
This PR builds off #488 which introduces Typescript build config, and re-writes the
@vx/geo
package in TypeScript with detailed prop type annotations across all components. It leverages@types/d3-geo
and@types/geojson
where possible.Closes #536.
Tests
.d.ts
files/geo-mercator
and/geo-custom
demos🐛 Bug Fix
projection.precision
was never set inGraticule
or (any)Projection
component.💥 Breaking Changes
React.Fragments
, which requires bumping thepeerDep
forreact
to^16.3.0-0
@hshoff @schillerk @milesj @kristw @Rudeg