ride Namespace
Decorators that can be used with the ride() function.
Signature
export declare namespace ride
Functions
Function | Description |
---|---|
after(extraBehavior) | Calls the extraBehavior after the original function has been called. |
before(extraBehavior) | Calls the extraBehavior before the original function will be called. |
compose(transformer) | Transforms the return value of the original function. |
wrap(wrapper) | Calls the wrapper function instead of the original function. The wrapper function is passed a function that can invoke the original function with the original arguments. |