fix(dv): fix data validation plugin type to prevent loading error (#2084)

This commit is contained in:
Wenzhao Hu
2024-04-26 13:39:14 +08:00
committed by GitHub
parent b67a9f8357
commit 937fa13628
+2 -1
View File
@@ -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,