Older npm packages written in plain JavaScript don't include types. The community maintains type definitions for them under the @types/ scope (for example, npm i -D @types/express). You can also declare global types in your own global.d.ts file.
ADVERTISEMENT