Skip to content

Work towards enabling typescript's strict mode#2053

Merged
rowanwins merged 4 commits intomasterfrom
mf/tsc-strict
Jun 17, 2021
Merged

Work towards enabling typescript's strict mode#2053
rowanwins merged 4 commits intomasterfrom
mf/tsc-strict

Conversation

@mfedderly
Copy link
Copy Markdown
Collaborator

This isn't everything for typescript's strict mode, but its most of it.

For the most part this is just using what the jsdoc comments were, or inferring the types and making sure the compiler was happy. For the most part no behavior changed, except for @turf/boolean-crosses where the MultiPoint+Polygon case was just wrong.

Still to do after this PR, most of them require types getting added to DefinitelyTyped. I'll work on that later.

  • clusters-kmeans
  • clusters-dbscan
  • boolean-equal
  • boolean-overlap
  • polygonize

@mfedderly mfedderly requested a review from rowanwins March 13, 2021 00:19
Copy link
Copy Markdown
Collaborator

@JamesLMilner JamesLMilner left a comment

Choose a reason for hiding this comment

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

This looks good to me - should resolve #2017

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.

👍

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.

3 participants