Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();