Learning TypeScript 2.x - Second Edition

Exploit the features of TypeScript to easily create your very own web applications
Preview in Mapt

Learning TypeScript 2.x - Second Edition

Remo H. Jansen
New Release!

1 customer reviews
Exploit the features of TypeScript to easily create your very own web applications
Mapt Subscription
FREE
$29.99/m after trial
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
$0.00
$28.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Learning TypeScript 2.x - Second Edition Book Cover
Learning TypeScript 2.x - Second Edition
$ 39.99
$ 28.00
Learning Node.js Development Book Cover
Learning Node.js Development
$ 31.99
$ 22.40
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781788391474
Paperback536 pages

Book Description

TypeScript is an open source and cross-platform statically typed superset of JavaScript that compiles to plain JavaScript and runs in any browser or host.

This book is a step-by-step guide that will take you through the use and benefits of TypeScript with the help of practical examples. You will start off by understanding the basics as well as the new features of TypeScript 2.x. Then, you will learn how to work with functions and asynchronous programming APIs. You will continue by learning how to resolve runtime issues and how to implement TypeScript applications using the Object-oriented programming (OOP) and functional programming (FP) paradigms. Later, you will automate your development workflow with the help of tools such as Webpack. Towards the end of this book, you will delve into some real-world scenarios by implementing some full-stack TypeScript applications with Node.js, React and Angular as well as how to optimize and test them. Finally, you will be introduced to the internal APIs of the TypeScript compiler, and you will learn how to create custom code analysis tools.

Table of Contents

Chapter 1: Introducing TypeScript
The TypeScript architecture
TypeScript language features
Putting everything together
Summary
Chapter 2: Working with Types
The TypeScript type system's characteristics
Core features of the TypeScript type system
Literal types
Advanced features of the TypeScript type system
Summary
Chapter 3: Working with Functions
Working with functions in TypeScript
Asynchronous programming in TypeScript
Summary
Chapter 4: Object-Oriented Programming with TypeScript
Classes
Abstract classes
Interfaces
SOLID principles, encapsulation, and polymorphism
Summary
Chapter 5: Working with Dependencies
Third-party dependencies
Internal modules (module and namespace)
External modules
Managing dependencies in OOP
Summary
Chapter 6: Understanding the Runtime
The execution environment
Understanding the event loop
The this operator
Prototypes
Closures
Summary
Chapter 7: Functional Programming with TypeScript
FP concepts
FP techniques
Category theory
Real-world FP
Summary
Chapter 8: Working with Decorators
Prerequisites
Annotations versus decorators
Summary
Chapter 9: Automating Your Development Workflow
A modern development workflow
Prerequisites
Source control tools
Package management tools
The TypeScript compiler
Linting tools
Working with npm scripts
Gulp
Webpack
Webpack development server
Unit testing and test coverage
Visual Studio Code
ts-node
Continuous integration (CI) tools
Scaffolding tools
Why does the command line win?
Summary
Chapter 10: Node.js Development with TypeScript
Understanding Node.js
The Node.js ecosystem
Setting up Node.js
Node.js development
Summary
Chapter 11: Frontend Development with React and TypeScript
Working with React
Working with MobX
Development tools
Summary
Chapter 12: Frontend Development with Angular and TypeScript
Working with Angular
About the sample application
Serving an Angular application with Node.js
Bootstrapping an Angular application
Working with NgModules
Working with Angular components
Summary
Chapter 13: Application Performance
Prerequisites
Performance and resources
Common performance metrics
Performance analysis
Performance automation
Exception handling
Summary
Chapter 14: Application Testing
Testing terminology
Prerequisites
Testing methodologies
Tests plans and test types
The example application
Unit tests and integration tests with Mocha
End-to-end tests with Nightwatch.js
Summary
Chapter 15: Working with the TypeScript Compiler and the Language Services
The TypeScript compiler's internal architecture
Understanding the abstract syntax tree (AST)
Implementing a yUML compiler
VS Code extensions
Summary

