无法重新声明块范围变量
在使用vscode编写ts是,编写完成之后,使用tes 文件名.ts之后,就会看到变量名下面出现了红色的波浪线,提示的内容是无法重新声明块范围变量。
解决方法:只需要使用tsc --init生成tsconfig.json文件就可以解决了。
转载至:https://blog.csdn.net/ksjdbdh/article/details/125480318
Reproduced please indicate the author and the source, and error a link to this page.
text link:
//v2ci.com/58.html