As I see, decorators usually can be used with classes and methods inside classes. Is there a way to use decorators with regular functions like in code below:
@myDecorator()
function someFunction() {
// do something
}
someFunction(); // running the function with the decorator.