GObject.type_children

function type_children(type: GObject.Type): [return_value: Array(GObject.Type), n_children: Number(guint)] {
    // Gjs wrapper for g_type_children()
}
  

Return a newly allocated and 0-terminated array of type IDs, listing the child types of type.

type

the parent type

return_value

Newly allocated and 0-terminated array of child types, free with GLib.free

n_children

location to store the length of the returned array, or null