diff --git a/js/fetch.ts b/js/fetch.ts index 7cbaf7f103..b1cd8f4aad 100644 --- a/js/fetch.ts +++ b/js/fetch.ts @@ -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 diff --git a/js/globals.ts b/js/globals.ts index 4f2d531473..2c8a25be30 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -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();