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

Constructor
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..
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.

