diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-04-11 16:25:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-11 16:25:31 -0400 |
commit | da28fc1e7b4551281ad14d49c7fb396010ba0107 (patch) | |
tree | 9293ea58dda9c48e5536d7d953414c66bffb2499 /cli/js/web/url.ts | |
parent | 0641ad0d9b073f67e6f665430567d00b7f36e8a8 (diff) |
dedup type declarations (#4718)
Blob, BlobPart, BufferSource, ReferrerPolicy, BlobPart, AbortSignal, AbortSignalEventMap
Diffstat (limited to 'cli/js/web/url.ts')
-rw-r--r-- | cli/js/web/url.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/web/url.ts b/cli/js/web/url.ts index 1a6f4eb9d..374997a1e 100644 --- a/cli/js/web/url.ts +++ b/cli/js/web/url.ts @@ -74,7 +74,7 @@ function generateUUID(): string { } // Keep it outside of URL to avoid any attempts of access. -export const blobURLMap = new Map<string, domTypes.Blob>(); +export const blobURLMap = new Map<string, Blob>(); function isAbsolutePath(path: string): boolean { return path.startsWith("/"); @@ -373,7 +373,7 @@ export class URL implements domTypes.URL { } // TODO(kevinkassimo): implement MediaSource version in the future. - static createObjectURL(b: domTypes.Blob): string { + static createObjectURL(b: Blob): string { const origin = globalThis.location.origin || "http://deno-opaque-origin"; const key = `blob:${origin}/${generateUUID()}`; blobURLMap.set(key, b); |