diff --git a/BUILD.gn b/BUILD.gn index d2f4f83868..817cc9f6af 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -59,9 +59,9 @@ ts_sources = [ "js/console.ts", "js/deno.ts", "js/dispatch.ts", + "js/dom_types.d.ts", "js/errors.ts", "js/fetch.ts", - "js/fetch_types.d.ts", "js/global-eval.ts", "js/globals.ts", "js/libdeno.ts", diff --git a/js/assets.ts b/js/assets.ts index c97dce6496..4949b38b1a 100644 --- a/js/assets.ts +++ b/js/assets.ts @@ -40,7 +40,7 @@ import libEsnextIntlDts from "/third_party/node_modules/typescript/lib/lib.esnex import libEsnextSymbolDts from "/third_party/node_modules/typescript/lib/lib.esnext.symbol.d.ts!string"; // Static definitions -import fetchTypesDts from "/js/fetch_types.d.ts!string"; +import domTypesDts from "/js/dom_types.d.ts!string"; import flatbuffersDts from "/third_party/node_modules/@types/flatbuffers/index.d.ts!string"; import textEncodingDts from "/third_party/node_modules/@types/text-encoding/index.d.ts!string"; import typescriptDts from "/third_party/node_modules/typescript/lib/typescript.d.ts!string"; @@ -82,7 +82,7 @@ export const assetSourceCode: { [key: string]: string } = { "lib.esnext.symbol.d.ts": libEsnextSymbolDts, // Static definitions - "fetch-types.d.ts": fetchTypesDts, + "dom_types.d.ts": domTypesDts, "flatbuffers.d.ts": flatbuffersDts, "text-encoding.d.ts": textEncodingDts, "typescript.d.ts": typescriptDts diff --git a/js/blob.ts b/js/blob.ts index 128146ecee..874a98fa1c 100644 --- a/js/blob.ts +++ b/js/blob.ts @@ -1,5 +1,5 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. -import { Blob, BlobPart, BlobPropertyBag } from "./fetch_types"; +import { Blob, BlobPart, BlobPropertyBag } from "./dom_types"; import { containsOnlyASCII } from "./util"; const bytesSymbol = Symbol("bytes"); diff --git a/js/fetch_types.d.ts b/js/dom_types.d.ts similarity index 100% rename from js/fetch_types.d.ts rename to js/dom_types.d.ts diff --git a/js/fetch.ts b/js/fetch.ts index 24905694e7..4f225b507a 100644 --- a/js/fetch.ts +++ b/js/fetch.ts @@ -18,7 +18,7 @@ import { RequestInit, HeadersInit, FormData -} from "./fetch_types"; +} from "./dom_types"; import { TextDecoder } from "./text_encoding"; interface Header {