11 lines
206 B
JavaScript
11 lines
206 B
JavaScript
//// [functionOverloads18.ts]
|
|
function foo(bar:{a:number;});
|
|
function foo(bar:{a:string;}) { return {a:""} }
|
|
|
|
|
|
//// [functionOverloads18.js]
|
|
function foo(bar) {
|
|
return {
|
|
a: ""
|
|
};
|
|
}
|