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