Skip to content

Commit d9e2bd8

Browse files
authored
Merge pull request #245 from milkisevil/response-static-methods
Adds static methods to Response
2 parents 35fef37 + 2a29a92 commit d9e2bd8

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

baselines/dom.generated.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -9366,6 +9366,8 @@ interface Response extends Object, Body {
93669366
declare var Response: {
93679367
prototype: Response;
93689368
new(body?: any, init?: ResponseInit): Response;
9369+
error: () => Response;
9370+
redirect: (url: string, status?: number) => Response;
93699371
}
93709372

93719373
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
@@ -15034,4 +15036,4 @@ type ServiceWorkerState = "installing" | "installed" | "activating" | "activated
1503415036
type Transport = "usb" | "nfc" | "ble";
1503515037
type VideoFacingModeEnum = "user" | "environment" | "left" | "right";
1503615038
type VisibilityState = "hidden" | "visible" | "prerender" | "unloaded";
15037-
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
15039+
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";

baselines/webworker.generated.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -957,6 +957,8 @@ interface Response extends Object, Body {
957957
declare var Response: {
958958
prototype: Response;
959959
new(body?: any, init?: ResponseInit): Response;
960+
error: () => Response;
961+
redirect: (url: string, status?: number) => Response;
960962
}
961963

962964
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
@@ -1838,4 +1840,4 @@ type ServiceWorkerState = "installing" | "installed" | "activating" | "activated
18381840
type VisibilityState = "hidden" | "visible" | "prerender" | "unloaded";
18391841
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
18401842
type ClientType = "window" | "worker" | "sharedworker" | "all";
1841-
type FrameType = "auxiliary" | "top-level" | "nested" | "none";
1843+
type FrameType = "auxiliary" | "top-level" | "nested" | "none";

inputfiles/overridingTypes.json

+9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
[
2+
{
3+
"kind": "constructor",
4+
"interface": "Response",
5+
"signatures": [
6+
"new(body?: any, init?: ResponseInit): Response",
7+
"error: () => Response",
8+
"redirect: (url: string, status?: number) => Response"
9+
]
10+
},
211
{
312
"kind": "constructor",
413
"interface": "ErrorEvent",

0 commit comments

Comments
 (0)