Skip to content

Commit

Permalink
fix tests #12
Browse files Browse the repository at this point in the history
  • Loading branch information
ukorvl committed Oct 21, 2023
1 parent 4d7f675 commit eb1992f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/useOnScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { RefObject, useEffect, useState } from "react";
/**
* UseOnScreen hook settings.
*/
export type UseOnScreenParameters<T extends HTMLElement> = {
export type UseOnScreenParameters<T extends HTMLElement = any> = {
/**
* Target React element ref.
*/
Expand Down Expand Up @@ -46,7 +46,7 @@ export type UseOnScreenParameters<T extends HTMLElement> = {
* @param {UseOnScreenParameters} useOnScreenParameters - Parameters.
* @returns .
*/
export const useOnScreen = <T extends HTMLElement>({
export const useOnScreen = <T extends HTMLElement = any>({
ref,
threshold = 0,
once = false,
Expand Down

0 comments on commit eb1992f

Please sign in to comment.