Closed
Description
Since TypeScript is statically typed, it should be able to infer method usage based on supplied parameters, however I can already see a potential limitation in the emitted code - as long as JS is considered "read-only" this probably wont matter (much)
Example
class Test {
public getResult(value: string): boolean {
...
}
public getResult(x: number, y: number, z: number): string {
...
}
}
Compiled
var Test = (function () {
function Test() {
}
Test.prototype.getResult$s0 = function(value) {
...
}
Test.prototype.getResult$n0$n1$n2 = function(x, y, z) {
...
}
return Test;
})();