Skip to content

Commit c4fcce6

Browse files
committed
chore: fix ts compile error
1 parent 3fd1744 commit c4fcce6

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"devDependencies": {
5151
"@types/classnames": "^2.2.9",
5252
"@types/jest": "^27.4.0",
53-
"@types/react": "^17.0.0",
54-
"@types/react-dom": "^17.0.0",
53+
"@types/react": "^18.0.0",
54+
"@types/react-dom": "^18.0.0",
5555
"@umijs/fabric": "^2.0.3",
5656
"coveralls": "^3.0.6",
5757
"cross-env": "^7.0.0",

tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"compilerOptions": {
3+
"target": "esnext",
4+
"moduleResolution": "node",
5+
"baseUrl": "./",
6+
"jsx": "preserve",
7+
"declaration": true,
8+
"skipLibCheck": true,
9+
"esModuleInterop": true,
10+
"paths": {
11+
"@/*": ["src/*"],
12+
"@@/*": ["src/.umi/*"],
13+
"rc-pagination": ["src/index.ts"]
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)