It would be great to have some sort of type-safe DOM API that better matches DOM as exposed to JS (for example document.querySelector('foo')?.appendChild(document.createElement('bar'))) without having to go through the ceremony of .object! and .function!. It looks like there’s some work in this direction in webidl2swift but I’m not sure how much more is needed.
It would be great to have some sort of type-safe DOM API that better matches DOM as exposed to JS (for example
document.querySelector('foo')?.appendChild(document.createElement('bar'))) without having to go through the ceremony of.object!and.function!. It looks like there’s some work in this direction inwebidl2swiftbut I’m not sure how much more is needed.