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

Error: Unbound value Js_browser.Event.kind_to_js #178

Open
bikallem opened this issue Dec 2, 2024 · 2 comments
Open

Error: Unbound value Js_browser.Event.kind_to_js #178

bikallem opened this issue Dec 2, 2024 · 2 comments

Comments

@bikallem
Copy link
Contributor

bikallem commented Dec 2, 2024

Hi,

I am getting a build error in the title when I try to bind the following code,

module XMLHttpRequestUpload : sig
  type t
  val t_of_js: Ojs.t -> t
  val t_to_js: t -> Ojs.t

  val add_event_listener: t -> Event.kind -> (Event.t -> unit) -> bool -> unit [@@js.call]
end

Am I missing something here?

@bikallem
Copy link
Contributor Author

bikallem commented Dec 2, 2024

@alainfrisch
Copy link
Collaborator

The Event module does not currently expose the _to_js / _of_js for its kind type, even though they are generated (and used) in the implementation. I think the fix would be to add those functions to interface.

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

No branches or pull requests

2 participants