UNPKG

772 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 * This spans across all instances of the class instead of the instance.
6 * @param {number} n The number of calls before the function is invoked.
7 * @example
8 *
9 * class MyClass {
10 * @AfterAll(2)
11 * fn() {
12 * return 10;
13 * }
14 * }
15 *
16 * const myClass = new MyClass();
17 * const myClass2 = new MyClass();
18 *
19 * myClass.fn(); // => undefined
20 * myClass.fn(); // => 10
21 *
22 * myClass2.fn(); // => 10
23 * myClass2.fn(); // => 10
24 */
25export declare function AfterAll(n: number): LodashDecorator;
26export { AfterAll as afterAll };
27export default decorator;