15 lines
293 B
TypeScript
15 lines
293 B
TypeScript
//// [functionOverloads6.ts]
|
|
class foo {
|
|
static fnOverload();
|
|
static fnOverload(foo:string);
|
|
static fnOverload(foo?: any){ }
|
|
}
|
|
|
|
|
|
//// [functionOverloads6.js]
|
|
var foo = (function () {
|
|
function foo() {
|
|
}
|
|
foo.fnOverload = function (foo) { };
|
|
return foo;
|
|
}());
|