Skip to content

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.

refactor(sheets-formula-ui): remove duplicate exports (#4187)

#FF0000fe472fb84c9c
diff --git a/packages/sheets-formula-ui/src/index.ts b/packages/sheets-formula-ui/src/index.ts
index 0328187c8f..44516ca131 100644
--- a/packages/sheets-formula-ui/src/index.ts
+++ b/packages/sheets-formula-ui/src/index.ts
@@ -29,7 +29,6 @@ export { RefSelectionsRenderService } from './services/render-services/ref-selec
// #region - all commands
-export type { IFormulaInfo, IOtherFormulaResult } from './services/formula-common';
export { FORMULA_PROMPT_ACTIVATED } from './services/prompt.service';
export { UniverSheetsFormulaUIPlugin } from './sheets-formula-ui.plugin';
diff --git a/packages/sheets-formula-ui/src/services/formula-common.ts b/packages/sheets-formula-ui/src/services/formula-common.ts
deleted file mode 100644
index 61dcbb006f..0000000000
--- a/packages/sheets-formula-ui/src/services/formula-common.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * Copyright 2023-present DreamNum Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import type { ICellData, Nullable } from '@univerjs/core';
-
-export enum FormulaResultStatus {
- NOT_REGISTER = 1,
- SUCCESS,
- WAIT,
- ERROR,
-}
-
-export interface IOtherFormulaResult {
- result?: Nullable<ICellData>[][];
- status: FormulaResultStatus;
- formulaId: string;
- callbacks: Set<(value: Nullable<ICellData>[][]) => void>;
- extra?: Record<string, any>;
-}
-
-export interface IFormulaInfo {
- id: string;
- text: string;
-}