API Reference / @gtkx/runtime / toValueHandle
Function: toValueHandle()
toValueHandle(
jsValue):ExternalObject<Handle>
Defined in: packages/runtime/dist/value.d.ts:48
Marshals a value passed where a GObject.Value is expected into a value handle: an already-built value yields its own handle, and any other JsValue is stored in a new one initialized to the GType inferred from it.
Parameters
jsValue
unknown
Value to store, or an already-built GObject.Value.
Returns
Throws
When no GType can be inferred from the value.