From 9aff56afcc958cfc7f14052617fe33ec3cd89845 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 21 Jul 2020 10:15:05 +0100 Subject: [PATCH] add more types Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/stores/RoomViewStore.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stores/RoomViewStore.tsx b/src/stores/RoomViewStore.tsx index e634433933..cb4ed39a1d 100644 --- a/src/stores/RoomViewStore.tsx +++ b/src/stores/RoomViewStore.tsx @@ -164,7 +164,7 @@ class RoomViewStore extends Store { } } - private async viewRoom(payload) { + private async viewRoom(payload: ActionPayload) { if (payload.room_id) { const newState = { roomId: payload.room_id, @@ -246,7 +246,7 @@ class RoomViewStore extends Store { } } - private viewRoomError(payload) { + private viewRoomError(payload: ActionPayload) { this.setState({ roomId: payload.room_id, roomAlias: payload.room_alias, @@ -255,7 +255,7 @@ class RoomViewStore extends Store { }); } - private joinRoom(payload) { + private joinRoom(payload: ActionPayload) { this.setState({ joining: true, }); @@ -290,7 +290,7 @@ class RoomViewStore extends Store { }); } - private joinRoomError(payload) { + private joinRoomError(payload: ActionPayload) { this.setState({ joining: false, joinError: payload.err,