scala-js / scala-js-dom

Statically typed DOM API for Scala.js
Other
315 stars 160 forks source link

Autogenerating using IDL files? #716

Closed peter-jerry-ye closed 2 years ago

peter-jerry-ye commented 2 years ago

Hello,

I see that the DOM is added bit by bit, and it seems that it lacks much interface (the InputEvent is only recently added for example). I myself has helped with some interface (for custom element), but it seems repetitive work, and it requires careful implementation to avoid typos etc.

So might I ask if there's any possibility that it gets generated from the webkit idl files like what is done in ghcjs?

Thank you.

armanbilge commented 2 years ago

Thanks for your contributions to the project! Discussion of code generation strategies is in https://github.com/scala-js/scala-js-dom/discussions/487 and your ideas would be very welcome :)

peter-jerry-ye commented 2 years ago

Oh, sorry that I've missed the discussion functionality of Github. I shall close this issue then.