8 lines
176 B
TypeScript
8 lines
176 B
TypeScript
//// [functionOverloads8.ts]
|
|
function foo();
|
|
function foo(foo:string);
|
|
function foo(foo?:any){ return '' }
|
|
|
|
|
|
//// [functionOverloads8.js]
|
|
function foo(foo) { return ''; }
|