File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,17 +56,17 @@ export const matchers: Matchers;
56
56
export interface Stubber < D , R = D extends object ? Partial < D > : D > {
57
57
thenReturn < T > ( first : R , ...args : Array < R > ) : TestDouble < T > ;
58
58
thenDo < T > ( f : Function ) : TestDouble < T > ;
59
- thenThrow < T > ( e : any ) : TestDouble < T > ;
59
+ thenThrow < T > ( first : unknown , ... args : Array < unknown > ) : TestDouble < T > ;
60
60
thenResolve < T > ( first : R , ...args : Array < R > ) : TestDouble < T > ;
61
- thenReject < T > ( e : any ) : TestDouble < T > ;
61
+ thenReject < T > ( first : unknown , ... args : Array < unknown > ) : TestDouble < T > ;
62
62
thenCallback < T > ( error : any , data : any ) : TestDouble < T > ;
63
63
}
64
64
65
65
export interface PromiseStubber < P , R = P extends object ? Partial < P > : P > {
66
66
thenReturn < T > ( first : Promise < R > , ...args : Array < Promise < R > > ) : TestDouble < T > ;
67
67
thenResolve < T > ( first : R , ...args : Array < R > ) : TestDouble < T > ;
68
68
thenDo < T > ( f : Function ) : TestDouble < T > ;
69
- thenReject < T > ( e : any ) : TestDouble < T > ;
69
+ thenReject < T > ( first : unknown , ... args : Array < unknown > ) : TestDouble < T > ;
70
70
}
71
71
72
72
export interface TestdoubleConfig {
You can’t perform that action at this time.
0 commit comments