summaryrefslogtreecommitdiff
path: root/ext/web/internal.d.ts
diff options
context:
space:
mode:
authorAndreu Botella <andreu@andreubotella.com>2022-03-20 14:31:12 +0100
committerGitHub <noreply@github.com>2022-03-20 14:31:12 +0100
commit593801e265e7609ac0bd695fcb450e479d5db776 (patch)
treeca6825cbe046fc7206f0e948dc6ddebe14319d3f /ext/web/internal.d.ts
parent0bc286ab47d82496b90efb429e16efccc10e5f2d (diff)
cleanup(web, fetch): dedupe minesniff / "extract a MIME type" algorithm (#14044)
Closes #14002
Diffstat (limited to 'ext/web/internal.d.ts')
-rw-r--r--ext/web/internal.d.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/web/internal.d.ts b/ext/web/internal.d.ts
index 41d4c9b32..8e580495b 100644
--- a/ext/web/internal.d.ts
+++ b/ext/web/internal.d.ts
@@ -60,6 +60,9 @@ declare namespace globalThis {
declare function parseMimeType(input: string): MimeType | null;
declare function essence(mimeType: MimeType): string;
declare function serializeMimeType(mimeType: MimeType): string;
+ declare function extractMimeType(
+ headerValues: string[] | null,
+ ): MimeType | null;
}
declare var eventTarget: {