Skip to content

Commit

Permalink
Make input a required argument to fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
keeganwatkins committed Jun 25, 2021
1 parent 46e09b9 commit 1476694
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 1476694

Please sign in to comment.