1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Fix type mistake introduced by #18428 (#19057)

This commit is contained in:
Stephan Spengler
2023-01-06 16:33:36 +01:00
committed by GitHub
parent eeb5c58238
commit 8495dbf6a5

View File

@@ -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<ListViewColumn>[];
items?: string[] | ListViewItem[];
items?: ListViewItem[];
selectedCell?: RowColumn;
canSelect?: boolean;
onHighlight?: (item: number, column: number) => void;