Slide 10
Slide 10 text
TypeScript
Static Typing = A system that analizes program
ow and validate its semantics
i.e. kind of "Powerful Lint"
function multiply(a: number, b: number) {
return a * b;
}
console.log(multiply("a", "b")); // Error!
// Argument of type '"a"' is not assignable
// to parameter of type 'number'.
console.log(multiply(2, 3).length); // Error!
// Property 'length' does not exist on type 'number'.