DefinitelyTyped
The community repository of type declarations for JavaScript packages, published to npm as @types/package-name.
In more detail
If a package does not ship its own types, installing @types/that-package adds them. @types/node provides the types for Node.js built-ins such as process and node:path.
Related terms
- declaration file — A file ending in .d.ts that contains only type information describing JavaScript that exists elsewhere, with no runnable code.
- npm — The package manager that comes with Node.js, plus the public registry where JavaScript packages are published.
Taught in
- Declaration Files, Ambient Namespaces And Module Augmentation — Production TypeScript