Mastering TypeScript - Second Edition

Build enterprise-ready, industrial-strength web applications using TypeScript and leading JavaScript frameworks
Preview in Mapt

Mastering TypeScript - Second Edition

Nathan Rozentals

4 customer reviews
Build enterprise-ready, industrial-strength web applications using TypeScript and leading JavaScript frameworks

Quick links: > What will you learn?> Table of content> Product reviews

eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$28.00
$49.99
RRP $39.99
RRP $49.99
eBook
Print + eBook

Frequently bought together


Mastering TypeScript - Second Edition Book Cover
Mastering TypeScript - Second Edition
$ 39.99
$ 28.00
TypeScript: Modern JavaScript Development Book Cover
TypeScript: Modern JavaScript Development
$ 69.99
$ 49.00
Buy 2 for $35.00
Save $74.98
Add to Cart

Book Details

ISBN 139781786468710
Paperback552 pages

Book Description

The TypeScript language, compiler, and opensource development toolset brings JavaScript development up to the enterprise level. It allows us to use ES5, ES6, and ES7 JavaScript language features today, including classes, interfaces, generics, modules, and more. Its simple typing syntax enables building large, robust applications using object-oriented techniques and industry standard design principles.

Packed with practical, real-world examples, this book is a guide to bringing the benefits of strongly typed, object-oriented programming and design principles into the JavaScript development space. Starting with core language features, and working through more advanced topics such as generics and asynchronous programming techniques, you will learn how to gain maximum benefit from your JavaScript development with TypeScript. With a strong focus on test-driven development, and coverage of many popular and in-demand JavaScript frameworks, you can fast-track your TypeScript knowledge to a professional level. By the end of this book, you will be able to confidently build TypeScript applications, whether you are targeting Angular, Aurelia, React, Backbone, Node, or any other JavaScript framework.

Table of Contents

Chapter 1: TypeScript - Tools and Framework Options
Introducing TypeScript
TypeScript IDEs
Summary
Chapter 2: Types, Variables, and Function Techniques
Basic types
Functions
Advanced types
Summary
Chapter 3: Interfaces, Classes, and Inheritance
Interfaces
Classes
Inheritance
Using interfaces, classes, and inheritance - the Factory Design Pattern
Summary
Chapter 4: Decorators, Generics, and Asynchronous Features
Decorators
Generics
Asynchronous language features
Summary
Chapter 5: Writing and Using Declaration Files
Global variables
Using JavaScript code blocks in HTML
Writing your own declaration file
Module merging
Declaration syntax reference
Summary
Chapter 6: Third-Party Libraries
Downloading definition files
Using NuGet
Using Typings
Using Bower
Using npm and @types
Using third-party libraries
Backbone
Angular
Inheritance - Angular versus Backbone
ExtJS
Summary
Chapter 7: TypeScript Compatible Frameworks
What is MVC?
Using Backbone
Using Aurelia
Angular 2
Using React
Summary
Chapter 8: Test Driven Development
Test driven development
Unit, integration, and acceptance tests
Unit testing frameworks
Jasmine
Jasmine runners
Using continuous integration
Summary
Chapter 9: Testing Typescript Compatible Frameworks
Testing our sample application
Modifying our sample for testability
Backbone testing
Aurelia testing
Angular 2 testing
React testing
Summary
Chapter 10: Modularization
Module basics
AMD module loading
SystemJs module loading
Using Express with Node
Summary
Chapter 11: Object-Oriented Programming
Object-oriented principles
User interface design
The State pattern
The Mediator pattern
Modular code
Summary
Chapter 12: Dependency Injection
Sending mail
Building a dependency injector
Decorator injection
Summary
Chapter 13: Building Applications
The UI experience
An Aurelia website
An Angular 2 website
An Express React website
Summary
Chapter 14: Let's Get Our Hands Dirty
Board Sales application
Angular 2 base application
Summary

What You Will Learn

  • Gain an insight into core and advanced TypeScript language features including inheritance, generics, asynchronous programming techniques, promises, decorators and more
  • Integrate your existing JavaScript libraries and third-party frameworks by writing and using declaration files
  • Target popular JavaScript frameworks such as jQuery, Backbone, Angular, Aurelia, React, Node, and Express
  • Create extensive test suites for your application with Jasmine, Protactor, and Selenium
  • Organize your application code using modules, AMD loaders, Require and SystemJs
  • Explore advanced object-oriented design principles, including Dependency Injection
  • Understand and compare the various MVC implementations in Aurelia, Angular, React and Backbone
  • Build a complete single-page web application that incorporates CSS animations to enhance your customers' browsing experience

Authors

Table of Contents

Chapter 1: TypeScript - Tools and Framework Options
Introducing TypeScript
TypeScript IDEs
Summary
Chapter 2: Types, Variables, and Function Techniques
Basic types
Functions
Advanced types
Summary
Chapter 3: Interfaces, Classes, and Inheritance
Interfaces
Classes
Inheritance
Using interfaces, classes, and inheritance - the Factory Design Pattern
Summary
Chapter 4: Decorators, Generics, and Asynchronous Features
Decorators
Generics
Asynchronous language features
Summary
Chapter 5: Writing and Using Declaration Files
Global variables
Using JavaScript code blocks in HTML
Writing your own declaration file
Module merging
Declaration syntax reference
Summary
Chapter 6: Third-Party Libraries
Downloading definition files
Using NuGet
Using Typings
Using Bower
Using npm and @types
Using third-party libraries
Backbone
Angular
Inheritance - Angular versus Backbone
ExtJS
Summary
Chapter 7: TypeScript Compatible Frameworks
What is MVC?
Using Backbone
Using Aurelia
Angular 2
Using React
Summary
Chapter 8: Test Driven Development
Test driven development
Unit, integration, and acceptance tests
Unit testing frameworks
Jasmine
Jasmine runners
Using continuous integration
Summary
Chapter 9: Testing Typescript Compatible Frameworks
Testing our sample application
Modifying our sample for testability
Backbone testing
Aurelia testing
Angular 2 testing
React testing
Summary
Chapter 10: Modularization
Module basics
AMD module loading
SystemJs module loading
Using Express with Node
Summary
Chapter 11: Object-Oriented Programming
Object-oriented principles
User interface design
The State pattern
The Mediator pattern
Modular code
Summary
Chapter 12: Dependency Injection
Sending mail
Building a dependency injector
Decorator injection
Summary
Chapter 13: Building Applications
The UI experience
An Aurelia website
An Angular 2 website
An Express React website
Summary
Chapter 14: Let's Get Our Hands Dirty
Board Sales application
Angular 2 base application
Summary

Book Details

ISBN 139781786468710
Paperback552 pages
Read More
From 4 reviews

Read More Reviews

Recommended for You

TypeScript: Modern JavaScript Development Book Cover
TypeScript: Modern JavaScript Development
$ 69.99
$ 49.00
Getting Started with Angular - Second Edition Book Cover
Getting Started with Angular - Second Edition
$ 27.99
$ 19.60
C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition Book Cover
C# 7 and .NET Core: Modern Cross-Platform Development - Second Edition
$ 39.99
$ 28.00
Learning Angular 2 Book Cover
Learning Angular 2
$ 31.99
$ 22.40
Mastering Blockchain Book Cover
Mastering Blockchain
$ 39.99
$ 28.00
Learning Vue.js 2 Book Cover
Learning Vue.js 2
$ 35.99
$ 25.20