GLib.VariantType.new_dict_entry

function new_dict_entry(key: GLib.VariantType, value: GLib.VariantType): GLib.VariantType {
    // Gjs wrapper for g_variant_type_new_dict_entry()
}
  

Constructs the type corresponding to a dictionary entry with a key of type key and a value of type value.

It is appropriate to call GLib.VariantType.prototype.free on the return value.

key

a basic GLib.VariantType

value

a GLib.VariantType

Returns

a new dictionary entry GLib.VariantType

Since 2.24