Skip to content

Documentation / base / applyMixins

Function: applyMixins()

applyMixins<M, T>(target, ...mixins): T & ExtractMixinType<M>

Defined in: libs/base/src/utils.ts:748

Applies mixins to a constructor function.

Type Parameters

M

M extends (target) => any[]

T

T

Parameters

target

T

The constructor function of the class that will receive the mixins.

mixins

...M

mixins

Returns

T & ExtractMixinType<M>

Mixed class

Released under the MIT License.