Skip to content

Commit

Permalink
fix(useScroll): types for ref include null and undefined (vitest-dev#828
Browse files Browse the repository at this point in the history
)
  • Loading branch information
josephfh committed Oct 16, 2021
1 parent b9e8003 commit 091f7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useScroll/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface UseScrollOptions {
*/

export function useScroll(
element: MaybeRef<HTMLElement | SVGElement | Window | Document>,
element: MaybeRef<HTMLElement | SVGElement | Window | Document | null | undefined>,
options: UseScrollOptions = {},
) {
const {
Expand Down

0 comments on commit 091f7d0

Please sign in to comment.