Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ


Choose your language

InfoQ Homepage News TypeScript Roundup: New Features, Tools, and a Roadmap

TypeScript Roundup: New Features, Tools, and a Roadmap

Lire ce contenu en français


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.

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

Community comments

  • Nice update

    by Brian Rinaldi,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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

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