How to use the utils-decorators.before function in utils-decorators

To help you get started, we’ve selected a few utils-decorators examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vlio20 / utils-decorators / playground / index.ts View on Github external
import {before} from 'utils-decorators';

class Test {
  @before({func: 'goo'})
  foo() {
    console.log('will run after');
  }

  goo() {
    console.log('will run before foo');
  }
}

const t = new Test();

utils-decorators

decorators for reducing repetitive code

MIT
Latest version published 6 days ago

Package Health Score

73 / 100
Full package analysis

Popular utils-decorators functions