We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7bf0c2 commit 08920a8Copy full SHA for 08920a8
types/index.d.ts
@@ -12,7 +12,7 @@ export type VirtualItem = {
12
start: number
13
end: number
14
size: number
15
- measureRef: React.RefObject<any>
+ measureRef: (el: HTMLElement | null) => void
16
}
17
18
declare function useVirtual<T>(options: {
@@ -35,6 +35,8 @@ declare function useVirtual<T>(options: {
35
[key: string]: any
36
37
keyExtractor?: (index: number) => number | string
38
+ onScrollElement?: React.RefObject<HTMLElement>
39
+ scrollOffsetFn?: () => number
40
}): {
41
virtualItems: VirtualItem[]
42
totalSize: number
0 commit comments