8 lines
228 B
JavaScript
8 lines
228 B
JavaScript
//// [functionOverloads21.ts]
|
|
function foo(bar:{a:number;}[]);
|
|
function foo(bar:{a:number; b:string;}[]);
|
|
function foo(bar:{a:any; b?:string;}[]) { return 0 }
|
|
|
|
|
|
//// [functionOverloads21.js]
|
|
function foo(bar) { return 0; }
|