From 15ea3a528796d6e50271095d8754b7f6fcb25bc2 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 10 Jul 2020 18:42:51 +0200 Subject: [PATCH] add types --- src/components/views/rooms/RoomSublist2.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/views/rooms/RoomSublist2.tsx b/src/components/views/rooms/RoomSublist2.tsx index 5a7bfa3990..a059d146e8 100644 --- a/src/components/views/rooms/RoomSublist2.tsx +++ b/src/components/views/rooms/RoomSublist2.tsx @@ -214,8 +214,13 @@ export default class RoomSublist2 extends React.Component { this.setState({isResizing: true}); }; - private onResizeStop = (e, direction, ref, d) => { - const newHeight = this.heightAtStart + d.height; + private onResizeStop = ( + e: MouseEvent | TouchEvent, + travelDirection: Direction, + refToElement: HTMLDivElement, + delta: ResizeDelta, + ) => { + const newHeight = this.heightAtStart + delta.height; this.applyHeightChange(newHeight); this.setState({isResizing: false, height: newHeight}); };