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