What You Will Learn

  • Understand TypeScript in depth, including its runtime and advanced type system features
  • Master the core principles of the object-oriented programming and functional programming paradigms with TypeScript
  • Save time using automation tools such as Gulp, Webpack, ts-node, and npm scripts
  • Develop robust, modular, scalable, maintainable, and adaptable applications with testing frameworks such as Mocha, Chai, and Sinon.JS
  • Put your TypeScript skills to practice by developing full-stack web applications with Node.js, React and Angular
  • Use the APIs of the TypeScript compiler to build custom code analysis tool

Authors

Table of Contents

Chapter 1: Introducing TypeScript
The TypeScript architecture
TypeScript language features
Putting everything together
Summary
Chapter 2: Working with Types
The TypeScript type system's characteristics
Core features of the TypeScript type system
Literal types
Advanced features of the TypeScript type system
Summary
Chapter 3: Working with Functions
Working with functions in TypeScript
Asynchronous programming in TypeScript
Summary
Chapter 4: Object-Oriented Programming with TypeScript
Classes
Abstract classes
Interfaces
SOLID principles, encapsulation, and polymorphism
Summary
Chapter 5: Working with Dependencies
Third-party dependencies
Internal modules (module and namespace)
External modules
Managing dependencies in OOP
Summary
Chapter 6: Understanding the Runtime
The execution environment
Understanding the event loop
The this operator
Prototypes
Closures
Summary
Chapter 7: Functional Programming with TypeScript
FP concepts
FP techniques
Category theory
Real-world FP
Summary
Chapter 8: Working with Decorators
Prerequisites
Annotations versus decorators
Summary
Chapter 9: Automating Your Development Workflow
A modern development workflow
Prerequisites
Source control tools
Package management tools
The TypeScript compiler
Linting tools
Working with npm scripts
Gulp
Webpack
Webpack development server
Unit testing and test coverage
Visual Studio Code
ts-node
Continuous integration (CI) tools
Scaffolding tools
Why does the command line win?
Summary
Chapter 10: Node.js Development with TypeScript
Understanding Node.js
The Node.js ecosystem
Setting up Node.js
Node.js development
Summary
Chapter 11: Frontend Development with React and TypeScript
Working with React
Working with MobX
Development tools
Summary
Chapter 12: Frontend Development with Angular and TypeScript
Working with Angular
About the sample application
Serving an Angular application with Node.js
Bootstrapping an Angular application
Working with NgModules
Working with Angular components
Summary
Chapter 13: Application Performance
Prerequisites
Performance and resources
Common performance metrics
Performance analysis
Performance automation
Exception handling
Summary
Chapter 14: Application Testing
Testing terminology
Prerequisites
Testing methodologies
Tests plans and test types
The example application
Unit tests and integration tests with Mocha
End-to-end tests with Nightwatch.js
Summary
Chapter 15: Working with the TypeScript Compiler and the Language Services
The TypeScript compiler's internal architecture
Understanding the abstract syntax tree (AST)
Implementing a yUML compiler
VS Code extensions
Summary

Book Details

ISBN 139781788391474
Paperback536 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Learning Node.js Development Book Cover
Learning Node.js Development
$ 31.99
$ 22.40
C# 7 and .NET Core 2.0 Blueprints Book Cover
C# 7 and .NET Core 2.0 Blueprints
$ 39.99
$ 28.00
C# 7 and .NET Core 2.0 High Performance Book Cover
C# 7 and .NET Core 2.0 High Performance
$ 35.99
$ 25.20
Hands-On GUI Programming with C++ and Qt5 Book Cover
Hands-On GUI Programming with C++ and Qt5
$ 35.99
$ 25.20
Building Microservices with .NET Core 2.0 - Second Edition Book Cover
Building Microservices with .NET Core 2.0 - Second Edition
$ 35.99
$ 25.20
Mastering TypeScript - Second Edition [Video] Book Cover
Mastering TypeScript - Second Edition [Video]
$ 124.99
$ 106.25