The default type when declaring and using a variable is any . For example, the following should break but does not:

function add(a:number) { return a + 1 } function addAB(a, b) {return add(a) + b} addAB("this should break but doesn't :(", 100)