Skip to content

Commit dd26d3d

Browse files
committed
chore: 修复tsc问题
1 parent e7e2da8 commit dd26d3d

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"@tanstack/react-query": "^5.90.2",
2323
"@ant-design/icons": "^4.8.3",
2424
"@antv/dumi-theme-antv": "beta",
25+
"@antv/g2plot": "^2.3.1",
26+
"@antv/g6": "3.3.7",
27+
"@antv/util": "^3.3.1",
2528
"antd": "5.10.2",
29+
"chroma-js": "^2.1.0",
2630
"classnames": "^2.2.6",
2731
"dumi": "~2.4.21",
2832
"gh-pages": "^3.1.0",

site/components/Products/Products.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const Products = () => {
104104
};
105105

106106
const getDots = () => {
107-
let dots: Array<Object> = [];
107+
let dots: Array<React.ReactNode> = [];
108108
const length = products.length;
109109
const cols = 3;
110110
const rows = Math.ceil(length / 2) + 1;

site/components/quoteCard/quoteCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const QuoteCard = (props: Props) => {
3131
id: transformedMessage,
3232
});
3333
};
34-
const borderSlicer: Array<object> = [];
34+
const borderSlicer: Array<React.ReactNode> = [];
3535
if (props.hasBorder) {
3636
borderSlicer.push(
3737
<div key={1} className={classNames(styles.border, styles.lborder)} />,

typing.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
import type { useIntl, FormattedMessage, useLocale } from 'react-intl';
2+
3+
declare module 'dumi' {
4+
export const useIntl: typeof useIntl;
5+
export const FormattedMessage: typeof FormattedMessage;
6+
export const useLocale: typeof useLocale;
7+
}
8+
19
declare module '@antv/dumi-theme-antv' {
210
const exports: any;
311
export = exports;

0 commit comments

Comments
 (0)