var FirstNameTyped: ((custParm: Customer) => string) = ( cust => cust.name.substr(0, cust.name.indexOf(" ")) ) ; While you can now take advantage of datatyping in TypeScript when defining functions, I ...
The TypeScript datatyping support not only applies to simple variables, it also supports you when doing clever things with functions. Specifically, TypeScript ensures you create reliable code when ...