Open j-f1 opened 2 years ago
The spec defines these without specific method names so we’re technically free to do anything we like (I assume they should conform to Collection or similar), although it does define how JS interprets this declaration.
Collection
https://github.com/swiftwasm/DOMKit/blob/271ef4156da79632e90ea6e41688394cdddea991/Sources/WebIDLToSwift/WebIDL%2BSwiftRepresentation.swift#L229-L243
The spec defines these without specific method names so we’re technically free to do anything we like (I assume they should conform to
Collection
or similar), although it does define how JS interprets this declaration.https://github.com/swiftwasm/DOMKit/blob/271ef4156da79632e90ea6e41688394cdddea991/Sources/WebIDLToSwift/WebIDL%2BSwiftRepresentation.swift#L229-L243