Correct the declaration emit for overload implementation if there is single overload signature

Fixes  #480
This commit is contained in:
Sheetal Nandi
2014-08-22 13:24:57 -07:00
parent 92e3202604
commit 519ef5b383
4 changed files with 41 additions and 1 deletions

View File

@@ -23,6 +23,11 @@ export function fooWithOverloads(a: any): any {
return a;
}
export function fooWithSingleOverload(a: string): string;
export function fooWithSingleOverload(a: any) {
return a;
}
/** This comment should appear for nonExportedFoo*/
function nonExportedFoo() {
}