17 lines
246 B
JavaScript
17 lines
246 B
JavaScript
|
//// [staticInstanceResolution4.ts]
|
||
|
class A {
|
||
|
public foo() {}
|
||
|
}
|
||
|
|
||
|
A.foo();
|
||
|
|
||
|
//// [staticInstanceResolution4.js]
|
||
|
var A = (function () {
|
||
|
function A() {
|
||
|
}
|
||
|
A.prototype.foo = function () {
|
||
|
};
|
||
|
return A;
|
||
|
})();
|
||
|
A.foo();
|