Skip to content

API Reference / @gtkx/runtime / installMixins

Function: installMixins() ​

installMixins(target, mixins, inheritedOverrideNames?): void

Defined in: packages/runtime/src/mixin.ts:86

Copies each mixin's prototype members onto the target class prototype, skipping any member already defined anywhere in the target's class chain.

Parameters ​

target ​

AnyClass

The class whose prototype receives the mixin members.

mixins ​

Mixin[]

The mixins to apply, in order.

inheritedOverrideNames? ​

Iterable<string> = []

Returns ​

void