8 lines
161 B
TypeScript
8 lines
161 B
TypeScript
//// [functionOverloads1.ts]
|
|
function foo();
|
|
1+1;
|
|
function foo():string { return "a" }
|
|
|
|
//// [functionOverloads1.js]
|
|
1 + 1;
|
|
function foo() { return "a"; }
|