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/src/registry.ts:40
Static side of C whose constructor produces I. Generated wrappers export a registered constant and a separate instance interface for declaration merging and module augmentation; this type makes constructing the constant return 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