Typescript updates (#9658)

* Typescript updates

* Update @types/node

* Fix more types
This commit is contained in:
Michael Telatynski
2022-11-30 11:32:56 +00:00
committed by GitHub
parent baaa9f5dd2
commit d258402186
59 changed files with 86 additions and 90 deletions
+2 -2
View File
@@ -166,7 +166,7 @@ export default class WidgetUtils {
resolve();
}
}
const timerId = setTimeout(() => {
const timerId = window.setTimeout(() => {
MatrixClientPeg.get().removeListener(ClientEvent.AccountData, onAccountData);
reject(new Error("Timed out waiting for widget ID " + widgetId + " to appear"));
}, WIDGET_WAIT_TIME);
@@ -221,7 +221,7 @@ export default class WidgetUtils {
resolve();
}
}
const timerId = setTimeout(() => {
const timerId = window.setTimeout(() => {
MatrixClientPeg.get().removeListener(RoomStateEvent.Events, onRoomStateEvents);
reject(new Error("Timed out waiting for widget ID " + widgetId + " to appear"));
}, WIDGET_WAIT_TIME);