Skip to content

Commit dea14d3

Browse files
author
lsimone
committed
typescript updated
1 parent a3bd3be commit dea14d3

File tree

2 files changed

+66
-4
lines changed

2 files changed

+66
-4
lines changed

.idea/codeStyleSettings.xml

+62
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ declare module "jest-fetch-mock" {
1010

1111
interface Fetch {
1212
(input?: string | Request, init?: RequestInit): Promise<Response>;
13-
mockResponse(body: string | Promise, init?: MockParams): Fetch;
14-
mockResponseOnce(body: string | Promise, init?: MockParams): Fetch;
13+
mockResponse(body: string | Function, init?: MockParams): Fetch;
14+
mockResponseOnce(body: string | Function, init?: MockParams): Fetch;
1515
mockResponses(...responses : Array<[string] | [string, MockParams]>): Fetch;
16-
mockReject(error?: Error | Promise): Fetch;
17-
mockRejectOnce(error?: Error | Promise): Fetch;
16+
mockReject(error?: Error | Function): Fetch;
17+
mockRejectOnce(error?: Error | Function): Fetch;
1818
resetMocks(): void;
1919
}
2020

0 commit comments

Comments
 (0)