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