UNPKG

595 BTypeScriptView Raw
1import { LodashDecorator } from './factory';
2declare const decorator: (...args: any[]) => LodashDecorator;
3/**
4 * The opposite of Before. This method creates a function that invokes once it's called n or more times.
5 * @param {number} n The number of calls before the function is invoked.
6 * @example
7 *
8 * class MyClass {
9 * @After(2)
10 * fn() {
11 * return 10;
12 * }
13 * }
14 *
15 * const myClass = new MyClass();
16 *
17 * myClass.fn(); // => undefined
18 * myClass.fn(); // => 10
19 */
20export declare function After(n: number): LodashDecorator;
21export { After as after };
22export default decorator;