Skip to content

API Reference / @gtkx/runtime / resolveType

Variable: resolveType

const resolveType: (sharedLibrary, getTypeFnName) => bigint

Defined in: runtime/dist/type.d.ts:77

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.

getTypeFnName

string

Name of the *_get_type function to call.

Returns

bigint

Released under the MPL-2.0 License.