API Reference / @gtkx/runtime / resolveType
Function: resolveType()
resolveType(
sharedLibrary,typeFnName):bigint
Defined in: packages/runtime/src/type-lookup.ts:12
Resolves the GType produced by a get_type function in a shared library, caching the result per library and function name. Returns zero when the symbol is absent; library-loading and invocation errors propagate to the caller.
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