Skip to content

Commit 6e3d549

Browse files
authored
fix(AnalyticalTableColumnDefinition): Add props typing to ComponenType (#409)
1 parent 2a95fe9 commit 6e3d549

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/main/src/interfaces/AnalyticalTableColumnDefinition.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ export interface AnalyticalTableColumnDefinition {
1010
*/
1111
id?: string;
1212

13-
Header?: string | ComponentType;
14-
Cell?: string | ComponentType;
13+
Header?: string | ComponentType<any>;
14+
Cell?: string | ComponentType<any>;
1515
width?: number;
1616
minWidth?: number;
1717
maxWidth?: number;
1818

1919
// useFilters
20-
Filter?: string | ComponentType;
20+
Filter?: string | ComponentType<any>;
2121
disableFilters?: boolean;
2222
defaultCanFilter?: boolean;
2323
filter?: string | Function;
2424

2525
// useGroupBy
26-
Aggregated?: string | ComponentType;
26+
Aggregated?: string | ComponentType<any>;
2727
aggregate?: string | ((leafValues, aggregatedValues) => any);
2828
aggregateValue?: string | ((values, row, column) => any);
2929
disableGroupBy?: boolean;

0 commit comments

Comments
 (0)