Open
Description
These are a Cursed Object in the WebIDL spec (https://webidl.spec.whatwg.org/#idl-callback-interfaces), and they’re essentially shorthand for a union between a function/closure type and an object with a property matching that function type. They are unfortunately important because EventListener
is a callback interface (although NodeFilter
and XPathNSResolver
are also a callback interface, they are less commonly used). This PR depends on #32, probably.