20 lines
396 B
JavaScript
20 lines
396 B
JavaScript
|
//// [declFileForClassWithPrivateOverloadedFunction.ts]
|
||
|
|
||
|
class C {
|
||
|
private foo(x: number);
|
||
|
private foo(x: string);
|
||
|
private foo(x: any) { }
|
||
|
}
|
||
|
|
||
|
//// [declFileForClassWithPrivateOverloadedFunction.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
C.prototype.foo = function (x) {
|
||
|
};
|
||
|
return C;
|
||
|
})();
|
||
|
|
||
|
|
||
|
//// [declFileForClassWithPrivateOverloadedFunction.d.ts]
|