mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
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:
committed by
Wesley Wigham
parent
cfce6f295f
commit
1c2daecf2d
+9
-2
@@ -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,
|
||||
|
||||
Vendored
+1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user