20 lines
305 B
JavaScript
20 lines
305 B
JavaScript
|
//// [commentBeforeStaticMethod1.ts]
|
||
|
class C {
|
||
|
/**
|
||
|
* Returns bar
|
||
|
*/
|
||
|
public static foo(): string {
|
||
|
return "bar";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
//// [commentBeforeStaticMethod1.js]
|
||
|
var C = (function () {
|
||
|
function C() {
|
||
|
}
|
||
|
C.foo = function () {
|
||
|
return "bar";
|
||
|
};
|
||
|
return C;
|
||
|
})();
|