diff options
author | Aylur <[email protected]> | 2024-09-08 21:34:33 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-08 23:48:01 +0200 |
commit | da08ef940d287744c067cbff27ba17dbf8526c44 (patch) | |
tree | 2c58a9b9985e06c7d23c7223ab2eab375442a184 /docs | |
parent | f9ab5e4562a57acd5df2b593ce36bcdcf813f7e3 (diff) |
docs: document list type properties
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ags/faq.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/ags/faq.md b/docs/ags/faq.md index eef0bcb..56c13e4 100644 --- a/docs/ags/faq.md +++ b/docs/ags/faq.md @@ -255,3 +255,17 @@ App.start({ main }) ``` ::: + +## Error: Can't convert non-null pointer to JS value + +These happen when accessing list type properties. Gjs fails to correctly bind +`List` and other array like types of Vala as a property. + +```ts +import Notifd from "gi://AstalNotifd" +const notifd = Notifd.get_default() + +notifd.notifications // ❌ // [!code error] + +notifd.get_notifications() // ✅ +``` |