-
Notifications
You must be signed in to change notification settings - Fork 18
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
Missing promisified overloads #171
Comments
I'm looking at what happened here, should have a fix in the next few weeks. |
I'm upgrading a GNOME extension to ts-for-gir 4.0.0 types, and noticed missing promisified overloads as well:
Is this the same issue, or should I rather open a new one? |
@swsnr I think this will be the same problem, so it will be correct here. @ewlsh In v3 I just checked if there are methods with the same prefix and ending with |
@ewlsh could you explain a bit how this works with you new parser atm? Maybe a good start to get into your code base. |
Sorry for the delay here, adding some context and potential fixes here: #177 |
Does not build currently, as the 4.x types still suffer from regressions, notably - Missing promisified overloads: gjsify/ts-for-gir#171 - Missing GLib.Error.stack: gjsify/ts-for-gir#196
Does not build currently, as the 4.x types still suffer from regressions, notably - Missing promisified overloads: gjsify/ts-for-gir#171 - Missing GLib.Error.stack: gjsify/ts-for-gir#196
A "reasonable" workaround is, the casting of these functions, it is ugly, but doable 🤷🏼♂️ see an example here and here my personal type helper for this: |
@swsnr This is definitely an issue that I would like to fix as soon as I find the time. Apart from that, the 4.x types seem to work fine |
Does not build currently, as the 4.x types still suffer from regressions, notably - Missing promisified overloads: gjsify/ts-for-gir#171 - Missing GLib.Error.stack: gjsify/ts-for-gir#196
@ewlsh Some promisified methods are missing, for example for
Gio.read_async
+Gio.read_finish
orGio.File.load_contents_async
+Gio.File.load_contents_finish
The text was updated successfully, but these errors were encountered: