swiftwasm / WebAPIKit

Access the DOM and other Web APIs from Swift! (Very much a WIP)
MIT License
61 stars 8 forks source link

Support taking functions/closures as parameters #32

Closed j-f1 closed 1 year ago

j-f1 commented 2 years ago

These symbols are currently stripped from the emitted code. I think this will need generated code similar to the ClosureAttribute* types.

https://github.com/swiftwasm/DOMKit/blob/070f99efca195eaa38f46beeb4dc46ca1d6ce04b/Sources/WebIDLToSwift/IDLBuilder.swift#L49-L79

j-f1 commented 1 year ago

Fixed in 124bd13023c9a7139b8cf7acf9287fa4dae05fb2!