GLib.Error.stack missing
Closed this issue · 1 comments
swsnr commented
GJS sets a stack
property on all its errors, see https://gitlab.gnome.org/GNOME/gjs/-/blob/master/gi/gerror.cpp#L278
However, this property doesn't seem to exist on GLib.Error
anymore, i.e.
if (error instanceof GLib.Error) {
console.info(error.stack);
}
no longer compiles.
It did compile with types generated by the 3.x versions of ts-for-gir, so this looks like a regression.
swsnr commented
I tried to work around this regression by declaring the missing property myself, but with the layered structure of the generated types (type inside namespace as default export inside module, import and then re-exported from am ambient module declaration) it's not really obvious how I could get typescript to merge declarations properly. My naive attempt at module augmentation failed.
Any pointers?