Skip to content

Pivot Grid value config type does not match the PivotAggregation type. #15145

@skrustev

Description

@skrustev

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

  1. Install the attached sample.
  2. In the tsconfig.json add:
"strict": true,
"noImplicitAny": false,
  1. Run the sample
  2. 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

pwrfvl--run.zip

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions