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
refactor(core): alias UniverType as UniverInstanceType (#6812)
白熱d945009a2ac6
diff --git a/packages/core/src/common/unit.ts b/packages/core/src/common/unit.tsindex 3122741c56..33f6f5d54d 100644--- a/packages/core/src/common/unit.ts+++ b/packages/core/src/common/unit.ts@@ -15,16 +15,10 @@*/import type { Observable } from 'rxjs';+import { UniverType as UniverInstanceType } from '@univerjs/protocol';import { Disposable } from '../shared/lifecycle';-export enum UniverInstanceType {- UNIVER_UNKNOWN = 0,- UNIVER_DOC = 1, // Univer Docs- UNIVER_SHEET = 2, // Univer Sheets- UNIVER_SLIDE = 3, // Univer Slides- UNIVER_PROJECT = 4,- UNRECOGNIZED = -1,-}+export { UniverInstanceType };/*** The base class for all units.