GObject.type_parent

function type_parent(type: GObject.Type): GObject.Type {
    // Gjs wrapper for g_type_parent()
}
  

Return the direct parent type of the passed in type. If the passed in type has no parent, i.e. is a fundamental type, 0 is returned.

type

the derived type

Returns

the parent type