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
fix(dv): fix data validation plugin type to prevent loading error (#2084)
Wenzhao Hu937fa13628b7
diff --git a/packages/data-validation/src/plugin.ts b/packages/data-validation/src/plugin.tsindex 79da876db8..5bf651022e 100644--- a/packages/data-validation/src/plugin.ts+++ b/packages/data-validation/src/plugin.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import { ICommandService, Plugin } from '@univerjs/core';+import { ICommandService, Plugin, UniverInstanceType } from '@univerjs/core';import type { Dependency } from '@wendellhu/redi';import { Inject, Injector } from '@wendellhu/redi';import { DataValidatorRegistryService } from './services/data-validator-registry.service';@@ -28,6 +28,7 @@ const PLUGIN_NAME = 'data-validation';export class UniverDataValidationPlugin extends Plugin {static override pluginName = PLUGIN_NAME;+ static override type = UniverInstanceType.UNIVER_SHEET;constructor(_config: unknown,