[chore] Fix type errors

This commit is contained in:
Cohee
2024-10-11 21:33:36 +03:00
parent 72138c632d
commit 4fcad0752f
25 changed files with 78 additions and 44 deletions

View File

@ -380,6 +380,7 @@ async function downloadPygmalionCharacter(id) {
throw new Error('Failed to download character');
}
/** @type {any} */
const jsonData = await result.json();
const characterData = jsonData?.character;
@ -472,6 +473,7 @@ async function downloadJannyCharacter(uuid) {
});
if (result.ok) {
/** @type {any} */
const downloadResult = await result.json();
if (downloadResult.status === 'ok') {
const imageResult = await fetch(downloadResult.downloadUrl);