7 lines
176 B
TypeScript
7 lines
176 B
TypeScript
//// [functionOverloads17.ts]
|
|
function foo():{a:number;}
|
|
function foo():{a:string;} { return {a:""} }
|
|
|
|
|
|
//// [functionOverloads17.js]
|
|
function foo() { return { a: "" }; }
|