API Reference / @gtkx/runtime / ClosureCallback
Type Alias: ClosureCallback
ClosureCallback = (...
args) =>unknown
Defined in: packages/runtime/dist/closure.d.ts:10
Handler backing a GClosure. It receives the closure's parameters already converted from their GValues, and its result is written back into the closure's return GValue when it has one.
A parameter that is itself a GValue, such as the target a property binding transform fills in, arrives as the caller's own GObject.Value rather than a copy, so writing to it is how the handler produces that parameter's value. It stops being valid once the handler returns.
Parameters
args
...never[]
Returns
unknown