This library fully depends on vue-class-component.
It helps for using vue plugins.
Now support:
MIT License
npm i -S vue-plugin-helper-decorator
// In component import { required } from 'vuelidate/lib/validators' import { SocketIO, Validation, OnIdle, OnActive } from 'vue-plugin-helper-decorator' @Component({}) export class DummyComponent extends Vue { @SocketIO({ name: 'reconnect' // can declare your custom event name / names }) public myReconnect() { console.log('reconnect') } @Validation() public validationObject() { return { name: { required } } } @OnIdle() public whenIdle() { console,log('Idle now') } @OnActive() public whenActive() { console,log('Active now') } }