diff options
-rw-r--r-- | js/fetch.ts | 2 | ||||
-rw-r--r-- | js/globals.ts | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/js/fetch.ts b/js/fetch.ts index 7cbaf7f10..b1cd8f4aa 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 4f2d53147..2c8a25be3 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(); |