Skip to content

fix(pivot-grid): align IPivotAggregator aggregator type with PivotAggregation#17271

Open
Hristo313 wants to merge 1 commit into
masterfrom
hhristov/fix-pivot-grid-aggregator
Open

fix(pivot-grid): align IPivotAggregator aggregator type with PivotAggregation#17271
Hristo313 wants to merge 1 commit into
masterfrom
hhristov/fix-pivot-grid-aggregator

Conversation

@Hristo313
Copy link
Copy Markdown
Contributor

Closes #15145

Description

Aligns the IPivotAggregator.aggregator type with PivotAggregation to fix an inconsistency in the public Pivot Grid typings. This resolves strict TypeScript errors when assigning custom aggregation functions in pivot value configurations. The change is type-only and does not affect runtime behavior.

Motivation / Context

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Test Configuration:

  • Angular version:
  • Browser(s):
  • OS:

Screenshots / Recordings

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

@Hristo313 Hristo313 requested a review from skrustev May 11, 2026 12:13
Copilot AI review requested due to automatic review settings May 11, 2026 12:13
@Hristo313 Hristo313 added ❌ status: awaiting-test PRs awaiting manual verification grid: pivot labels May 11, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a public typing inconsistency in the Pivot Grid API by aligning IPivotAggregator.aggregator with the existing PivotAggregation function type, resolving strict TypeScript assignment errors for custom aggregators (as reported in #15145) without changing runtime behavior.

Changes:

  • Updated IPivotAggregator.aggregator to use the PivotAggregation type alias (instead of an inline function type with an optional data parameter).

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

Labels

grid: pivot ❌ status: awaiting-test PRs awaiting manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants