Skip to content

API Reference / @gtkx/runtime / fromNative

Function: fromNative() ​

fromNative(descriptor, value): unknown

Defined in: packages/runtime/src/native-value.ts:207

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 ​

Descriptor

Describes the native type of the value.

value ​

unknown

The raw native value to convert.

Returns ​

unknown