Fix typescript/svelte checks

This commit is contained in:
nemunaire 2025-10-24 17:20:35 +07:00
commit 53a48cba07
17 changed files with 199 additions and 155 deletions

View file

@ -7,8 +7,8 @@ export class NotAuthorizedError extends Error {
}
}
async function customFetch(url: string, init: RequestInit): Promise<Response> {
const response = await fetch(url, init);
async function customFetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response> {
const response = await fetch(input, init);
if (response.status === 400) {
const json = await response.json();