API Reference / @gtkx/runtime / JsValue
Type Alias: JsValue
JsValue =
string|number|bigint|boolean|string[] |TypedClass|null
Defined in: packages/runtime/dist/value.d.ts:18
JavaScript value a GObject.Value can be built from without being told which GType to hold, for the parameters that take one. A string holds gchararray, a boolean gboolean, an integer within gint range gint and any other number gdouble, a bigint gint64 or guint64 past its range, an array of strings GStrv, a wrapper instance the GType it carries, and null a NULL gpointer, which is what GJS infers for it and which few callees accept. Reaching a GType inference cannot name, such as guchar or an enumeration, takes an explicitly initialized GObject.Value instead.