Skip to content

Commit df4723c

Browse files
Karpengoldalexkarpxbtannerlinsley
authored
fix(types): Move options interface definition to separated interface and export it (TanStack#178)
* move options interface definition to separated interface and export it * fix issue with type peram, rename interface Co-authored-by: Alexander K <[email protected]> Co-authored-by: Tanner Linsley <[email protected]>
1 parent 7541745 commit df4723c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

types/index.d.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ export interface Options<T> {
5252
rangeExtractor?: (range: Range) => number[]
5353
}
5454

55-
declare function useVirtual<T>(
56-
options: Options<T>
57-
): {
55+
declare function useVirtual<T>(options: Options<T>): {
5856
virtualItems: VirtualItem[]
5957
totalSize: number
6058
scrollToOffset: (index: number, options?: ScrollToOffsetOptions) => void

0 commit comments

Comments
 (0)