-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some methods missing #24
Comments
Hmm looks like it might be Iterator keys() => js_util.callMethod(this, 'keys', []); @js.JS()
@js.staticInterop
class Iterator {
external factory Iterator();
}
extension PropsIterator on Iterator {
IteratorNext next() => js_util.callMethod(this, 'next', []);
}
@js.anonymous
@js.JS()
class IteratorNext {
external factory IteratorNext();
}
extension PropsIteratorNext on IteratorNext {
bool get done => js_util.getProperty(this, 'done');
dynamic get value => js_util.getProperty(this, 'value');
} What do you think? |
Hmm, you already have some iterator logic which extends JsArray. Not sure :D |
There are different specifications even thought it is all JS. I've created an issue regarding this Maybe we should hardcode the missing methods? |
I think hardcoding would be an OK approach, maybe just some custom extensions which are exported. Given the amount of work involved and how little the apis change I think it's probably the route to fastest solution? If you could do one in a branch to demonstrate how to best do it, I'm happy to add them in places too. |
In the case of About the remaining methods and properties of |
Thanks - I'm not entirely sure how this works, but it looks as though it could be the builder which isn't adding the methods to the IDL files? I see what you mean here, however there's no name and it's also missing the various methods. {
"type": "iterable",
"idlType": [
{
"type": null,
"extAttrs": [],
"generic": "",
"nullable": false,
"union": false,
"idlType": "ByteString"
},
{
"type": null,
"extAttrs": [],
"generic": "",
"nullable": false,
"union": false,
"idlType": "ByteString"
}
],
"arguments": [],
"extAttrs": [],
"readonly": false,
"async": false
} |
FYI @jodinathan no clue if you're interested, but I'd be willing to support development of this package. My company is using it for a project - feel free to reach out on Twitter/email if interested! |
Hi @Ehesp I've emailed you |
@Ehesp I am closing this issue as it should be fixed in 0.1.0. If you find more stuff missing please create a new issue |
It seems as though some classes, for example
Headers
is missing some methods:The text was updated successfully, but these errors were encountered: