[@types/react-virtualized] Use correct types for two props (#35756)

* [@types/react-virtualized] Use correct type for headerRowRenderer function

* [@types/react-virtualized] Use correct types for onRowsRendered params
This commit is contained in:
benbryant0 2019-05-28 21:11:42 +02:00 committed by Sheetal Nandi
parent 5a480588a3
commit a6ec3aac93

View File

@ -404,7 +404,7 @@ export class Table extends PureComponent<TableProps> {
(params: RowMouseEventHandlerParams) => void
>;
onRowsRendered: Requireable<
(params: RowMouseEventHandlerParams) => void
(params: IndexRange & OverscanIndexRange) => void
>;
onScroll: Requireable<(params: ScrollEventData) => void>;
overscanRowCount: Validator<number>;
@ -441,7 +441,7 @@ export class Table extends PureComponent<TableProps> {
onScroll: () => null;
overscanRowCount: 10;
rowRenderer: TableRowRenderer;
headerRowRenderer: TableHeaderRenderer;
headerRowRenderer: TableHeaderRowRenderer;
rowStyle: {};
scrollToAlignment: "auto";
scrollToIndex: -1;