Ide.Object.ensure_child_typed

### Method

# Ide Objectensure_child_typed

#### Declaration

    IdeObject*
    ide_object_ensure_child_typed (
      IdeObject* self,
      GType type
    )

#### Description

Like `ide_object_get_child_typed()` except that it creates an object of `type` if it is missing.

Available since: | 3.32

#### Parameters

`type` | `GType`
| The `GType` of the child.

#### Return value

Returns: | `IdeObject`
| An `IdeObject` or `NULL`.
| The caller of the method takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.