Type Definition
Noun · Development
Definitions
A file (typically `.d.ts` in TypeScript) that describes the types, interfaces, and function signatures of a module without containing executable code. The DefinitelyTyped repository hosts community-maintained type definitions published as `@types/*` packages on npm, providing type safety for JavaScript libraries that don't ship their own types.
In plain English: A companion file that tells your editor and compiler what types a JavaScript library uses, so you get error checking and autocomplete.
Example: "Run `npm install @types/express` to get the type definitions — then Express routes will have full autocomplete and type checking."