From 14766944c2ab71ddbc29e4d46d24a6981334bcba Mon Sep 17 00:00:00 2001 From: Keegan Watkins Date: Fri, 25 Jun 2021 16:24:52 -0500 Subject: [PATCH] Make input a required argument to fetch --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 889d04b..22ae47b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -18,7 +18,7 @@ export interface GlobalWithFetchMock extends Global { export interface FetchMock extends jest.MockInstance, [string | Request | undefined, RequestInit | undefined]> { - (input?: string | Request, init?: RequestInit): Promise; + (input: string | Request, init?: RequestInit): Promise; // Response mocking mockResponse(fn: MockResponseInitFunction): FetchMock;