TypeScript

The official blog of the TypeScript team.

Latest posts

Announcing TypeScript 2.0 Beta
Jul 11, 2016
Post comments count 0
Post likes count 0

Announcing TypeScript 2.0 Beta

Daniel Rosenwasser
Daniel Rosenwasser

Today we're excited to roll out our beta release of TypeScript 2.0. If you're not familiar with TypeScript yet, you can start learning it today on our website. To get your hands on the beta, you can download TypeScript 2.0 Beta for Visual Studio 2015 (which will require VS 2015 Update 3), or just run This release includes plenty of new features, such as our new workflow for getting files, but here's a couple more features just to get an idea of what else is in store. Non-nullable Types and are two of the most common sources of bugs in JavaScript. Before TypeScript 2.0, and were in the domain of every typ...

The Future of Declaration Files
Jun 15, 2016
Post comments count 0
Post likes count 0

The Future of Declaration Files

Daniel Rosenwasser
Daniel Rosenwasser

Declaration files ( files) are a fundamental part of using existing JavaScript libraries in TypeScript, but getting them has always been a place where we've known there was room for improvement. As we get closer to TypeScript 2.0, we're very excited to show off a sneak peak of our plan to simplify things. Getting type declarations in TypeScript 2.0 will require no tools apart from npm. As an example, getting the declarations for a library like lodash will be just an npm command away: From there you'll be able to use lodash in your TypeScript code with no fuss. This works for both modules and global code. For...

Making New TypeScript Projects a Breeze
May 10, 2016
Post comments count 0
Post likes count 0

Making New TypeScript Projects a Breeze

Daniel Rosenwasser
Daniel Rosenwasser

One of the goals of TypeScript has always been to make writing JavaScript projects a clean, easy, and simple process. We're always looking at where things could be improved and listening to the community to get ideas on how to do this better. You may've recently heard the term "JavaScript fatigue" thrown around to describe the feeling of starting up a new JavaScript project. What it generally boils down to is that there are many tools, with tons of configurations, and with that combination the number of decisions you need to make can be overwhelming. That means that adding a new tool might just be out of the que...

New TypeScript Website
Mar 24, 2016
Post comments count 0
Post likes count 0

New TypeScript Website

Bowden Kelly
Bowden Kelly

Today we are thrilled to release a new TypeScript website! The new site delivers a fresh design, more up-to-date documentation, and soon a new series of quick start guides. Documentation TypeScript is developed on GitHub, and as such, all of the documentation is written in markdown on the TypeScript Handbook repo. This is primarily done to easily allow contributions. Any community member can make edits to the documentation by simply dropping a pull request on the handbook repo. While this is great for community collaboration, previously, updating the website docs from the wiki was a very slow and manual process. ...

Announcing TypeScript 1.8
Feb 22, 2016
Post comments count 0
Post likes count 0

Announcing TypeScript 1.8

Bowden Kelly
Bowden Kelly

Today we are thrilled to announce the release of TypeScript 1.8. In the TypeScript 1.8 Beta release blog post, we highlighted some of the key features that are now available to TypeScript users - how JavaScript in TypeScript compilation provides a great way forward to start converting your JavaScript projects to TypeScript, improvements to JSX/TSX support, and our move to ChakraCore. This post supplements the above and details how TypeScript 1.8 provides full support for module augmentation, delivers a stronger type system with string literal types, and catches even more common bugs with smarter control flow anal...

Announcing TypeScript 1.8 Beta
Jan 28, 2016
Post comments count 0
Post likes count 0

Announcing TypeScript 1.8 Beta

Bowden Kelly
Bowden Kelly

Today we are releasing a beta of TypeScript 1.8. There are quite a lot of changes coming in the 1.8 release, so please check them out and send us your feedback. TypeScript 1.8 beta is available for Visual Studio 2015, NuGet (Compiler and MSBuild task), npm, and straight from the source. For npm users, make sure to use the following command: > npm install -g typescript@beta You can also get TypeScript 1.8 beta in VS Code by downloading the above npm package and updating your with the following: JavaScript in TypeScript Compilation In TypeScript 1.8, the TypeScript compiler can now consume Java...

Announcing TypeScript 1.7
Nov 30, 2015
Post comments count 0
Post likes count 0

Announcing TypeScript 1.7

Gaurav Seth [MSFT]
Gaurav Seth [MSFT]

Today, we are thrilled to announce the release of TypeScript 1.7 along with the availability of Visual Studio 2015 Update 1. This release enables async/await by default for ECMAScript 6 (ES6) targets. It also adds support for polymorphic 'this' typing, proposed ECMAScript 2016 exponentiation syntax, and ES6 module targeting. For a complete change list, check out our roadmap on GitHub.As always, you can get your hands on TypeScript 1.7 for Visual Studio 2015 Update 1, Visual Studio 2013, on npm, or straight from the source.Async/Await for ES6 targetsWith the 1.7 release, TypeScript now supports Async functions for...

What about Async/Await?
Nov 3, 2015
Post comments count 0
Post likes count 0

What about Async/Await?

phuff
phuff

We’ve heard your feedback that you’re excited about async/await in TypeScript. Async/await allows developers to write to asynchronous code flows as if they were synchronous, removing the need for registering event handlers or writing separate callback functions. You may have seen similar patterns in C#. TypeScript’s async/await pattern makes use of Promises, much like C#’s async/await pattern leverages Tasks. Promises are objects that represent ongoing asynchronous actions and are a built-in feature of ECMAScript 6 (ES6). TypeScript’s async/await is implemented as proposed for ES2016 (aka ES7). We’re happy to ...

Announcing TypeScript 1.6
Sep 16, 2015
Post comments count 0
Post likes count 0

Announcing TypeScript 1.6

Jonathan Turner [MS]
Jonathan Turner [MS]

Today, we're happy to announce the release of TypeScript 1.6.  This release adds support for React/JSX, class expressions, and a rich set of new capabilities in the type system. It also provides stricter type checking for object literals. You can download TypeScript 1.6 for Visual Studio 2015, Visual Studio 2013, on npm, or as source. React/JSX Designed with feedback from React experts and the React team, we've built full-featured support for React typing and the JSX support in React.  Below, you can see TypeScript code happily coexisting with JSX syntax within a single file with the new .tsx extension. ...