API Reference
@univerjs
@univerjs/core
functions
Mixinclass

@univerjs/core v0.2.14Docs


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

submodules/univer/packages/core/src/common/mixin.ts:27 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.