Fix up some more type defs

This commit is contained in:
Michael Telatynski 2021-06-17 14:49:27 +01:00
parent 02e72d8b04
commit 3e38d92fa4
7 changed files with 11 additions and 12 deletions

View file

@ -176,7 +176,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
if (!client || !roomId || !room) throw new Error("Not in a room or not attached to a client");
const results: MatrixEvent[] = [];
const state = room.currentState.events.get(eventType);
const state: Map<string, MatrixEvent> = room.currentState.events.get(eventType);
if (state) {
if (stateKey === "" || !!stateKey) {
const forKey = state.get(stateKey);