-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug🆕 status: newgrid: pivotseverity: low
Description
Description
The PivotAggregation
type is defined as (members: any[], data: any[]) => any;
while the IPivotAggregator
property aggregator
is defined as (members: any[], data?: any[]) => any;
, which does not match the PivotAggregation
type.
- igniteui-angular version: any
- browser: any
Steps to reproduce
- Install the attached sample.
- In the
tsconfig.json
add:
"strict": true,
"noImplicitAny": false,
- Run the sample
- Observe the errors
Result
The following errors are thrown:
Error: src/app/pivot-grid/pivot-features/pivot-features.component.ts:115:21 - error TS2322: Type 'PivotAggregation' is not assignable to type '(members: any[], data?: any[] | undefined) => any'.
115 aggregator: IgxTotalSaleAggregate.totalMax,
~~~~~~~~~~
node_modules/igniteui-angular/lib/grids/pivot-grid/pivot-grid.interface.d.ts:70:5
70 aggregator?: (members: any[], data?: any[]) => any;
~~~~~~~~~~
The expected type comes from property 'aggregator' which is declared here on type 'IPivotAggregator'
Expected result
There should be no errors.
Attachments
Metadata
Metadata
Labels
🐛 bugAny issue that describes a bugAny issue that describes a bug🆕 status: newgrid: pivotseverity: low