Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: revert mixin on unit (#3131)
#FF00002544c8f3d3c8
diff --git a/packages/core/src/common/unit.ts b/packages/core/src/common/unit.tsindex 4949259b4f..c817d6baa9 100644--- a/packages/core/src/common/unit.ts+++ b/packages/core/src/common/unit.ts@@ -29,23 +29,3 @@ export abstract class UnitModel<_D = object, T extends UnitType = UnitType> exteabstract name$: Observable<string>;abstract setName(name: string): void;}--interface IMixinProperty<T> {- // eslint-disable-next-line ts/no-explicit-any- [fnName: string]: (this: T, ...args: any[]) => any;-}--/**- * Mixin some methods to targetObject as prototype, the static methods will not be mixed in- * @param {T} targetClass The target class to mixin- * @param {IMixinProperty<T>} mixin The mixin object which contains the methods to mixin.- */-export function mixinClass<T>(targetClass: T, mixin: IMixinProperty<T>): void {- for (const key in mixin) {- // eslint-disable-next-line no-prototype-builtins- if (mixin.hasOwnProperty(key)) {- // @ts-ignore- targetClass.prototype[key] = mixin[key];- }- }-}