@types/fetch-mock
Advanced tools
Comparing version 6.0.6 to 6.0.7
@@ -93,7 +93,13 @@ // Type definitions for fetch-mock 6.0 | ||
*/ | ||
type MockResponse = Response | Promise<Response> | ||
| number | Promise<number> | ||
| string | Promise<string> | ||
| {} | Promise<{}> | ||
| MockResponseObject | Promise<MockResponseObject>; | ||
type MockResponse = | ||
| Response | ||
| Promise<Response> | ||
| number | ||
| Promise<number> | ||
| string | ||
| Promise<string> | ||
| {} | ||
| Promise<{}> | ||
| MockResponseObject | ||
| Promise<MockResponseObject>; | ||
@@ -170,19 +176,19 @@ /** | ||
interface MockOptionsMethodGet extends MockOptions { | ||
method?: 'GET' | undefined; | ||
method?: "GET" | undefined; | ||
} | ||
interface MockOptionsMethodPost extends MockOptions { | ||
method?: 'POST' | undefined; | ||
method?: "POST" | undefined; | ||
} | ||
interface MockOptionsMethodPut extends MockOptions { | ||
method?: 'PUT' | undefined; | ||
method?: "PUT" | undefined; | ||
} | ||
interface MockOptionsMethodDelete extends MockOptions { | ||
method?: 'DELETE' | undefined; | ||
method?: "DELETE" | undefined; | ||
} | ||
interface MockOptionsMethodHead extends MockOptions { | ||
method?: 'HEAD' | undefined; | ||
method?: "HEAD" | undefined; | ||
} | ||
@@ -249,3 +255,7 @@ | ||
*/ | ||
getOnce(matcher: MockMatcher, reponse: MockResponse | MockResponseFunction, options?: MockOptionsMethodGet): this; | ||
getOnce( | ||
matcher: MockMatcher, | ||
reponse: MockResponse | MockResponseFunction, | ||
options?: MockOptionsMethodGet, | ||
): this; | ||
@@ -273,3 +283,7 @@ /** | ||
*/ | ||
postOnce(matcher: MockMatcher, reponse: MockResponse | MockResponseFunction, options?: MockOptionsMethodPost): this; | ||
postOnce( | ||
matcher: MockMatcher, | ||
reponse: MockResponse | MockResponseFunction, | ||
options?: MockOptionsMethodPost, | ||
): this; | ||
@@ -297,3 +311,7 @@ /** | ||
*/ | ||
putOnce(matcher: MockMatcher, reponse: MockResponse | MockResponseFunction, options?: MockOptionsMethodPut): this; | ||
putOnce( | ||
matcher: MockMatcher, | ||
reponse: MockResponse | MockResponseFunction, | ||
options?: MockOptionsMethodPut, | ||
): this; | ||
@@ -309,3 +327,7 @@ /** | ||
*/ | ||
delete(matcher: MockMatcher, reponse: MockResponse | MockResponseFunction, options?: MockOptionsMethodDelete): this; | ||
delete( | ||
matcher: MockMatcher, | ||
reponse: MockResponse | MockResponseFunction, | ||
options?: MockOptionsMethodDelete, | ||
): this; | ||
@@ -322,3 +344,7 @@ /** | ||
*/ | ||
deleteOnce(matcher: MockMatcher, reponse: MockResponse | MockResponseFunction, options?: MockOptionsMethodDelete): this; | ||
deleteOnce( | ||
matcher: MockMatcher, | ||
reponse: MockResponse | MockResponseFunction, | ||
options?: MockOptionsMethodDelete, | ||
): this; | ||
@@ -346,3 +372,7 @@ /** | ||
*/ | ||
headOnce(matcher: MockMatcher, reponse: MockResponse | MockResponseFunction, options?: MockOptionsMethodHead): this; | ||
headOnce( | ||
matcher: MockMatcher, | ||
reponse: MockResponse | MockResponseFunction, | ||
options?: MockOptionsMethodHead, | ||
): this; | ||
@@ -358,3 +388,7 @@ /** | ||
*/ | ||
patch(matcher: MockMatcher, reponse: MockResponse | MockResponseFunction, options?: MockOptionsMethodHead): this; | ||
patch( | ||
matcher: MockMatcher, | ||
reponse: MockResponse | MockResponseFunction, | ||
options?: MockOptionsMethodHead, | ||
): this; | ||
@@ -371,3 +405,7 @@ /** | ||
*/ | ||
patchOnce(matcher: MockMatcher, reponse: MockResponse | MockResponseFunction, options?: MockOptionsMethodHead): this; | ||
patchOnce( | ||
matcher: MockMatcher, | ||
reponse: MockResponse | MockResponseFunction, | ||
options?: MockOptionsMethodHead, | ||
): this; | ||
@@ -478,3 +516,3 @@ /** | ||
*/ | ||
(input?: string | Request , init?: RequestInit): Promise<Response>; | ||
(input?: string | Request, init?: RequestInit): Promise<Response>; | ||
} | ||
@@ -481,0 +519,0 @@ } |
{ | ||
"name": "@types/fetch-mock", | ||
"version": "6.0.6", | ||
"version": "6.0.7", | ||
"description": "TypeScript definitions for fetch-mock", | ||
@@ -53,4 +53,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fetch-mock", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "66d811f78df895072233de96ed86e0c3ea7679fcf444171a6bf7cefb4085074c", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "805ff7c711cf7820c1ae5d51ace922851a694cc76442818c6f5ce30c1dfc8215", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 20:32:57 GMT | ||
* Last updated: Thu, 14 Sep 2023 15:26:41 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24916
453
0