-
Notifications
You must be signed in to change notification settings - Fork 37
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
Bindings for IntersectionObserver #27
Bindings for IntersectionObserver #27
Conversation
feb79b2
to
40da4d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine, I'm not familiar with the intersection observer API so it's hard to comment on the correctness of the bindings directly.
should we continue doing the functions for properties? Personally I kinda like the potential for sharing the Dom phantom types for inter-library compatibility
yes. I speculated about this in #2, and discussed it on the reasonml discord, for the moment consensus is that the webapi should maintain compatibility with other code that uses Dom
types.
Using makeX named parameter constructor functions, vs the new @obj on records for next rescript release
I haven't heard about this, where was it announced? I just found the compiler changes, that looks cool.
Unfortunately I don't think it's appropriate for this library to use new compiler features that quickly - not everyone upgrades immediately. If we haven't released 1.0 by ~6 months after rescript 10, then I'll consider it as a breaking change.
If I remember correctly I was testing this via the test file in an html doc in a browser. Might be something to address elsewhere as well?
Yeah I think the only downside here is
Yeah it was a little buried but it was in here https://forum.rescript-lang.org/t/rfc-more-general-type-checking-for-structural-typings/1485/51 |
Better testing would indeed be awesome. Even if it's just cypress or something using headless chrome, at least it will be some sort of browser verification. It's not on the roadmap at this stage.
bs-webapi definitely did use the BuckleScript (now ReScript)
thanks for the link! |
Published 0.1.2 |
I've just remembered a good reason to keep the files separate - tree shaking. Tree shaking can remove top-level functions but not nested module definitions (because there's no good system to mark them as pure). Having said that, with intersection observer (and resize observer) it's not really possible to use the parent module without the sub module - so it shouldn't make much difference. |
ported over from reasonml-community/bs-webapi-incubator#197
Have a few questions on this one:
Dom
phantom types for inter-library compatibilitymakeX
named parameter constructor functions, vs the new@obj
on records for next rescript release.