23 lines
460 B
JavaScript
23 lines
460 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]
|
|
declare class C {
|
|
private foo(x);
|
|
private foo(x);
|
|
}
|