8 lines
255 B
TypeScript
8 lines
255 B
TypeScript
//// [functionOverloads15.ts]
|
|
function foo(foo:{a:string; b:number;}):string;
|
|
function foo(foo:{a:string; b:number;}):number;
|
|
function foo(foo:{a:string; b?:number;}):any { return "" }
|
|
|
|
|
|
//// [functionOverloads15.js]
|
|
function foo(foo) { return ""; }
|