Skip to content

Commit 67cdcdd

Browse files
fix(AnalyticalTable - TypeScript): remove legacy overloads in AnalyticalTableColumnDefinition (#7827)
1 parent ba6dd6b commit 67cdcdd

File tree

1 file changed

+6
-6
lines changed
  • packages/main/src/components/AnalyticalTable/types

1 file changed

+6
-6
lines changed

packages/main/src/components/AnalyticalTable/types/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export interface AnalyticalTableColumnDefinition {
413413
/**
414414
* Can either be string or a React component that will be rendered as column header
415415
*/
416-
Header?: string | ComponentType<any> | ((props?: any) => ReactNode);
416+
Header?: string | ComponentType<any>;
417417
/**
418418
* Defines the `aria-label` for the whole column read by screen readers.
419419
*
@@ -433,15 +433,15 @@ export interface AnalyticalTableColumnDefinition {
433433
* __Note:__ Using a custom component __can impact performance__!
434434
* If you pass a component, __memoizing it is strongly recommended__, especially for complex components or large datasets.
435435
*/
436-
Cell?: string | ComponentType<CellInstance> | ((props?: CellInstance) => ReactNode);
436+
Cell?: string | ComponentType<CellInstance>;
437437
/**
438438
* Defines a function that receives an object as a parameter, including the cell and table instance, and should return the `aria-label` of the current cell.
439439
*
440440
* __Note:__ Use this property if there is no textual content available through the dataset (e.g. no `accessor` field available), or if you want to provide additional context when navigating to the respective cell for screen readers.
441441
*
442442
* __Note:__ To retrieve the internal `aria-label`, utilize the `cell.cellLabel` property.
443443
*/
444-
cellLabel?: (param?: CellLabelParam) => string;
444+
cellLabel?: (param: CellLabelParam) => string;
445445
/**
446446
* Defines the column width. If not set the table will distribute all columns without a width evenly.
447447
*
@@ -475,7 +475,7 @@ export interface AnalyticalTableColumnDefinition {
475475
/**
476476
* Filter Component to be rendered in the Header.
477477
*/
478-
Filter?: ComponentType<FilterProps> | ((props: FilterProps) => ReactNode);
478+
Filter?: ComponentType<FilterProps>;
479479
/**
480480
* Disable filters for this column.
481481
*/
@@ -507,7 +507,7 @@ export interface AnalyticalTableColumnDefinition {
507507
/**
508508
* Component to render for aggregated cells.
509509
*/
510-
Aggregated?: string | ComponentType<any> | ((props?: any) => ReactNode);
510+
Aggregated?: string | ComponentType<any>;
511511
/**
512512
* Aggregation function or string.<br />Supported String Values: <ul><li>`min`</li><li>`max`</li><li>`median`</li><li>`count`</li></ul>
513513
*/
@@ -601,7 +601,7 @@ export interface AnalyticalTableColumnDefinition {
601601
/**
602602
* Custom pop-in header renderer. If set, the table will call that component for every column that is "popped-in" and pass the table instance as prop.
603603
*/
604-
PopInHeader?: string | ComponentType<any> | ((props?: any) => ReactNode);
604+
PopInHeader?: string | ComponentType<any>;
605605
/**
606606
* Defines the display of `AnalyticalTable` pop-ins.
607607
*

0 commit comments

Comments
 (0)