lodash-decorators
Version:
A collection of decorators using lodash at it's core.
23 lines (22 loc) • 595 B
TypeScript
import { LodashDecorator } from './factory';
declare const decorator: (...args: any[]) => LodashDecorator;
/**
* The opposite of Before. This method creates a function that invokes once it's called n or more times.
* @param {number} n The number of calls before the function is invoked.
* @example
*
* class MyClass {
* @After(2)
* fn() {
* return 10;
* }
* }
*
* const myClass = new MyClass();
*
* myClass.fn(); // => undefined
* myClass.fn(); // => 10
*/
export declare function After(n: number): LodashDecorator;
export { After as after };
export default decorator;