TypeScript Language Quick Reference


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..

Advertisements

Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

Please share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.