react-virtualized: add missing properties to GridCellRangeProps, fix incorrect type for overscanIndicesGetter in Grid.defaultProps (#20412)

* react-virtualized: added missing properties to GridCellRangeProps

* react-virtualized: corrected type of overscanIndicesGetter in Grid.defaultProps

* react-virtualized: added name to "Definitions by" section
This commit is contained in:
Szőke Szabolcs
2017-10-13 15:18:51 -07:00
committed by Wesley Wigham
parent cfce6f295f
commit 1c2daecf2d
2 changed files with 10 additions and 2 deletions
+9 -2
View File
@@ -126,7 +126,14 @@ export type GridCellRangeProps = {
rowStartIndex: number,
rowStopIndex: number,
scrollLeft: number,
scrollTop: number
scrollTop: number,
deferredMeasurementCache: CellMeasurerCache,
horizontalOffsetAdjustment: number,
parent: Grid | List | Table,
styleCache: Map<React.CSSProperties>,
verticalOffsetAdjustment: number,
visibleColumnIndices: VisibleCellRange,
visibleRowIndices: VisibleCellRange
}
export type GridCellRangeRenderer = (params: GridCellRangeProps) => React.ReactNode[];
@@ -375,7 +382,7 @@ export class Grid extends PureComponent<GridProps, GridState> {
onScroll: () => null,
onSectionRendered: () => null,
overscanColumnCount: 0,
overscanIndicesGetter: OverscanIndicesGetterParams,
overscanIndicesGetter: OverscanIndicesGetter,
overscanRowCount: 10,
role: 'grid',
scrollingResetTimeInterval: typeof DEFAULT_SCROLLING_RESET_TIME_INTERVAL,
+1
View File
@@ -3,6 +3,7 @@
// Definitions by: Kalle Ott <https://github.com/kaoDev>
// John Gunther <https://github.com/guntherjh>
// Konstantin Nesterov <https://github.com/wasd171>
// Szőke Szabolcs <https://github.com/szabolcsx>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3