How to use utils-decorators - 1 common examples

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 7 months ago

Package Health Score

61 / 100
Full package analysis

Popular utils-decorators functions