Skip to content

Commit 072072c

Browse files
committed
build(vscode-ide-companion): 添加 node 类型支持
- 在 tsconfig.webview.json 中新增 "node" 类型声明 - 解决类型识别和代码提示问题 - 改进对 Node.js 环境相关库的支持
1 parent 739d210 commit 072072c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vscode-ide-companion/tsconfig.webview.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"useDefineForClassFields": true,
55
"lib": ["ES2022", "DOM", "DOM.Iterable"],
66
"module": "ESNext",
7-
"types": ["vite/client"],
7+
"types": ["vite/client", "node"],
88
"moduleResolution": "bundler",
99
"jsx": "react-jsx",
1010
"strict": true,

0 commit comments

Comments
 (0)