material-ui: Tighten type definition

If Table.onRowSelection returns a string, it should always be 'all'
This commit is contained in:
Jonas Schürmann 2017-09-13 11:29:11 +02:00 committed by GitHub
parent 046478a6dd
commit 08d64685bc

View File

@ -1724,7 +1724,7 @@ declare namespace __MaterialUI {
onCellHoverExit?(row: number, column: number): void;
onRowHover?(row: number): void;
onRowHoverExit?(row: number): void;
onRowSelection?(selectedRows: number[] | string): void;
onRowSelection?(selectedRows: number[] | 'all'): void;
selectable?: boolean;
style?: React.CSSProperties;
wrapperStyle?: React.CSSProperties;