expose window.Response (#2515)

This commit is contained in:
Bartek Iwańczuk 2019-06-14 04:53:30 +02:00 committed by Ryan Dahl
parent 42d1024cd9
commit fdd2eb5383
2 changed files with 3 additions and 4 deletions

View file

@ -239,7 +239,7 @@ class Body implements domTypes.Body, domTypes.ReadableStream, io.ReadCloser {
}
}
class Response implements domTypes.Response {
export class Response implements domTypes.Response {
readonly url: string = "";
statusText = "FIXME"; // TODO
readonly type = "basic"; // TODO

View file

@ -28,7 +28,6 @@ import * as workers from "./workers";
import * as performanceUtil from "./performance";
import * as request from "./request";
//import * as response from "./response";
// These imports are not exposed and therefore are fine to just import the
// symbols required.
@ -120,8 +119,8 @@ export type TextDecoder = textEncoding.TextDecoder;
window.Request = request.Request as domTypes.RequestConstructor;
export type Request = domTypes.Request;
//window.Response = response.Response;
//export type Response = response.Response;
window.Response = fetchTypes.Response;
export type Response = domTypes.Response;
window.performance = new performanceUtil.Performance();