Skip to content

Commit

Permalink
expose window.Response (denoland#2515)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju authored and ry committed Jun 14, 2019
1 parent 42d1024 commit fdd2eb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion js/fetch.ts
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions js/globals.ts
Expand Up @@ -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.
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit fdd2eb5

Please sign in to comment.