DefinitelyTyped
The repository for high quality TypeScript type definitions.
What DefinitelyTyped Does
DefinitelyTyped is a large, community-maintained collection of type definitions for JavaScript libraries. If you use TypeScript, you've probably encountered situations where you want to use a JavaScript library but TypeScript doesn't know what functions or properties that library provides—leading to error messages and lost autocomplete. This repository solves that problem by creating and sharing "type definitions" that tell TypeScript exactly what a library does.
Think of it like this: JavaScript libraries were written before TypeScript existed, so they don't come with built-in instructions for TypeScript. DefinitelyTyped volunteers write those instructions—a kind of manual describing each library's API. Once written, these definitions get packaged and distributed through NPM under the "@types" namespace, so anyone can install them with a single command, like npm install --save-dev @types/react. After that, TypeScript knows how to work with React, offering helpful hints and catching mistakes before you run your code.
The repository works because it's a community effort. Anyone can contribute by writing definitions for a library they use, testing them to make sure they're accurate, and submitting a pull request. The maintainers review it to ensure quality before merging. If a library author eventually decides to include their own type definitions instead of relying on DefinitelyTyped, the definitions can be removed from the repository to avoid confusion.
The practical benefit is huge: TypeScript users get autocomplete, error checking, and documentation directly in their code editor for thousands of JavaScript libraries. Library authors who don't want to maintain TypeScript support themselves benefit from the community keeping definitions up-to-date. And everyone saves time because someone else has already figured out how to describe a library's API in TypeScript's language.