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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

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;