Skip to content

Commit

Permalink
fix: GroupingGetterFunction should be allowed to return arbitrary val…
Browse files Browse the repository at this point in the history
…ue (#1296)

* fix: GroupingGetterFunction should return value Generic Type
  • Loading branch information
ghiscoding authored Dec 29, 2023
1 parent a15405b commit 3807116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/interfaces/grouping.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { GroupingComparerItem } from './groupingComparerItem.interface';
import type { GroupingFormatterItem } from './groupingFormatterItem.interface';
import type { SortDirectionNumber } from '../enums/sortDirectionNumber.enum';

export type GroupingGetterFunction<T = any> = (value: T) => string;
export type GroupingGetterFunction<T = any> = (value: T) => any;

export interface Grouping<T = any> {
/** Grouping Aggregators array */
Expand Down

0 comments on commit 3807116

Please sign in to comment.