The Essential TypeScript Tutorial

Basics

Introduction to TypeScript Compilation Data types Changing values Operations Arrays Objects Checking the type of a variable in an object Control of object structure Controlling object value types For loop for-of loop For-in loop Functions Empty function result Type any The any type in arrays Union of types Type aliases String literal type Aliases for concatenating strings

Corteges

Introduction to Tuples Modifying a tuple Reading tuple Optional tuple elements Destructuring a tuple Filling the tuple

Transfers

Introduction to Enumerations Receiving by key Get by value Enumeration as a type Explicit keys Simplified keys String enumerations

Built-in types

Introduction to Built-in Types Date Regulars HTMLElement Type Collections

Data structures

Object structure Optional object properties Interfaces Arrays in objects Interface as an object type with an array Complex objects Objects in objects Arrays of objects

Functions

Number of parameters Optional parameters Default Parameter Values Rest parameters Function type Own type with function Callback functions Arrow functions
enru