Table of Contents - React, etc

 Table of Contents

Introduction Getting Started

Why TypeScript JavaScript

Equality References Null vs. Undefined this Closure Number Future JavaScript Now Classes

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

tsconfig.json Which Files? Declaration Spaces

1.1 1.2 1.2.1 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.4 1.4.1 1.4.1.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.4.10 1.4.11 1.4.12 1.4.13 1.5 1.5.1 1.5.1.1 1.5.1.2 1.5.2

2

Modules File Module Details globals.d.ts

Namespaces Dynamic Import Expressions Node.js QuickStart Browser QuickStart TypeScript's Type System JS Migration Guide @types Ambient Declarations

Declaration Files Variables Interfaces Enums lib.d.ts Functions Callable Type Assertion Freshness Type Guard Literal Types Readonly Generics Type Inference Type Compatibility Never Type Discriminated Unions Index Signatures Moving Types Exception Handling Mixins JSX Options

1.5.3 1.5.3.1 1.5.3.2

1.5.4 1.5.5

1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.8.3.1 1.8.3.2 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.8.10 1.8.11 1.8.12 1.8.13 1.8.14 1.8.15 1.8.16 1.8.17 1.8.18 1.8.19 1.8.20 1.8.21 1.8.22 1.9 1.10

3

noImplicitAny strictNullChecks Testing Jest TIPs String Based Enums Nominal Typing Stateful Functions Bind is Bad Currying Type Instantiation Lazy Object Literal Initialization Classes are Useful Avoid Export Default Limit Property Setters null is bad outFile caution JQuery tips static constructors singleton pattern Function parameters Truthy Build Toggles Barrel Create Arrays Typesafe Event Emitter StyleGuide Common Errors TypeScript Compiler Internals Program AST

TIP: Visit Children TIP: SyntaxKind enum

1.10.1 1.10.2

1.11 1.11.1

1.12 1.12.1 1.12.2 1.12.3 1.12.4 1.12.5 1.12.6 1.12.7 1.12.8 1.12.9 1.12.10 1.12.11 1.12.12 1.12.13 1.12.14 1.12.15 1.12.16 1.12.17 1.12.18 1.12.19 1.12.20 1.12.21

1.13 1.14 1.15 1.15.1 1.15.2 1.15.2.1 1.15.2.2

4

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 Emitter SourceMaps Contributing

1.15.2.3 1.15.3 1.15.4

1.15.4.1 1.15.5

1.15.5.1 1.15.5.2 1.15.5.3 1.15.5.4 1.15.5.5

1.15.6 1.15.6.1 1.15.6.2

1.15.7 1.15.7.1 1.15.7.2

1.15.8

5

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

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

Google Online Preview   Download