How to add decorators from es6 extern?

Use cast for this, node.getComponent(cast cc.Button);