Mastering TypeScript

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

Mastering TypeScript

This ebook is included in a Mapt subscription
Nathan Rozentals

1 customer reviews
Build enterprise-ready, industrial strength web applications using TypeScript and leading JavaScript frameworks
$0.00
$39.99
$49.99
$29.99p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784399665
Paperback364 pages

Book Description

The TypeScript compiler and language has brought JavaScript development up to the enterprise level, yet still maintains backward compatibility with existing JavaScript browsers and libraries.

Packed with practical code samples, this book brings 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 modules, 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 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 implement a TypeScript application from scratch.

Table of Contents

Chapter 1: TypeScript – Tools and Framework Options
What is TypeScript?
TypeScript IDEs
Summary
Chapter 2: Types, Variables and Function Techniques
Basic types
Functions
Summary
Chapter 3: Interfaces, Classes and Generics
Interfaces
Classes
Inheritance
The Factory Design Pattern
Class modifiers
Generics
Runtime type checking
Summary
Chapter 4: 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 5: Third Party Libraries
Downloading definition files
Using NuGet
Using TypeScript Definition Manager
Using third party libraries
Backbone
Angular
Inheritance – Angular versus Backbone
ExtJs
Summary
Chapter 6: Test Driven Development
Test Driven Development
Unit, integration and acceptance tests
Using continuous integration
Unit testing frameworks
Jasmine
Jasmine runners
Integration tests
Summary
Chapter 7: Modularization
CommonJs
Using AMD
Summary
Chapter 8: Object-oriented Programming with TypeScript
Program to an interface
SOLID principles
Building a Service Locator
Dependency Resolution
A Service Locator
The Domain Events Pattern
Summary
Chapter 9: Let's Get Our Hands Dirty
Marionette
Bootstrap
Board Sales
Page layout
Data structure
Marionette application, regions and layouts
The State Design Pattern
Summary

What You Will Learn

  • Gain an insight into core and advanced TypeScript language features including inheritance and generics
  • Integrate your existing JavaScript code and third-party JavaScript libraries by writing and using declaration files
  • Write TypeScript code to target popular JavaScript frameworks such as jQuery, Backbone, Angular, Node, and Marionette
  • Create extensive testing suites for your application, including unit testing, integration testing, and browser automation with Jasmine and Selenium
  • Organize your application code using modules, and utilize Asynchronous Module Loading with require.js
  • Explore advanced object-oriented techniques including dependency injection and strongly typed domain events
  • Build a complete single-page web application with TypeScript and Marionette, incorporating object-oriented design patterns along the way

Authors

Table of Contents

Chapter 1: TypeScript – Tools and Framework Options
What is TypeScript?
TypeScript IDEs
Summary
Chapter 2: Types, Variables and Function Techniques
Basic types
Functions
Summary
Chapter 3: Interfaces, Classes and Generics
Interfaces
Classes
Inheritance
The Factory Design Pattern
Class modifiers
Generics
Runtime type checking
Summary
Chapter 4: 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 5: Third Party Libraries
Downloading definition files
Using NuGet
Using TypeScript Definition Manager
Using third party libraries
Backbone
Angular
Inheritance – Angular versus Backbone
ExtJs
Summary
Chapter 6: Test Driven Development
Test Driven Development
Unit, integration and acceptance tests
Using continuous integration
Unit testing frameworks
Jasmine
Jasmine runners
Integration tests
Summary
Chapter 7: Modularization
CommonJs
Using AMD
Summary
Chapter 8: Object-oriented Programming with TypeScript
Program to an interface
SOLID principles
Building a Service Locator
Dependency Resolution
A Service Locator
The Domain Events Pattern
Summary
Chapter 9: Let's Get Our Hands Dirty
Marionette
Bootstrap
Board Sales
Page layout
Data structure
Marionette application, regions and layouts
The State Design Pattern
Summary

Book Details

ISBN 139781784399665
Paperback364 pages
Read More
From 1 reviews

Read More Reviews