diff --git a/packages/main/src/components/AnalyticalTable/types/index.ts b/packages/main/src/components/AnalyticalTable/types/index.ts index 376929b57a8..02b7e35b487 100644 --- a/packages/main/src/components/AnalyticalTable/types/index.ts +++ b/packages/main/src/components/AnalyticalTable/types/index.ts @@ -413,7 +413,7 @@ export interface AnalyticalTableColumnDefinition { /** * Can either be string or a React component that will be rendered as column header */ - Header?: string | ComponentType | ((props?: any) => ReactNode); + Header?: string | ComponentType; /** * Defines the `aria-label` for the whole column read by screen readers. * @@ -433,7 +433,7 @@ export interface AnalyticalTableColumnDefinition { * __Note:__ Using a custom component __can impact performance__! * If you pass a component, __memoizing it is strongly recommended__, especially for complex components or large datasets. */ - Cell?: string | ComponentType | ((props?: CellInstance) => ReactNode); + Cell?: string | ComponentType; /** * 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. * @@ -441,7 +441,7 @@ export interface AnalyticalTableColumnDefinition { * * __Note:__ To retrieve the internal `aria-label`, utilize the `cell.cellLabel` property. */ - cellLabel?: (param?: CellLabelParam) => string; + cellLabel?: (param: CellLabelParam) => string; /** * Defines the column width. If not set the table will distribute all columns without a width evenly. * @@ -475,7 +475,7 @@ export interface AnalyticalTableColumnDefinition { /** * Filter Component to be rendered in the Header. */ - Filter?: ComponentType | ((props: FilterProps) => ReactNode); + Filter?: ComponentType; /** * Disable filters for this column. */ @@ -507,7 +507,7 @@ export interface AnalyticalTableColumnDefinition { /** * Component to render for aggregated cells. */ - Aggregated?: string | ComponentType | ((props?: any) => ReactNode); + Aggregated?: string | ComponentType; /** * Aggregation function or string.
Supported String Values:
  • `min`
  • `max`
  • `median`
  • `count`
*/ @@ -601,7 +601,7 @@ export interface AnalyticalTableColumnDefinition { /** * 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. */ - PopInHeader?: string | ComponentType | ((props?: any) => ReactNode); + PopInHeader?: string | ComponentType; /** * Defines the display of `AnalyticalTable` pop-ins. *