API Reference / @gtkx/runtime / getClassType
Function: getClassType()
getClassType(
cls):bigint
Defined in: packages/runtime/dist/registry.d.ts:71
Returns the GType a class was registered under, or the invalid type when it carries none. The tag is read off the class's own prototype, so a subclass that never went through registerClass reports the invalid type rather than inheriting the one its parent was registered with.
Parameters
cls
AnyClass | undefined
Returns
bigint