Skip to content

Commit d3ec58e

Browse files
louhaojie99lhj01302438
andauthored
chore(examples): 修复 import @antv/x6 识别出现类型错误 (#4805)
Co-authored-by: lhj01302438 <lhj01302438@antgroup.com>
1 parent 8ae5562 commit d3ec58e

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

examples/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
},
1414
"dependencies": {
1515
"react": "^18.0.0",
16-
"react-dom": "^18.0.0"
16+
"react-dom": "^18.0.0",
17+
"@antv/x6": "workspace:*"
1718
},
1819
"devDependencies": {
1920
"@ant-design/icons": "^6.0.1",
2021
"@antv/hierarchy": "^0.6.14",
21-
"@antv/x6": "workspace:*",
2222
"@antv/x6-react-components": "^2.x",
2323
"@antv/x6-react-shape": "^2.x",
2424
"@eslint/js": "^9.33.0",

examples/tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"strict": true,
1515
"noUnusedLocals": true,
1616
"noUnusedParameters": true,
17-
"noFallthroughCasesInSwitch": true
17+
"noFallthroughCasesInSwitch": true,
18+
"baseUrl": "."
1819
},
19-
"include": ["src"]
20+
"include": ["src/**/*"]
2021
}

0 commit comments

Comments
 (0)