2 minutes

TypeScript 2.7 Released

0 Comments

TypeScript, the programming language that brings optional static types to JavaScript by building on JavaScript itself, just got upgraded to TypeScript 2.7. If you are not familiar with TypeScript, have a look at this post we wrote a few months ago, covering the history of the language and some basics.

TypeScript emits clean, readable and agnostic JavaScript that runs bleeding-edge ECMAScript features on any browser, including on older browsers. TypeScript is sophisticated, yet quite effective. It’s easy to learn and easy to work with.

What’s New in TypeScript 2.7

TypeScript is in the top 10 languages used on GitHub. It’s popular among developers, and there is a lot of involvement from the community. For example, one of the new features, Fixed Length Tuples carries the signature of  Tycho Grouwstra pull request.

Here are the latest improvements:

  • Fixed Length Tuples: Leveraging literal numeric types allow tuples to be distinct from tuples of different arities, tuple types now encode arity and tuples of different arities are no longer assignable to each other.
  • in operator narrowing and accurate instanceof: The in operator is now a narrowing expression for types while the instanceof operator now leverages the inheritance chain instead of on relying on structural compatibility.
  • Stricter class property checks: The new –strictPropertyInitialization flag, performs checks to enforce that each class property instance is initialized in the constructor body or by a subsequent property initializer.
  • Easier ECMAScript module interoperability: -esModuleInterop brings better interoperability with existing “legacy” module formats.
  • Unique symbol types and const-named properties: The latest release understands ECMAScript symbols more deeply.
  • Definite assignment assertions: A definite assertion in the form of a “!” can be included in variables or property declarations.

More insight on the latest improvements can be found in the release notes.

TypeScript NextGen

TypeScript showcase

It’s going to be an interesting year for TypeScript. The next release, which is scheduled for March, will bring conditional types and better handling for namespace-patterns in .js files. By the end of the year support for project references, variadic types, flattening declarations or new decorators are in the pipeline.

Get TypeScript 2017

Visual Studio 2015 users can install TypeScript 2.7 from here, but if you are running Visual Studio 2017 or later, TypeScript can be installed from here.

Impress your audience with animated websites and web presentations.

With Slides, we don’t make you start from an empty slate. All you have to do is to pick the elements you like best and combine them. Each slide has been carefully crafted to satisfy three key criteria: aesthetic, function and usability. That way you know every element works together seamlessly while enhancing the impact of your content.

Create a Website

Keep in mind that there are some minor breaking changes, and you can get familiar with them on the Breaking Changes wiki page. Happy TypeScripting!

Doru Ciobanu

Doru is an old BMW lover with a big heart.

Posts by Doru Ciobanu

Never miss an article or news again.

Sign up to get fresh stuff in your email monthly. For those who want to keep in touch with web design and development trends and tools.

Learn More About Newsletter
Cookie Icon
We use cookies to ensure that we give you the best experience on our website.
  • I disagree
  • I agree