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.
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
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.Learn MoreOther Products
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!