fix all typescript lenting errors

This commit is contained in:
KingKDot
2026-05-06 20:07:15 -05:00
parent df0f4e45a4
commit 7c858e4984
14 changed files with 56 additions and 47 deletions
@@ -42,7 +42,7 @@ async function compressedResponse(
headers: Record<string, string>,
): Promise<Response> {
if (!isCompressible(headers["Content-Type"] ?? "") || !acceptsGzip(req) || body.byteLength < 1024) {
return new Response(body, { headers });
return new Response(body as BodyInit, { headers });
}
const compressed = Bun.gzipSync(new Uint8Array(body instanceof ArrayBuffer ? body : body));
return new Response(compressed, {