Skip to content

Commit 84f4d8e

Browse files
committed
types: index is no longer optional for the estimateSize type
Fixes #24
1 parent 06f4ac3 commit 84f4d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export type VirtualItem = {
1818
declare function useVirtual<T>(options: {
1919
size: number
2020
parentRef: React.RefObject<T>
21-
estimateSize?: (index?: number) => number
21+
estimateSize?: (index: number) => number
2222
overscan?: number
2323
horizontal?: boolean
2424
scrollToFn?: (

0 commit comments

Comments
 (0)