This package in scope @types
is where we can find several useful type definitions, such as the Node type definitions that allow us to use, for example, the require
to import modules.
The package @types
Node contains type definitions for many libraries, such as Express, Sequelize, Jquery and many others. Basically what it does and:
- check if the package you are using already has types
incorporated and, if you prefer, prefer these;
- check if the type settings have already been sent with
compiler.
This link: Typescript Typings - The Complete Guide To Type Definitions: @types, Compiler Opt-In Types: When To Use Each and Why? has material for explaining Types and I think it’s worth a look. I hope I’ve helped.