GObject.Object.prototype.set_property

function set_property(property_name: String, value: Any): void {
    // Gjs wrapper for g_object_set_property()
}
  

Sets a property on an object.

property_name

the name of the property to set

value

the value