Within this class, you can test to see which kind of object you've been passed by looking at the ProductType property and do the right thing with the object. That test acts as a type guard to ensure ...
Peter looks at how to call a JavaScript function from your TypeScript code and do it in a type-safe way. Along the way, he dramatically simplifies a Backbone application by integrating Knockout. I ...
Improvements to template string types, including better relating and inferring between different template string types. TypeScript now does the work to prove whether or not each part of a template ...
A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...
Microsoft's open-source programming language TypeScript – the alter ego of JavaScript but with a type system – turns 10 years old this December. It's grown to become a go-to language for building apps ...
TypeScript 3.5, the latest version of Microsoft’s popular typed superset of JavaScript, is now available in a production release. The update adds optimizations for type-checking, addressing a serious ...