@univerjscorefunctionsMixinclass

@univerjs/core v0.5.0-beta.1Docs


Function: mixinClass()

function mixinClass<T>(targetClassPrototype, mixin): void

Mixin some methods to targetObject as prototype, the static methods will not be mixed in

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
targetClassPrototypeTThe target class to mixin
mixinIMixinProperty<T>The mixin object which contains the methods to mixin.

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/common/mixin.ts:27