API Reference / @gtkx/runtime / fromNative
Function: fromNative()
fromNative(
descriptor,value):unknown
Defined in: runtime/dist/native-value.d.ts:10
Converts a raw value returned from native code into its JavaScript form, wrapping object, struct, boxed, and fundamental handles and recursively converting arrays and hash tables according to the descriptor.
Parameters
descriptor
Describes the native type of the value.
value
unknown
The raw native value to convert.
Returns
unknown