@@ -30,23 +30,20 @@ interface ApolloCustomMatchers<R = void, T = {}> {
30
30
) => R
31
31
: { error : "matcher needs to be called on an ApolloClient instance" } ;
32
32
33
- toRerender : T extends
34
- | Profiler < any , any >
35
- | ProfiledComponent < any , any >
36
- | ProfiledHook < any , any >
37
- ? ( options ?: NextRenderOptions ) => Promise < R >
38
- : { error : "matcher needs to be called on a ProfiledComponent instance" } ;
33
+ toRerender : T extends (
34
+ Profiler < any , any > | ProfiledComponent < any , any > | ProfiledHook < any , any >
35
+ ) ?
36
+ ( options ?: NextRenderOptions ) => Promise < R >
37
+ : { error : "matcher needs to be called on a ProfiledComponent instance" } ;
39
38
40
- toRenderExactlyTimes : T extends
41
- | Profiler < any , any >
42
- | ProfiledComponent < any , any >
43
- | ProfiledHook < any , any >
44
- ? ( count : number , options ?: NextRenderOptions ) => Promise < R >
45
- : { error : "matcher needs to be called on a ProfiledComponent instance" } ;
39
+ toRenderExactlyTimes : T extends (
40
+ Profiler < any , any > | ProfiledComponent < any , any > | ProfiledHook < any , any >
41
+ ) ?
42
+ ( count : number , options ?: NextRenderOptions ) => Promise < R >
43
+ : { error : "matcher needs to be called on a ProfiledComponent instance" } ;
46
44
47
- toBeGarbageCollected : T extends WeakRef < any >
48
- ? ( ) => Promise < R >
49
- : { error : "matcher needs to be called on a WeakRef instance" } ;
45
+ toBeGarbageCollected : T extends WeakRef < any > ? ( ) => Promise < R >
46
+ : { error : "matcher needs to be called on a WeakRef instance" } ;
50
47
}
51
48
52
49
declare global {
0 commit comments