Skip to content

Commit 6509560

Browse files
committed
fix: types for react 19
1 parent 2b053ee commit 6509560

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/component/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { MutableRefObject } from 'react'
1+
import type { MutableRefObject, JSX } from 'react'
22
import useBottomScrollListener, { type DebounceOptions } from '../hook'
33

44
export interface BottomScrollListenerProps {

src/hook/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function useBottomScrollListener<T extends HTMLElement>(
3131
debounceOptions?: DebounceOptions
3232
triggerOnNoScroll?: boolean
3333
},
34-
): RefObject<T> {
34+
): RefObject<T | null> {
3535
const { offset, triggerOnNoScroll, debounce, debounceOptions } = useMemo(
3636
() => ({
3737
offset: options?.offset ?? 0,

0 commit comments

Comments
 (0)