From 7897ea88cd71ce4ea04cfa95119489a60811cefa Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 23 Nov 2021 14:24:43 +0100 Subject: [PATCH] add some spaces and comments --- src/platform/web/ui/general/LazyListView.ts | 2 +- src/platform/web/ui/general/ListRange.ts | 2 ++ src/platform/web/ui/session/rightpanel/MemberListView.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/platform/web/ui/general/LazyListView.ts b/src/platform/web/ui/general/LazyListView.ts index f8aa80cc..2d8891ce 100644 --- a/src/platform/web/ui/general/LazyListView.ts +++ b/src/platform/web/ui/general/LazyListView.ts @@ -34,7 +34,7 @@ export class LazyListView extends ListView { private scrollContainer?: HTMLElement; constructor( - {itemHeight, overflowMargin = 5, overflowItems = 20,...options}: IOptions, + {itemHeight, overflowMargin = 5, overflowItems = 20, ...options}: IOptions, childCreator: (value: T) => V ) { super(options, childCreator); diff --git a/src/platform/web/ui/general/ListRange.ts b/src/platform/web/ui/general/ListRange.ts index 3604e5f8..2b70a987 100644 --- a/src/platform/web/ui/general/ListRange.ts +++ b/src/platform/web/ui/general/ListRange.ts @@ -67,6 +67,8 @@ interface RemoveResult { removeIdx: number; } +// need to repeat the fields from RemoveResult and AddResult here +// to make the discriminated union work interface RemoveAndAddResult { type: ResultType.RemoveAndAdd; newRange?: ListRange; diff --git a/src/platform/web/ui/session/rightpanel/MemberListView.js b/src/platform/web/ui/session/rightpanel/MemberListView.js index 6096f919..a4a4e78c 100644 --- a/src/platform/web/ui/session/rightpanel/MemberListView.js +++ b/src/platform/web/ui/session/rightpanel/MemberListView.js @@ -17,7 +17,7 @@ limitations under the License. import {LazyListView} from "../../general/LazyListView"; import {MemberTileView} from "./MemberTileView.js"; -export class MemberListView extends LazyListView{ +export class MemberListView extends LazyListView { constructor(vm) { super({ list: vm.memberTileViewModels,