10 lines
237 B
JavaScript
10 lines
237 B
JavaScript
//// [functionOverloads33.ts]
|
|
function foo(bar:string):string;
|
|
function foo(bar:any):number;
|
|
function foo(bar:any):any{ return bar }
|
|
var x = foo(5);
|
|
|
|
|
|
//// [functionOverloads33.js]
|
|
function foo(bar) { return bar; }
|
|
var x = foo(5);
|