From fe472fb84c9c9673c8e10e380a6d0cd178f8c932 Mon Sep 17 00:00:00 2001 From: #FF0000 Date: Fri, 29 Nov 2024 20:56:28 +0800 Subject: [PATCH] refactor(sheets-formula-ui): remove duplicate exports (#4187) --- packages/sheets-formula-ui/src/index.ts | 1 - .../src/services/formula-common.ts | 37 ------------------- 2 files changed, 38 deletions(-) delete mode 100644 packages/sheets-formula-ui/src/services/formula-common.ts diff --git a/packages/sheets-formula-ui/src/index.ts b/packages/sheets-formula-ui/src/index.ts index 0328187c8fc1..44516ca13123 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 61dcbb006f36..000000000000 --- 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[][]; - status: FormulaResultStatus; - formulaId: string; - callbacks: Set<(value: Nullable[][]) => void>; - extra?: Record; -} - -export interface IFormulaInfo { - id: string; - text: string; -}