Table of Contents

 TypeScript Deep Dive

Table of Contents

Introduction Gettting Started

Why TypeScript Future JavaScript Now

Classes Classes Emit Classes Super Classes Extensibility

Arrow Functions Rest Parameters let const Destructuring for...of Template Strings Spread Operator Enums Generators Async Await Project Compilation Context

tsconfig.json Declaration Spaces Modules

File Module Details globals.d.ts Namespaces TypeScript's Type System JS Migration Guide Ambient Declarations

0 1 1.1 2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.10 2.11 2.12 3 3.1 3.1.1 3.2 3.3 3.3.1 3.3.2 3.4 4 4.1 4.2

2

TypeScript Deep Dive

Declaration Files Variables Interfaces `lib.d.ts` Functions Type Assertion Freshness NodeJS JSX TIPs Quick Object Return String Based Enums Nominal Typing Stateful Functions TypeScript Compiler Internals Program AST TIP: Visit Children TIP: SyntaxKind enum Trivia Scanner Parser Parser Functions Binder Binder Functions Binder Declarations Binder Container Binder SymbolTable Binder Error Reporting Checker Checker Diagnostics Checker Error Reporting Emitter Emitter Functions

4.2.1 4.2.2 4.2.3

4.3 4.4 4.5 4.6

5 6 7 7.1 7.2 7.3 7.4 8 8.1 8.2 8.2.1 8.2.2 8.2.3 8.3 8.4 8.4.1 8.5 8.5.1 8.5.2 8.5.3 8.5.4 8.5.5 8.6 8.6.1 8.6.2 8.7 8.7.1

3

TypeScript Deep Dive

Emitter SourceMaps Contributing Glossary

8.7.2 8.8

4

TypeScript Deep Dive

TypeScript Deep Dive

I've been looking at the issues that turn up commonly when people start using TypeScript. This is based on the lessons from StackOverflow / DefinitelyTyped and general engagement with the TypeScript community. You can follow for updates. If you are here to read the book get started. You can also do one of the following:

EPUB for iPad,iPhone,Mac PDF for Windows and others MOBI for Kindle Share URL:

Introduction

5

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

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

Google Online Preview   Download