GLib.VariantType.prototype.is_basic
function is_basic(): Boolean { // Gjs wrapper for g_variant_type_is_basic() }
Determines if the given type is a basic type.
Basic types are booleans, bytes, integers, doubles, strings, object paths and signatures.
Only a basic type may be used as the key of a dictionary entry.
This function returns false for all indefinite types except %G_VARIANT_TYPE_BASIC.
- Returns
-
true if type is a basic type
Since 2.24