Skip to content

Commit

Permalink
Merge pull request jefflau#207 from keeganwatkins/fix-types-in-3.0.3
Browse files Browse the repository at this point in the history
Make input a required argument to fetch
  • Loading branch information
yinzara authored Sep 2, 2021
2 parents 46e09b9 + 1476694 commit 79e79e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface GlobalWithFetchMock extends Global {

export interface FetchMock
extends jest.MockInstance<Promise<Response>, [string | Request | undefined, RequestInit | undefined]> {
(input?: string | Request, init?: RequestInit): Promise<Response>;
(input: string | Request, init?: RequestInit): Promise<Response>;

// Response mocking
mockResponse(fn: MockResponseInitFunction): FetchMock;
Expand Down

0 comments on commit 79e79e8

Please sign in to comment.