diff options
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index 6ebf3ddfd..765215661 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -26,6 +26,9 @@ import * as urlSearchParams from "./url_search_params"; 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. import { core } from "./core"; @@ -107,6 +110,12 @@ export type TextEncoder = textEncoding.TextEncoder; window.TextDecoder = textEncoding.TextDecoder; export type TextDecoder = textEncoding.TextDecoder; +window.Request = request.Request; +export type Request = request.Request; + +//window.Response = response.Response; +//export type Response = response.Response; + window.performance = new performanceUtil.Performance(); // This variable functioning correctly depends on `declareAsLet` |