TypeScript Roundup: New Features, Tools, and a Roadmap

by Jonathan Allen on Nov 05, 2013 |

Our last report was on version 0.9, which added generics. Since then Microsoft has added three minor features as part of version 0.9.1. The first is the “typeof” operator can now be used in a variable declarations type position. For example, if you have a module named M, then “var m: typeof M = M;” would create a strongly typed variable named “m” whose value is that module. Jonathan Turner says that this is “especially handy for working with the shapes of modules, the static side of a class, and enums, which don’t otherwise have a name you can refer to.”

Next up is ‘this’. The rules for using this in field initializers have been relaxed. In practical terms this means that callback functions that refer to an instance of the class can be created and stored in member of that instance.

Version 0.9.1 also includes a “no implicit any” option. Like Visual Basic’s Option Strict, this will raise a compile time error if there are any variables whose type cannot be inferred.

The next two versions of TypeScript, tagged 0.9.5 and 1.0RC, will focus on:

  • User-report issues
  • Reliability
  • CPU- and memory-usage
  • Conformance with the 1.0 spec

After the final release of TypeScript 1, Microsoft plans to start working on async/await support. Presumably this would be comparable to what we see in C# and Visual Basic. This should prove useful for both client-side and Node.js programming. Also in planning is support for mixins and protected access.

As the syntax for ECMAScript 6 solidifies, TypeScript 1.x will also be adopting more features from it.

Meanwhile, ReSharper has added TypeScript support in version 8.1. This includes typing assistance, live templates, code completion, and some basic refactoring operations. Much of this is shared with JavaScript and ReSharper can even use TypeScript annotations to “enhance code completion in JavaScript files”.

Rate this Article


Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Nice update by Brian Rinaldi

If you're looking for a more detailed overview of 0.9 and 0.9.1 features and how to use them, check out

Hurry up! by Lorenzo Jimenez

Google is getting faster to their first release with Dart and interconnecting it will other projects.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

2 Discuss
General Feedback
Marketing and all content copyright © 2006-2016 C4Media Inc. hosted at Contegix, the best ISP we've ever worked with.
Privacy policy

We notice you're using an ad blocker

We understand why you use ad blockers. However to keep InfoQ free we need your support. InfoQ will not provide your data to third parties without individual opt-in consent. We only work with advertisers relevant to our readers. Please consider whitelisting us.