TypeScript is superset of JavaScript created by Microsoft. TypeScript – according to its website – “lets you write JavaScript the way you really want to. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript”.

Some features of TypeScript include:

  • Support standard JavaScript
  • Static typing
  • Encapsulation using the classes and the modules
  • Constructors, properties and functions supports
  • You can define interface
  • Lambda support Lambda support
  • Syntax checking
  • Type annotations
  • Static or dynamic loading of module contents

TypeScript can be summarized in the following points:

  • TypeScript is syntactic sugar for JavaScript
  • TypeScript syntax are the superset of ECMASCRIPT 5 syntax.
  • TypeScript compiler converts or compiles the TypeScript file into a JavaScript file locally.
  • TypeScript does not reorder the variable declaration
  • TypeScript syntax includes various proposed features of ECMASCRIPT 6
  • TypeScript complies with module codes generation which can by loaded statically or dynamically.
  • TypeScript works with type inference

This post will help you to get started with TypeScript, setting up the environment for TypeScript development in the Visual Studio and Sublime Text. At the end of the post we will create a simple TypeScript program in Visual Studio.

Read the full article on the Infragistics blog

Advertisements

One thought on “Getting started with TypeScript

Leave a Reply

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s