diff options
author | Aylur <[email protected]> | 2024-11-18 14:53:06 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-11-18 14:57:19 +0000 |
commit | f5ed9aad2c8ab133b5c188aec70b0f704748015d (patch) | |
tree | 5ed4e1cc210c26e1abec5bb281ddeb587993879e /docs/guide/typescript/faq.md | |
parent | 48692ff557f5f9e95744f939e3fcd1054badb585 (diff) |
fix(gjs): add workaround for array props
Diffstat (limited to 'docs/guide/typescript/faq.md')
-rw-r--r-- | docs/guide/typescript/faq.md | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/guide/typescript/faq.md b/docs/guide/typescript/faq.md index a151099..444a0af 100644 --- a/docs/guide/typescript/faq.md +++ b/docs/guide/typescript/faq.md @@ -197,11 +197,14 @@ These happen when accessing list type properties. Gjs fails to correctly bind import Notifd from "gi://AstalNotifd" const notifd = Notifd.get_default() -notifd.notifications // ❌ // [!code error] - -notifd.get_notifications() // ✅ +notifd.notifications // [!code --] +notifd.get_notifications() // [!code ++] ``` +:::tip +Open up an issue/PR to add a [workaround](https://github.com/Aylur/astal/blob/main/lang/gjs/src/overrides.ts). +::: + ## How to create regular floating windows Use `Gtk.Window` with [Widget.astalify](/guide/typescript/widget#how-to-use-non-builtin-gtk-widgets). |