Conform more of the codebase to strict types (#11162)

This commit is contained in:
Michael Telatynski
2023-06-29 12:17:05 +01:00
committed by GitHub
parent 9c7d935aae
commit 95283d21bb
9 changed files with 36 additions and 31 deletions
+2 -2
View File
@@ -81,8 +81,8 @@ const singleMxcUpload = async (cli: MatrixClient): Promise<string | null> => {
return new Promise((resolve) => {
const fileSelector = document.createElement("input");
fileSelector.setAttribute("type", "file");
fileSelector.onchange = (ev: HTMLInputEvent) => {
const file = ev.target.files?.[0];
fileSelector.onchange = (ev: Event) => {
const file = (ev as HTMLInputEvent).target.files?.[0];
if (!file) return;
Modal.createDialog(UploadConfirmDialog, {