Skip to content

API Reference / @gtkx/runtime / resolveType

Variable: resolveType ​

const resolveType: (sharedLibrary, typeFnName) => bigint

Defined in: packages/runtime/dist/type.d.ts:91

Resolves the GType produced by a get_type function in a shared library, caching the result per library and function name.

Parameters ​

sharedLibrary ​

string

Path or name of the shared library exporting the function.

typeFnName ​

string

Name of the *_get_type function to call.

Returns ​

bigint