@publish is a decorator that makes classes or/and methods accessible globally . It is useful for debugging in the client-side (browser) and it is valuable also in server-side (Node.js).
npm install publish-decorator --save;
import {publish} from 'publish-decorator';
@publish
class MyClass {
method1() {
}
@publish
method2(){
}
}
MIT .