BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

TypeScript Roundup: New Features, Tools, and a Roadmap

| by Jonathan Allen Follow 8 Followers on Nov 05, 2013. Estimated reading time: 1 minute |

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

Adoption Stage
Style

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 flippinawesome.org/2013/10/21/typescript-0-9-wh...

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

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and don't miss out on content that matters to you

BT