From 8495dbf6a5d7441911f392010aebe3d308b2a8fc Mon Sep 17 00:00:00 2001 From: Stephan Spengler Date: Fri, 6 Jan 2023 16:33:36 +0100 Subject: [PATCH] Fix type mistake introduced by #18428 (#19057) --- distribution/openrct2.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index c69d302b73..e1ccbd7fb6 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -3573,14 +3573,16 @@ declare global { column: number; } + type ListViewItem = ListViewItemSeperator | string[] | string; + interface ListViewWidget extends WidgetBase { type: "listview"; scrollbars: ScrollbarType; isStriped: boolean; showColumnHeaders: boolean; columns: ListViewColumn[]; - items: string[]; - selectedCell: RowColumn; + items: ListViewItem[]; + selectedCell: RowColumn | null; readonly highlightedCell: RowColumn; canSelect: boolean; } @@ -3702,8 +3704,6 @@ declare global { text?: string; } - type ListViewItem = ListViewItemSeperator | string[]; - interface RowColumn { row: number; column: number; @@ -3715,7 +3715,7 @@ declare global { isStriped?: boolean; showColumnHeaders?: boolean; columns?: Partial[]; - items?: string[] | ListViewItem[]; + items?: ListViewItem[]; selectedCell?: RowColumn; canSelect?: boolean; onHighlight?: (item: number, column: number) => void;