GLib.VariantType.new_maybe

function new_maybe(element: GLib.VariantType): GLib.VariantType {
    // Gjs wrapper for g_variant_type_new_maybe()
}
  

Constructs the type corresponding to a maybe instance containing type @type or Nothing.

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

element

a GLib.VariantType

Returns

a new maybe GLib.VariantType

Since 2.24