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
{{ message }}
Repository navigation
Grids: type columnsController file-local members and public API - #35433
Adds TypeScript types to the DataGrid and TreeList columns controller: its file-local members, state fields and public API now carry real types
How
Typed the private, protected and public members of m_columns_controller.ts (return types, parameters and state fields), moved the shared types into types.ts, and updated the consumer files that the tightened public signatures cascade into
The reason will be displayed to describe this comment to others. Learn more.
check, please, I think it can be replaced with this._columns.some()
when callback inside each returns false, the cycle breaks, also I think better return true here on line 691, cause it is not quite clear why callback always return negative value
The explicit return type excludes a valid runtime result. Column.calculateFilterExpression is declared to return string | Array<any> | Function, and existing search tests use an empty-string result (grid_core/search/__tests__/utils.test.ts:120); this wrapper returns that string unchanged, despite now advertising only DataFilter. The @ts-expect-error below masks the mismatch for callers. Please widen/normalize both ColumnFilterExpression and createFilterExpression so the signature reflects every value that can escape.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds TypeScript types to the DataGrid and TreeList columns controller: its file-local members, state fields and public API now carry real types
How
Typed the private, protected and public members of m_columns_controller.ts (return types, parameters and state fields), moved the shared types into types.ts, and updated the consumer files that the tightened public signatures cascade into