Can I use both type of modules in a single node project
and difference between these type of npm
modules :
npm install @types/express
vs npm install express
Can I use both type of modules in a single node project
and difference between these type of npm
modules :
npm install @types/express
vs npm install express
Modules starting with @types
are typescript type definitions only, you can't run code only with types, you need implementation too. In your case npm install express
installs the implementation. If you install only implementation, you won't have types. In some cases both ship inside single package.
You can compare them by yourself: