You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
})();
The text was updated successfully, but these errors were encountered:
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
Compiled
The text was updated successfully, but these errors were encountered: