diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-08 07:44:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-08 12:44:54 +0100 |
commit | 72fe9bb47005e720444e65a66e91559287137780 (patch) | |
tree | d529ee7f3b2c33063ba4496f8fd3dfdbac0d1355 /ext/web/internal.d.ts | |
parent | d24c6ea27f7dea57e3bc0cda342d6cbe59782f7d (diff) |
refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041)
This commit renames "deno_core::InternalModuleLoader" to
"ExtModuleLoader" and changes the specifiers used by the
modules loaded from this loader to "ext:".
"internal:" scheme was really ambiguous and it's more characters than
"ext:", which should result in slightly smaller snapshot size.
Closes https://github.com/denoland/deno/issues/18020
Diffstat (limited to 'ext/web/internal.d.ts')
-rw-r--r-- | ext/web/internal.d.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/web/internal.d.ts b/ext/web/internal.d.ts index 9f72b0f5d..ee20b6ead 100644 --- a/ext/web/internal.d.ts +++ b/ext/web/internal.d.ts @@ -3,7 +3,7 @@ /// <reference no-default-lib="true" /> /// <reference lib="esnext" /> -declare module "internal:deno_web/00_infra.js" { +declare module "ext:deno_web/00_infra.js" { function collectSequenceOfCodepoints( input: string, position: number, @@ -44,11 +44,11 @@ declare module "internal:deno_web/00_infra.js" { function serializeJSValueToJSONString(value: unknown): string; } -declare module "internal:deno_web/01_dom_exception.js" { +declare module "ext:deno_web/01_dom_exception.js" { export = DOMException; } -declare module "internal:deno_web/01_mimesniff.js" { +declare module "ext:deno_web/01_mimesniff.js" { interface MimeType { type: string; subtype: string; @@ -62,7 +62,7 @@ declare module "internal:deno_web/01_mimesniff.js" { ): MimeType | null; } -declare module "internal:deno_web/02_event.js" { +declare module "ext:deno_web/02_event.js" { const EventTarget: typeof EventTarget; const Event: typeof event; const ErrorEvent: typeof ErrorEvent; @@ -74,29 +74,29 @@ declare module "internal:deno_web/02_event.js" { const reportError: typeof reportError; } -declare module "internal:deno_web/12_location.js" { +declare module "ext:deno_web/12_location.js" { function getLocationHref(): string | undefined; } -declare module "internal:deno_web/05_base64.js" { +declare module "ext:deno_web/05_base64.js" { function atob(data: string): string; function btoa(data: string): string; } -declare module "internal:deno_web/09_file.js" { +declare module "ext:deno_web/09_file.js" { function blobFromObjectUrl(url: string): Blob | null; function getParts(blob: Blob): string[]; const Blob: typeof Blob; const File: typeof File; } -declare module "internal:deno_web/06_streams.js" { +declare module "ext:deno_web/06_streams.js" { const ReadableStream: typeof ReadableStream; function isReadableStreamDisturbed(stream: ReadableStream): boolean; function createProxy<T>(stream: ReadableStream<T>): ReadableStream<T>; } -declare module "internal:deno_web/13_message_port.js" { +declare module "ext:deno_web/13_message_port.js" { type Transferable = { kind: "messagePort"; data: number; |