Typescript: Webstorm types vs npm @types? Use which one?
What is the difference between:
Preferences>Languages & Frameworks>Javascript>Libraries>Download Typescript Community Stubs
and
npm install @types/node --save-dev
Which one is preferred in a Webstorm project?
(I tried using both now I get multiple implementations)
Please sign in to leave a comment.
The latter is preferable - works better for modules resolving and can be used by Typescript language service.
using both at the same time is not recommended - types will be resolved to several definitions at the same time, causing problems with navigation/completion/etc.