Fix typescript/svelte checks
This commit is contained in:
parent
08c6e0eef2
commit
53a48cba07
17 changed files with 199 additions and 155 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue