diff --git a/types/fetch-mock/fetch-mock-tests.ts b/types/fetch-mock/fetch-mock-tests.ts index cf90d7e4df..50b4d79252 100644 --- a/types/fetch-mock/fetch-mock-tests.ts +++ b/types/fetch-mock/fetch-mock-tests.ts @@ -154,4 +154,3 @@ fetchMock.config.fetch = (): Promise => new Promise(() => { }); fetchMock.config.Headers = Headers; fetchMock.config.Request = Request; fetchMock.config.Response = Response; - diff --git a/types/fetch-mock/index.d.ts b/types/fetch-mock/index.d.ts index 122983c62c..c9984dea89 100644 --- a/types/fetch-mock/index.d.ts +++ b/types/fetch-mock/index.d.ts @@ -556,7 +556,7 @@ declare namespace fetchMock { * - false: Appends the new route to the list of routes * @default undefined */ - overwriteRoutes?: boolean | undefined; + overwriteRoutes?: boolean; /** * Print a warning if any call is caught by a fallback handler (set @@ -570,8 +570,8 @@ declare namespace fetchMock { * implementation. */ Promise?: new (executor: ( - resolve: Function, - reject: Function, + resolve: () => void, + reject: () => void, ) => void) => Promise; /**