Skip to content

fix: useWindowScroll wrong return type - #332

Open
mohammedhamza1 wants to merge 1 commit into
uidotdev:mainfrom
mohammedhamza1:fix/usewindowscroll-wrong-type
Open

mohammedhamza1 wants to merge 1 commit into
uidotdev:mainfrom
mohammedhamza1:fix/usewindowscroll-wrong-type

Conversation

@mohammedhamza1

Copy link
Copy Markdown

fixes #296

Comment thread index.d.ts
x: number | null;
y: number | null;
},
(args: unknown) => void

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you changed type of args from args : unknown to (x?: number | null, y?: number | null) ??

This branch was successfully deployed

1 active deployment
Preview 0b8424e9 Deployed Mar 17, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect type definition in useWindowScroll

2 participants