Skip to content

Commit b95badd

Browse files
authored
Merge pull request jefflau#74 from mctaggaj/patch-1
Updating typing to include one alias
2 parents 103c409 + ec2f3ec commit b95badd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ declare module "jest-fetch-mock" {
1212
(input?: string | Request, init?: RequestInit): Promise<Response>;
1313
mockResponse(body: string, init?: MockParams): Fetch;
1414
mockResponseOnce(body: string, init?: MockParams): Fetch;
15+
once(body: string, init?: MockParams): Fetch;
1516
mockResponses(...responses : Array<[string] | [string, MockParams]>): Fetch;
1617
mockReject(error?: Error): Fetch;
1718
mockRejectOnce(error?: Error): Fetch;

0 commit comments

Comments
 (0)