Skip to content

API Reference / @gtkx/runtime / tryToClosure

Function: tryToClosure()

tryToClosure(value): ExternalObject<Handle> | undefined

Defined in: packages/runtime/dist/closure.d.ts:19

Same as toClosure, but passes a null or undefined value through as no closure at all.

Parameters

value

unknown

Returns

ExternalObject<Handle> | undefined

Released under the MPL-2.0 License.