swiftwasm / WebAPIKit

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

Support variadic callbacks/closures #33

Open j-f1 opened 2 years ago

j-f1 commented 2 years ago

This is currently only used by one type, TrustedTypePolicyFactory. …looking at this again, I'm not sure what exactly this needs in terms of code changes. I think it has something to do with TrustedTypePolicyOptions.

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