1 | import { LodashDecorator } from './factory';
|
2 | declare 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 | */
|
20 | export declare function After(n: number): LodashDecorator;
|
21 | export { After as after };
|
22 | export default decorator;
|