I am interested in obtaining the source code for my TypeScript function ** written in TypeScript **.
Here is the TypeScript code:
var fn = function (a:number, b:number) {
return a + b;
};
console.log("Code: " + fn);
This code snippet displays the JavaScript version of the function,
Code: function (a, b) {
return a + b;
}
However, I would prefer to have the original TypeScript code, preferably with type information. Especially when utilizing this
within the function, the converted JavaScript output may not appear as elegant.