React and TypeScript Get Cozy
TypeScript 1.6 update adds support for React and JSX, which allows developers to use JSX syntax and TypeScript code interchangeably.
"Our goal was to make it feel natural to work with React/JSX and to have all the type-checking and autocomplete capabilities of TypeScript," wrote Jonathan Turner, a program manager on the TypeScript team, in a blog yesterday. "This allows you a rich editing experience for working with React and JSX when using VS, VS Code, and Sublime."
Also new is the addition of class expressions, a new feature that's intended to "round out the ES 6 support in TypeScript," said Turner. Class expressions are used for creating new classes in a way that's similar to class declarations, but they can be used in lieu of expressions. Also new are a number of additional features to the types system (user-defined type guard functions, an & type operator), support for abstract classes, and generic type aliases.
You Tell 'Em, Readers: If you've read this far, know that Michael Domingo, Visual Studio Magazine Editor in Chief, is here to serve you, dear readers, and wants to get you the information you so richly deserve. What news, content, topics, issues do you want to see covered in Visual Studio Magazine? He's listening at [email protected].