Skip to content

Commit

Permalink
Fix timeout, timeoutOnce, networkError, networkErrorOnce TS typedefs
Browse files Browse the repository at this point in the history
  • Loading branch information
jtomaszewski authored May 15, 2019
1 parent d742b23 commit 7bd34fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ type ResponseSpecFunc = (
interface RequestHandler {
reply: ResponseSpecFunc;
replyOnce: ResponseSpecFunc;
timeoutOnce: ResponseSpecFunc;
networkErrorOnce: ResponseSpecFunc;

passThrough(): MockAdapter;
networkError(): MockAdapter;
timeout(): MockAdapter;
networkError(): void;
networkErrorOnce(): void;
timeout(): void;
timeoutOnce(): void;
}

interface MockAdapterOptions {
Expand Down

0 comments on commit 7bd34fb

Please # to comment.