Book Image

TypeScript Essentials

By : Christopher Nance
Book Image

TypeScript Essentials

By: Christopher Nance

Overview of this book

Table of Contents (15 chapters)

Third-party library integration


One of the key components in large scale web development is the use of open source libraries that handle certain tasks for us. jQuery is one of the more popular libraries and is used for easy interaction with the Document Object Model (DOM). These libraries provide a wide variety of functionalities but all of these interactions can be given some level of typing. In this section, we are going to look at the following libraries:

  • jQuery

  • Knockout

  • RequireJS

Before we start developing these libraries, we need to get them referenced in our project. Each of these libraries can be downloaded directly from their web pages or through the use of NuGet. NuGet is a package manager for Visual Studio and can be installed as an extension.

Installing NuGet packages

The first thing we need to do is install the NuGet Package Manager. To do this, first select Tools from the menu and choose Extensions and Updates. This will bring you to a screen showing all of the extensions you currently...