From da08ef940d287744c067cbff27ba17dbf8526c44 Mon Sep 17 00:00:00 2001 From: Aylur Date: Sun, 8 Sep 2024 21:34:33 +0000 Subject: docs: document list type properties --- docs/ags/faq.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs/ags/faq.md') 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() // ✅ +``` -- cgit v1.2.3