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

Added new RectList module as the return type for getClientRects #36

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

TheSpyder
Copy link
Owner

Fixes #10

I also removed a couple of extraneous comments, and added usage of the methods to the tests.

It occurs to me that we should add expected types to the test code, so rather than

let _ = range->getClientRects

If we had

let _: array<Dom.domRect> = range->getClientRects

It would have triggered a compile error. I'll log a new ticket for this.

@TheSpyder TheSpyder merged commit 9c97935 into main Nov 24, 2021
@TheSpyder TheSpyder deleted the fix_getClientRects branch November 24, 2021 11:17
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.

Incorrect return type for getClientRects in Range and Element modules
2 participants