Type Inference
Variable Definition
let foo = 123; // foo is a `number`
let bar = "Hello"; // bar is a `string`
foo = bar; // Error: cannot assign `string` to a `number`Function Return Types
function add(a: number, b: number) {
return a + b;
}Assignment
Structuring
Destructuring
Type Guards
Warnings
Be careful around parameters
Be careful around return
noImplicitAny
noImplicitAnyLast updated