Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skrustev opened this issue Dec 5, 2024 · 0 comments
Open
Assignees

Comments

@skrustev
Copy link
Member

skrustev commented Dec 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants