We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
When I use useWindowScroll,
useWindowScroll
useEffect(() => { scrollTo(0, 0); }, [scrollTo]);
The compiler says "Expected 1 arguments, but got 2.".
Effectively, the index.d.ts is incorrect :
export function useWindowScroll(): [ { x: number | null; y: number | null; }, (args: unknown) => void ];
The text was updated successfully, but these errors were encountered:
For readers in a hurry, I have used this quickfix in my code 👍🏼
declare module "@uidotdev/usehooks" { function useWindowScroll(): [ { x: number | null; y: number | null; }, (row: number, col: number) => void, ]; }
Sorry, something went wrong.
No branches or pull requests
Hi,
When I use
useWindowScroll
,The compiler says "Expected 1 arguments, but got 2.".
Effectively, the index.d.ts is incorrect :
The text was updated successfully, but these errors were encountered: