Type definitions

The TypeScript support for existing JavaScript libraries is achieved thanks to the declaration of the public interface, or API, of the library. The declaration of the public interface of a third-party module is known as type definition.

When we install an npm module, we can face a few different scenarios.

Get Learning TypeScript 2.x - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.