Skip to content

Commit

Permalink
fix(formula): type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dushusir committed May 13, 2024
1 parent 65e7544 commit 1b94846
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/engine-formula/src/basics/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

// @ts-ignore
import numfmt from 'numfmt';

/**
Expand Down
1 change: 1 addition & 0 deletions packages/engine-formula/src/engine/utils/numfmt-kit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/

import type { ICellData, Nullable, Styles } from '@univerjs/core';
// @ts-ignore
import numfmt from 'numfmt';
import { operatorToken } from '../../basics/token';

Expand Down
1 change: 0 additions & 1 deletion packages/engine-formula/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/// <reference types="vite/client" />
declare module 'numfmt';
2 changes: 1 addition & 1 deletion packages/sheets/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"outDir": "lib/types"
},
"references": [{ "path": "./tsconfig.node.json" }],
"include": ["src", "../engine-formula/src/engine/utils/__tests__/numfmt-kit.spec.ts"]
"include": ["src"]
}

0 comments on commit 1b94846

Please sign in to comment.