Read-Only Array and Tuple Types in TypeScript
TypeScript 3.4 added a bit of syntactic sugar to the language that makes it easier to work with read-only array and tuple types.
TypeScript 3.4 added a bit of syntactic sugar to the language that makes it easier to work with read-only array and tuple types.
TypeScript 3.2 added a new --showConfig
compiler flag to the tsc
executable. It calculates the effective tsconfig.json file and prints it to the console.
A quick explanation of how to set a specific Node.js version for an Azure DevOps build using the Node.js Tool Installer task.
TypeScript 3.0 introduced a new unknown
type which is the type-safe counterpart of the any
type.
TypeScript 2.9 introduced a new --resolveJsonModule
compiler option that lets us import JSON modules from within TypeScript modules.
TypeScript 2.9 added the ability to specify type arguments for generic JSX elements.
With TypeScript 2.8, mapped types have gained the ability to add or remove a particular modifier from a property. Previously, it was only possible to add modifiers to properties, but not remove them.
TypeScript 2.8 introduced conditional types, a powerful and exciting addition to the type system.
I'm proud to present "JavaScript Promises in Depth", my fourth egghead.io course!
ES2018 introduced a new Promise.prototype.finally()
method to the standard library. Here's how to use it in TypeScript.