Example:

let myAdd: (x:number, y:number) = >number =
    function(x: number, y: number) :number { return x+y; };
Copy the code

Function argument lists and return value types are separated by => :

Generated JavaScript code:

var myAdd = function (x, y) { return x + y; };
Copy the code