make tsc happy

pull/21833/head
Bruno Windels 2020-07-10 18:48:54 +02:00
parent 15ea3a5287
commit ae8d6f5523
1 changed files with 5 additions and 3 deletions

View File

@ -88,8 +88,8 @@ interface IProps {
// TODO: Use re-resizer's NumberSize when it is exposed as the type
interface ResizeDelta {
width: number,
height: number,
width: number;
height: number;
}
type PartialDOMRect = Pick<DOMRect, "left" | "top" | "height">;
@ -98,6 +98,7 @@ interface IState {
notificationState: ListNotificationState;
contextMenuPosition: PartialDOMRect;
isResizing: boolean;
height: number;
}
export default class RoomSublist2 extends React.Component<IProps, IState> {
@ -105,6 +106,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
private sublistRef = createRef<HTMLDivElement>();
private dispatcherRef: string;
private layout: ListLayout;
private heightAtStart: number;
constructor(props: IProps) {
super(props);
@ -684,7 +686,7 @@ export default class RoomSublist2 extends React.Component<IProps, IState> {
content = (
<React.Fragment>
<Resizable
size={{height: this.state.height}}
size={{height: this.state.height} as any}
minHeight={minTilesPx}
maxHeight={maxTilesPx}
onResizeStart={this.onResizeStart}