Skip to content

Commit

Permalink
fix: correct type definition in useScrollToBottom hook
Browse files Browse the repository at this point in the history
  • Loading branch information
athrael-soju committed Dec 19, 2024
1 parent b688765 commit 2d8f356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/use-scroll-to-bottom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useEffect, useRef, type RefObject } from 'react';

export function useScrollToBottom<T extends HTMLElement>(): [
RefObject<T>,
RefObject<T>,
RefObject<T>
] {
const containerRef = useRef<T>(null);
const endRef = useRef<T>(null);
Expand Down

0 comments on commit 2d8f356

Please sign in to comment.