fix: soo many lint errors

This commit is contained in:
Max Richter
2025-11-03 00:03:27 +01:00
parent c13420c3ab
commit 696082250d
41 changed files with 373 additions and 500 deletions

View File

@@ -60,7 +60,7 @@ function parseParams(reqUrl: URL): ImageParams | string {
}
}
// Helper function to generate ETag
async function generateETag(content: ArrayBuffer): Promise<string> {
async function generateETag(content: Uint8Array<ArrayBuffer>): Promise<string> {
const hashBuffer = await crypto.subtle.digest("SHA-256", content);
return `"${
Array.from(new Uint8Array(hashBuffer))