Fix missing `unknown` types for exceptions

This commit is contained in:
Renaud Chaput 2024-04-07 11:47:30 +02:00
parent e74bb06ce2
commit 19cc4ca567
No known key found for this signature in database
GPG Key ID: BCFC859D49B46990
4 changed files with 5 additions and 5 deletions

View File

@ -10,6 +10,6 @@ start();
loadPolyfills() loadPolyfills()
.then(loadLocale) .then(loadLocale)
.then(main) .then(main)
.catch((e) => { .catch((e: unknown) => {
console.error(e); console.error(e);
}); });

View File

@ -13,6 +13,6 @@ ready(() => {
image.addEventListener('mouseleave', () => { image.addEventListener('mouseleave', () => {
image.src = '/oops.png'; image.src = '/oops.png';
}); });
}).catch((e) => { }).catch((e: unknown) => {
console.error(e); console.error(e);
}); });

View File

@ -24,13 +24,13 @@ function loaded() {
} }
function main() { function main() {
ready(loaded).catch((error) => { ready(loaded).catch((error: unknown) => {
throw error; throw error;
}); });
} }
loadPolyfills() loadPolyfills()
.then(main) .then(main)
.catch((error) => { .catch((error: unknown) => {
throw error; throw error;
}); });

View File

@ -43,6 +43,6 @@ ready(() => {
button.appendChild(container); button.appendChild(container);
}); });
}).catch((e) => { }).catch((e: unknown) => {
throw e; throw e;
}); });