File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 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;
5656export interface Stubber < D , R = D extends object ? Partial < D > : D > {
5757 thenReturn < T > ( first : R , ...args : Array < R > ) : TestDouble < T > ;
5858 thenDo < T > ( f : Function ) : TestDouble < T > ;
59- thenThrow < T > ( e : any ) : TestDouble < T > ;
59+ thenThrow < T > ( first : unknown , ... args : Array < unknown > ) : TestDouble < T > ;
6060 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 > ;
6262 thenCallback < T > ( error : any , data : any ) : TestDouble < T > ;
6363}
6464
6565export interface PromiseStubber < P , R = P extends object ? Partial < P > : P > {
6666 thenReturn < T > ( first : Promise < R > , ...args : Array < Promise < R > > ) : TestDouble < T > ;
6767 thenResolve < T > ( first : R , ...args : Array < R > ) : TestDouble < T > ;
6868 thenDo < T > ( f : Function ) : TestDouble < T > ;
69- thenReject < T > ( e : any ) : TestDouble < T > ;
69+ thenReject < T > ( first : unknown , ... args : Array < unknown > ) : TestDouble < T > ;
7070}
7171
7272export interface TestdoubleConfig {
You can’t perform that action at this time.
0 commit comments