Function: findNativeClass()
findNativeClass(
glibTypeName,walkHierarchy):NativeClass|null
Defined in: packages/ffi/src/registry.ts:49
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 (unless walkHierarchy is false).
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
glibTypeName | string | undefined | The GLib type name to start from |
walkHierarchy | boolean | true | Whether to walk up the parent chain (default: true) |
Returns
NativeClass | null
The closest registered parent class, or null