Skip to content

line-intersect additional type cleanup#2273

Merged
rowanwins merged 2 commits intoline-intersect-updatefrom
twelch/line-intersect-update
Mar 20, 2022
Merged

line-intersect additional type cleanup#2273
rowanwins merged 2 commits intoline-intersect-updatefrom
twelch/line-intersect-update

Conversation

@twelch
Copy link
Copy Markdown
Collaborator

@twelch twelch commented Mar 20, 2022

@rowanwins Please consider this bit of type cleanup for #2033, removing use of any. Plus one more bit of cleanup while I was there. Seemed easier than trying to comment on it.

I tried to add a default function signature for findIntersections to the empty sweepline-intersections module declaration file you created, but could not get VSCode to pick up the types. Failing that, I at least improved from use of any to a more explicit cast for result of findIntersections()

@twelch twelch requested a review from rowanwins March 20, 2022 03:08
Copy link
Copy Markdown
Member

@rowanwins rowanwins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @twelch 👍

@rowanwins rowanwins merged commit 472f471 into line-intersect-update Mar 20, 2022
mfedderly added a commit that referenced this pull request Apr 2, 2022
* Rewrite line-intersect module

* fix jsdoc

* update use of sweepline-intersections to not detect self-intersections

* inline sweepline-intersections as es5

* Add some ts config

* remove unused import

* add allowJs

* adjust tsconfig

* address some eslint issues

* Some minor typing updates to get the build to pass

* Fix imports after merge

* rejig ts config

* update yarn lock

* add extra option to line-intersect re self-intersections

* run prettier

* update the turf-line-split outputs

* fix prettier

* line-intersect additional type cleanup (#2273)

* some cleanup

* clarify Intersection type

* line-intersect-typescript-cleanup (#2274)

* bump sweepline-intersections to 1.4.0

Co-authored-by: Matt Fedderly <mfedderly@palantir.com>
Co-authored-by: Tim Welch <tim.j.welch@gmail.com>
Co-authored-by: mfedderly <mdfedderly@mdfedderly.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants