TypeScript Language Quick Reference

Sending
User Review
0 (0 votes)

Data Types in TypeScript

Access Modifier

  • Any keyword is similar to Var keyword in JavaScript

Properties

Arrow Function

  • TypeScript contains type information for standard JavaScript objects, and using Type Definitions we can refer or get the type information for the external libraries.

https://github.com/DefinitelyTyped/DefinitelyTyped/

  • let has block scope and var has function scope.

Now let us replace var with let keyword, we get an error as shown below

For loop

Inheritance

Abstract Class

super

Interface

Namespace

Triple-slash directive to refer other files

Meanwhile check out the new features added as part of 3.5 release.

https://devblogs.microsoft.com/typescript/announcing-typescript-3-5/

Hope it helps..

Leave a Reply