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()
|
loadPolyfills()
|
||||||
.then(loadLocale)
|
.then(loadLocale)
|
||||||
.then(main)
|
.then(main)
|
||||||
.catch((e) => {
|
.catch((e: unknown) => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
});
|
});
|
||||||
|
|
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
|
@ -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;
|
||||||
});
|
});
|
||||||
|
|
|
@ -43,6 +43,6 @@ ready(() => {
|
||||||
|
|
||||||
button.appendChild(container);
|
button.appendChild(container);
|
||||||
});
|
});
|
||||||
}).catch((e) => {
|
}).catch((e: unknown) => {
|
||||||
throw e;
|
throw e;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue