GLib.VariantType.string_is_valid

function string_is_valid(type_string: String): Boolean {
    // Gjs wrapper for g_variant_type_string_is_valid()
}
  

Checks if type_string is a valid GVariant type string. This call is equivalent to calling GLib.variant_type_string_scan and confirming that the following character is a nul terminator.

type_string

a pointer to any string

Returns

true if type_string is exactly one valid type string

Since 2.24