20 lines
364 B
JavaScript
20 lines
364 B
JavaScript
|
//// [methodSignatureDeclarationEmit1.ts]
|
||
|
class C {
|
||
|
public foo(n: number): void;
|
||
|
public foo(s: string): void;
|
||
|
public foo(a: any): void {
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [methodSignatureDeclarationEmit1.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
C.prototype.foo = function (a) {
|
||
|
};
|
||
|
return C;
|
||
|
})();
|
||
|
|
||
|
|
||
|
//// [methodSignatureDeclarationEmit1.d.ts]
|