Skip to content

Commit

Permalink
fix(types): Move options interface definition to separated interface …
Browse files Browse the repository at this point in the history
…and export it (#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]>
  • Loading branch information
3 people authored Jan 20, 2022
1 parent 7541745 commit df4723c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ export interface Options<T> {
rangeExtractor?: (range: Range) => number[]
}

declare function useVirtual<T>(
options: Options<T>
): {
declare function useVirtual<T>(options: Options<T>): {
virtualItems: VirtualItem[]
totalSize: number
scrollToOffset: (index: number, options?: ScrollToOffsetOptions) => void
Expand Down

1 comment on commit df4723c

@vercel
Copy link

@vercel vercel bot commented on df4723c Jan 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.