This repository has been archived by the owner on Nov 1, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 73
Dom.nodeFilter type is wrong #96
Comments
is it correct to type it as |
@bobzhang Maybe but it has defined contract please check example from mdn
It also has this constants that
I have this as a workaround in my project:
|
This should be fixed with BuckleScript's records-as-objects representation. if not we can reopen. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://bucklescript.github.io/bucklescript/api/Dom.html#TYPEnodeFilter
It is typed as record.
bs-webapi-incubator/tests/dom/nodes/document_test.re
Line 35 in df1585b
So it compiles to
[() => 0]
instead of{ acceptNode: () => 0 }
;BS issue rescript-lang/rescript-compiler#2764
The text was updated successfully, but these errors were encountered: