安装:npm install @types/node 或者 npm install --save @types/node
卸载:npm uninstall @types/node
注意:
1、要本地安装,这样装是不行的:npm install -g @types/node
2、安装完后要重启vscode才能生效,如果是卸载的话不用重启立马生效。
安装后效果:
打完括号后提示会自动出现:
![](https://img.haomeiwen.com/i7311521/64f535b86b36c20e.png)
且,鼠标悬停在方法名上会这样显示:
![](https://img.haomeiwen.com/i7311521/f1780a1573028e98.png)
欢迎纠错,如果感觉有用,请点个赞,谢谢啦!
安装:npm install @types/node 或者 npm install --save @types/node
卸载:npm uninstall @types/node
注意:
1、要本地安装,这样装是不行的:npm install -g @types/node
2、安装完后要重启vscode才能生效,如果是卸载的话不用重启立马生效。
安装后效果:
打完括号后提示会自动出现:
且,鼠标悬停在方法名上会这样显示:
欢迎纠错,如果感觉有用,请点个赞,谢谢啦!
本文标题:This package contains type defin
本文链接:https://www.haomeiwen.com/subject/qaooyhtx.html
网友评论