Chapter 6. Declaration Files and Library Integrations

So far, we have been writing TypeScript without integrating with any external JavaScript libraries. We have covered the different concepts that the language adds on top of JavaScript and how to use them to our advantage when building large scale applications. We have ignored all of the third-party libraries that are openly available on the Web to improve the JavaScript experience. In this chapter, we will cover declaration files and how they help us integrate with other JavaScript libraries. The topics we are going to cover in this chapter include:

  • Declaration files
  • The NuGet package manager
  • jQuery
  • Knockout
  • External modules

Declaration files

Declaration files are a special type of source file in TypeScript ...

Get TypeScript Essentials 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.