You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
Description
The
PivotAggregation
type is defined as(members: any[], data: any[]) => any;
while theIPivotAggregator
propertyaggregator
is defined as(members: any[], data?: any[]) => any;
, which does not match thePivotAggregation
type.Steps to reproduce
tsconfig.json
add:Result
The following errors are thrown:
Expected result
There should be no errors.
Attachments
pwrfvl--run.zip
The text was updated successfully, but these errors were encountered: