diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-11-02 21:43:37 -0400 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-02 20:50:01 -0700 |
| commit | 6446bc532840319ac9603c016e2ef419094fdeec (patch) | |
| tree | 401e4a70956602dbbb032d942226c64ae2fbb5c4 /js/globals.ts | |
| parent | ee24254bade280ea3c0121c074951396863393ac (diff) | |
Move fetch headers into its own file.
Diffstat (limited to 'js/globals.ts')
| -rw-r--r-- | js/globals.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/globals.ts b/js/globals.ts index d29d3b3da..a09e6ed9b 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -2,6 +2,7 @@ import * as blob from "./blob"; import * as console_ from "./console"; import * as fetch_ from "./fetch"; +import { Headers } from "./headers"; import { globalEval } from "./global_eval"; import { libdeno } from "./libdeno"; import * as textEncoding from "./text_encoding"; @@ -41,5 +42,5 @@ window.fetch = fetch_.fetch; // using the `as` keyword to mask the internal types when generating the // runtime library -window.Headers = fetch_.Headers as domTypes.HeadersConstructor; +window.Headers = Headers as domTypes.HeadersConstructor; window.Blob = blob.DenoBlob; |
