With TypeScript 2.2, null checking is improved even further. TypeScript now flags expressions with nullable operands as compile-time errors.
Posts in 2017
TypeScript 2.2 loosens a restriction around dotted property access for types with explicit string index signatures. Fewer type annotations, less awkward code!
Here's a little helper class for detecting on which operating system a .NET Core application is currently running.
TypeScript 2.2 introduces a new type called
object which represents any non-primitive type. Don't confuse it with the existing
TypeScript 2.1 makes it a lot easier to work with untyped imports. Previously an error, these imports are now typed as
any and can be consumed painlessly.
TypeScript 2.1 differentiates between widening and non-widening literal types. Here's the difference between the two.
TypeScript 2.1 improves inference for literal types. Constant variables and read-only properties with literal initializers are now inferred to be of a literal type.
TypeScript 2.1 introduced mapped types, a powerful type system feature which allows you to create new types from existing ones by transforming properties.
TypeScript 2.1 introduces the