Skip to content

Commit

Permalink
Use React.RefObject for target type (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissantamaria authored May 2, 2022
1 parent 97ae6a2 commit 6dc5d32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/useInViewport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { defaultOptions, defaultConfig, defaultProps } from './constants';
import type { Config, Props, Options } from './types';

const useInViewport = (
target: React.MutableRefObject<HTMLElement>,
target: React.RefObject<HTMLElement>,
options: Options = defaultOptions,
config : Config = defaultConfig,
props: Props = defaultProps,
Expand Down

0 comments on commit 6dc5d32

Please sign in to comment.