From a1f3491bdfa77330251d71aa00bd2296a60fca98 Mon Sep 17 00:00:00 2001 From: Colin Doig Date: Sat, 12 Jan 2019 22:32:28 +1300 Subject: [PATCH] fix linting errors --- types/fetch-mock/fetch-mock-tests.ts | 1 - types/fetch-mock/index.d.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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; /**