TypeScript

From Wiki RB4
Revision as of 23:41, 30 January 2021 by UweHeuer (talk | contribs) (→‎Generics)

Concept

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. TypeScript wird während des Entwicklungsvorgangs mit Hilfe eines Transpilers (eine Sonderform eines Compilers) in JavaScript übersetzt.

Language

Type Annotations

Interfacess

Modifier

Generics

Decorators

A Decorator is a special kind of declaration that can be attached to a class declaration, method, accessor, property, or parameter. Decorators use the form @<Expression>, where <Expression> must evaluate to a function that will be called at runtime with information about the decorated declaration.

Installation

C:\Uwes\Programme\nodejs>npm install -g typescript

Resources