TypeScript 2.2 Polishes Up A Few Tooling Fixes

New release fixes a number of issues, including more polished tooling fixes while working in the editor, and the addition of a new object type introduced in the second iteration of the ECMAscript offshoot.

There's an incremental update to the TypeScript language available this week, one that contains mainly tooling improvements when working with editors, as well as the introduction of a new object type being trotted out with the second version of this ECMAscript-based offshoot.

Microsoft's Daniel Rossenwasser notes in a blog that TypeScript 2.2 currently works with Visual Studio 2015 Update 3, with support for Visual Studio 2017 coming "in a future upgrade." It also can be configured immediately to work with Visual Studio Code or the Sublime text editor.

One of the areas of improvement in this update, in fact, have to do with tooling when working with editors, said Rossenwasser. "Tooling can be leveraged in any editor with a plugin system," he writes. "This is one of the things that makes the TypeScript experience so powerful." The tooling improvements include quick fixes (Rossenwasser notes that these are also called code actions), wherein the editor will offer suggestions when it notices missing imports or properties, variables that need a this., as well as removing unused declarations and implementing abstract members.

TypeScript 2.2 also introduces a new object type "that matches any types except for primitive types," says Rossenwasser, which means it can be assigned anything except "string, boolean, number, symbol, and when using strictNullChecks, null and undefined." Note the lower-case object, which he said is distinct from the capitalized Object, and is different from the {} type.

Also new: more flexibility with string indexing behavior; improved class support for mixins; introduction of new react-native emit mode; and support for ECMAscript 2015's metaproperty. Besides Rossenwasser's blog, these new capabilities are also detailed in the TypeScript roadmap on GitHub.

TypeScript 2.0 was released in September; version 2.1 was released in December.

About the Author

Michael Domingo is a long-time software publishing veteran, having started up and managed several developer publications for the Clipper compiler, Microsoft Access, and Visual Basic. He's also managed IT pubs for 1105 Media, including Microsoft Certified Professional Magazine and Virtualization Review before landing his current gig as Visual Studio Magazine Editor in Chief. Besides his publishing life, he's a professional photographer, whose work can be found by Googling domingophoto.

comments powered by Disqus


  • .NET Core Ranks High Among Frameworks in New Dev Survey

    .NET Core placed high in a web-dominated ranking of development frameworks published by CodinGame, which provides a tech hiring platform.

  • Here's a One-Stop Shop for .NET 5 Improvements

    Culled from reams of Microsoft documentation, here's a high-level summary of what's new for performance, networking, diagnostics and more, along with links to the nitty-gritty details for those wanting to dig in more.

  • Azure SQL Database Ranked Among Top 3 Databases of 2020

    Microsoft touted the inclusion of Azure SQL Database among the top three databases of 2020 in a popularity ranking by DB-Engines, which collects and manages information about database management systems, updating its lists monthly.

  • Time Tracker Says VS Code Is No. 1 Editor for Devs, Some Working 15+ Hours Per Day

    WakaTime, which does time tracking for programmers, released data for 2020 showing that Visual Studio Code is by far the top editor/IDE used by its coders, some of whom are hacking away for more than 15 hours per day.

Upcoming Events