TypeScript: Modern JavaScript Development

 TypeScript: Modern JavaScript Development

Table of Contents

TypeScript: Modern JavaScript Development TypeScript: Modern JavaScript Development Credits Preface

What this learning path covers What you need for this learning path Who this learning path is for Reader feedback Customer support Downloading the example code Errata Piracy Questions 1. Module 1 1. Introducing TypeScript

The TypeScript architecture Design goals TypeScript components

TypeScript language features Types Optional static type notation Variables, basic types, and operators Var, let, and const Union types Type guards Type aliases Ambient declarations Arithmetic operators Comparison operators Logical operators Bitwise operators Assignment operators Flow control statements The single-selection structure (if) The double-selection structure (if...else) The inline ternary operator (?) The multiple-selection structure (switch) The expression is tested at the top of the loop (while) The expression is tested at the bottom of the loop (do...while) Iterate on each object's properties (for...in) Counter controlled repetition (for)

Functions Classes Interfaces Namespaces Putting everything together Summary 2. Automating Your Development Workflow A modern development workflow Prerequisites Node.js Atom Git and GitHub Source control tools Package management tools npm Bower tsd Task runners Checking the quality of the TypeScript code Compiling the TypeScript code Optimizing a TypeScript application Managing the Gulp tasks' execution order Test runners Synchronized cross-device testing Continuous Integration tools Scaffolding tools Summary 3. Working with Functions Working with functions in TypeScript Function declarations and function expressions Function types Functions with optional parameters Functions with default parameters Functions with rest parameters Function overloading Specialized overloading signatures Function scope Immediately invoked functions Generics Tag functions and tagged templates Asynchronous programming in TypeScript Callbacks and higher-order functions Arrow functions Callback hell

Promises Generators Asynchronous functions ? async and await Summary 4. Object-Oriented Programming with TypeScript SOLID principles Classes Interfaces Association, aggregation, and composition Association Aggregation Composition Inheritance Mixins Generic classes Generic constraints Multiple types in generic type constraints The new operator in generic types Applying the SOLID principles The Liskov substitution principle The interface segregation principle The dependency inversion principle Namespaces Modules ES6 modules ? runtime and design time External modules ? design time only AMD modules ? runtime only CommonJS modules ? runtime only UMD modules ? runtime only SystemJS modules ? runtime only Circular dependencies Summary 5. Runtime The environment The runtime Frames Stack Queue Heap The event loop The this operator The this operator in the global context The this operator in a function context The call, apply, and bind methods

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download