From 591926a7c524650ccb82b16611fc8882c4a8a2b6 Mon Sep 17 00:00:00 2001 From: Rhys Evans Date: Wed, 28 Aug 2024 10:50:20 +0100 Subject: [PATCH] fix: lastOptions returns RequestInit not MockOptions --- packages/fetch-mock/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fetch-mock/types/index.d.ts b/packages/fetch-mock/types/index.d.ts index c93ce6d6..ad5057df 100644 --- a/packages/fetch-mock/types/index.d.ts +++ b/packages/fetch-mock/types/index.d.ts @@ -655,7 +655,7 @@ declare namespace fetchMock { lastOptions( filter?: InspectionFilter, options?: InspectionOptions, - ): MockOptions | undefined; + ): RequestInit | undefined; /** * Returns the options for the call to fetch matching the given filter.