TypeScript vs ES6 declaring variable types

Viewed 2694

In TypeScript I am used to declaring variable types using a syntax such as follows

function f(input: MyClassType)

However I have not seen such a syntax in ES6 or am I missing something here. The same I would declare in ES6

function f(input)

My main point here is that the parameter type declaration is missing.

1 Answers
Related