Skip to main content

Function: findNativeClass()

findNativeClass(glibTypeName): NativeClass | null

Defined in: packages/ffi/src/registry.ts:48

Finds a native class by walking the type hierarchy.

If the exact type is not registered, walks up the parent chain until a registered type is found.

Parameters

ParameterTypeDescription
glibTypeNamestringThe GLib type name to start from

Returns

NativeClass | null

The closest registered parent class, or null