API Reference / @gtkx/runtime / WrapperClass
Type Alias: WrapperClass<C, I>
WrapperClass<
C,I> =Omit<C,"prototype"> &object&Cextends (...args) =>unknown? (...args) =>I:Cextends (...args) =>unknown? (...args) =>I:never
Defined in: packages/runtime/dist/registry.d.ts:19
Static side of class C with its construct signature retargeted to produce I. A generated wrapper class is declared locally and exported as a registered constant; its instance type is exported as an interface extending the local class so declaration merging and module augmentation keep working, and this type makes constructing the constant produce that interface.
Type Declaration
prototype
prototype:
I
Prototype retyped to the exported instance interface, so instanceof narrows to it.
Type Parameters
C
C
I
I