17 lines
298 B
JavaScript
17 lines
298 B
JavaScript
|
//// [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;
|
||
|
})();
|