Skip to content

API Reference / @gtkx/runtime / StaticBase

Type Alias: StaticBase<C, K>

StaticBase<C, K> = Omit<C, K> & C extends (...args) => infer R ? (...args) => R : never

Defined in: packages/runtime/dist/registry.d.ts:12

Static side of class C with its construct signature preserved but the members named K removed. A generated class lists every static it declares itself, so a static it narrows never has to stay assignable to the one it shadows. The signature is kept abstract so an abstract C survives it: a subclass extends the result, and only the subclass's own declarations decide which statics reach it.

Type Parameters

C

C

K

K extends PropertyKey

Released under the MPL-2.0 License.