TypeScript is a great language and WebStorm is a great IDE for TypeScript. When these two are combined, script development gets faster and simpler.
In this example we refactor a simple TypeScript programm to demonstrate a few of TypeScript and WebStorm feature:
Modules, interfaces, classes.
"Reading your thoughts"-autocompletion and autosuggestion.
Debugging and tracing between IDE and Browser.
Using type definitions for jQuery to "typically" access non-TypeScript library from TypeScript code.
Live transpillation and source code mapping.