10 lines
182 B
JavaScript
10 lines
182 B
JavaScript
|
//// [functionOverloads17.ts]
|
||
|
function foo():{a:number;}
|
||
|
function foo():{a:string;} { return {a:""} }
|
||
|
|
||
|
|
||
|
//// [functionOverloads17.js]
|
||
|
function foo() {
|
||
|
return { a: "" };
|
||
|
}
|