Brian Love
Google Developer Expert in Angular, software engineer and skier located in Denver, CO

TypeSearch for @types powered by DefinitelyTyped

Reading time ~1 minute

Microsoft is making things much easier for TypeScript developer who are using external libraries (who isn’t?).

TypeSearch is a website that allows you to quickly search for the type declaration file for the library that you are using. This is going to be much easier than using $ typings search.

All of the DefinitelyTyped libraries are in a new npm @types/ repository. This is automatically updated via a new tool that the team at Microsoft created, dubbed types-publisher.

Because all of the type declaration files from DefinitelyTyped are now available on npm, installing them is as easy as:

$ npm install --save @types/lodash

From there, import the library as you would normally:

import * as _ from "lodash";

Brian Love

Hi, I'm Brian. I am interested in TypeScript, Angular and Node.js. I'm married to my best friend Bonnie, I live in Denver and I ski (a lot).