Skip to content

break(turf-projection) change toWgs84 and toMercator G = to G extends - #3157

Merged
mfedderly merged 1 commit into
masterfrom
mf/projection-generics
Aug 18, 2026
Merged

break(turf-projection) change toWgs84 and toMercator G = to G extends#3157
mfedderly merged 1 commit into
masterfrom
mf/projection-generics

Conversation

@mfedderly

Copy link
Copy Markdown
Collaborator

G = AllGeoJSON | Position allows calls using something that isn't a GeoJSON or Position, where extends correctly restricts the input to the expected types. This also lets us clean up some override casting within the toMercator and toWgs84 implementations.

@mfedderly mfedderly added this to the v8 milestone Aug 18, 2026
@mfedderly
mfedderly merged commit 98b9a4e into master Aug 18, 2026
3 checks passed
@mfedderly
mfedderly deleted the mf/projection-generics branch August 18, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant