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