Skip to content

Commit

Permalink
Merge pull request #2146 from sthenault/fixTS2304
Browse files Browse the repository at this point in the history
Fix typescript error TS2304: Cannot find name 'RowData'
  • Loading branch information
mbrn authored Jul 10, 2020
2 parents e29d02a + 9f1e3cf commit b06fc24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface MaterialTableProps<RowData extends object> {
icons?: Icons;
isLoading?: boolean;
title?: string | React.ReactElement<any>;
options?: Options;
options?: Options<RowData>;
parentChildData?: (row: RowData, rows: RowData[]) => RowData | undefined;
localization?: Localization;
onChangeRowsPerPage?: (pageSize: number) => void;
Expand Down Expand Up @@ -274,7 +274,7 @@ export interface Icons {
Retry?: React.ForwardRefExoticComponent<React.RefAttributes<SVGSVGElement>>;
}

export interface Options {
export interface Options<RowData extends object> {
actionsCellStyle?: React.CSSProperties;
detailPanelColumnStyle?: React.CSSProperties;
editCellStyle?: React.CSSProperties;
Expand Down

0 comments on commit b06fc24

Please sign in to comment.