Skip to Content
Mastering TypeScript - Fourth Edition
book

Mastering TypeScript - Fourth Edition

by Nathan Rozentals
April 2021
Beginner content levelBeginner
538 pages
12h 18m
English
Packt Publishing
Content preview from Mastering TypeScript - Fourth Edition

7

Integration with JavaScript

One of the most appealing facets of JavaScript development is the wealth of external JavaScript libraries that have already been published, are tried and tested, and are available for re-use. Libraries such as jQuery, Underscore, Backbone, and Moment have been around for years, are well documented, and can be used to enhance the JavaScript development experience. As we know, TypeScript generates JavaScript, so we can easily use these libraries and frameworks in TypeScript.

JavaScript is also valid TypeScript, and we can even rename a standard JavaScript file to a TypeScript file just by changing the .js file extension to a .ts file extension, if we were converting existing JavaScript files to TypeScript. Remember ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

TypeScript for Beginners

TypeScript for Beginners

Bharath Thippireddy
Learning TypeScript

Learning TypeScript

Josh Goldberg

Publisher Resources

ISBN: 9781800564732Supplemental Content