Skip to content

API Reference / @gtkx/runtime / installMixins

Function: installMixins()

installMixins(target, mixins): void

Defined in: runtime/dist/mixin.d.ts:18

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.

Returns

void

Released under the MPL-2.0 License.