Skip to content
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

narrow return type of applyToPoint(s) function #67

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

formatlos
Copy link
Contributor

I refined the type definition of the applyToPoint to narrow down the return type to the actually passed Point-type

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 88b79e4 on formatlos:refine-types into 6f900b6 on chrvadala:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 88b79e4 on formatlos:refine-types into 6f900b6 on chrvadala:master.

Copy link

@hijackit hijackit left a comment

Choose a reason for hiding this comment

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

Completely agree with the proposed change. It would simplify a lot the code, avoiding to perform type-checking every time we need to access the coordinates of a point

@chrvadala
Copy link
Owner

Released with version 2.3.0. Thanks for your contribution. I added your name in contributors list.

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.

4 participants