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()
.then(loadLocale)
.then(main)
.catch((e) => {
.catch((e: unknown) => {
console.error(e);
});

View File

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

View File

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

View File

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