-
Notifications
You must be signed in to change notification settings - Fork 105
Labels
Description
Describe the bug
isAggregatedis missing in CellType interface
export interface CellType {
column: ColumnType;
row: RowType;
value: string | undefined;
getCellProps: (props?: any) => any;
[key: string]: any;
}
groupByValis missing in RowType interface
export interface RowType {
allCells: Record<string, any>[];
canExpand: boolean;
cells: Record<string, any>[];
depth: number;
getRowProps: (props?: any) => any;
getToggleRowExpandedProps: (userProps?: any) => any;
getToggleRowSelectedProps: (userProps?: any) => any;
id: string;
index: number;
isExpanded: boolean;
isSelected: boolean;
isSomeSelected: boolean;
original: Record<string, any>;
originalSubRows: Record<string, any>[];
subRows: Record<string, any>[];
toggleRowExpanded: (isExpanded?: boolean) => void;
toggleRowSelected: (isSelected?: boolean) => void;
values: Record<string, any>;
[key: string]: any;
}
we have [key:string]: any, but mandatory typing is causing a type error
Property 'isAggregated' is missing in type 'CellType' but required in type '{ isAggregated: boolean; row: { id: string; original: AssetTableType; groupByVal: string; subRows: unknown[]; values: Record<AssetsSectionColumnAccessor, unknown>; }; value: string;
Isolated Example
No response
Reproduction steps
...
Expected Behaviour
can use isAggregated and groupByVal without making them optional
Screenshots or Videos
No response
UI5 Web Components for React Version
2.15.1
UI5 Web Components Version
2.15.1
Browser
Edge
Operating System
No response
Additional Context
No response
Relevant log output
Organization
No response
Declaration
- I’m not disclosing any internal or sensitive information.