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,