summaryrefslogtreecommitdiff
path: root/docs/ags
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ags')
-rw-r--r--docs/ags/faq.md14
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() // ✅
+```