mirror of https://github.com/mastodon/mastodon
Fix missing `unknown` types for exceptions
This commit is contained in:
parent
e74bb06ce2
commit
19cc4ca567
|
@ -10,6 +10,6 @@ start();
|
|||
loadPolyfills()
|
||||
.then(loadLocale)
|
||||
.then(main)
|
||||
.catch((e) => {
|
||||
.catch((e: unknown) => {
|
||||
console.error(e);
|
||||
});
|
||||
|
|
|
@ -13,6 +13,6 @@ ready(() => {
|
|||
image.addEventListener('mouseleave', () => {
|
||||
image.src = '/oops.png';
|
||||
});
|
||||
}).catch((e) => {
|
||||
}).catch((e: unknown) => {
|
||||
console.error(e);
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -43,6 +43,6 @@ ready(() => {
|
|||
|
||||
button.appendChild(container);
|
||||
});
|
||||
}).catch((e) => {
|
||||
}).catch((e: unknown) => {
|
||||
throw e;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue