Skip to content

Commit d59da47

Browse files
committed
feat: 添加 Node 类型声明
- 在 tsconfig.json 中的 types 数组中添加 "node" 项 - 这样可以引入 Node.js 的类型声明,提高类型检查的准确性
1 parent 9909778 commit d59da47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/default/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"forceConsistentCasingInFileNames": true,
1818

1919
"lib": ["ES2023", "DOM"],
20-
"types": [],
20+
"types": ["node"],
2121
"plugins": [],
2222
"paths": {
2323
"@/*": ["./src/*"]

0 commit comments

Comments
 (0)