Skip to content

Commit

Permalink
Export getHeaders and getColumns
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Mar 31, 2020
1 parent 5f4ce2e commit 3b6e00b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ declare module "mui-table" {
cellSelected?: string;
};
}

export function getHeaders(
columns: ColumnDef[]
): ColumnDef & { colSpan?: number; rowSpan?: number }[][];

export function getColumns(columns: ColumnDef[]): ColumnDef[];

export default class MuiTable<T = any> extends React.Component<
MuiTableProps<T>
> {}
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,4 +400,5 @@ MuiTable.propTypes = {
bodyProps: PropTypes.object
};

export { getHeaders, getColumns };
export default MuiTable;

0 comments on commit 3b6e00b

Please sign in to comment.