Skip to content

fix: corrects the scrollableTarget typing to match what is expected#416

Closed
leighmetzroth wants to merge 1 commit intoankeetmaini:masterfrom
leighmetzroth:scrollableTarget-typing-fix
Closed

fix: corrects the scrollableTarget typing to match what is expected#416
leighmetzroth wants to merge 1 commit intoankeetmaini:masterfrom
leighmetzroth:scrollableTarget-typing-fix

Conversation

@leighmetzroth
Copy link
Copy Markdown

I have updated the TypeScript typing for the scrollableTarget to match what is expected (HTMLElement | string).

Fixes issue: #378

@iamdarshshah
Copy link
Copy Markdown
Collaborator

Thanks for catching this, ReactNode was definitely the wrong type here. The v7.0.0 rewrite already corrects this to HTMLElement | string | null (with null included to handle unresolved refs gracefully), so this is superseded.

If you'd like to keep contributing, check out the open issues or file a new one if you find something worth fixing. Looking forward to more contributions from you, let's make this the best infinite scroll library out there!

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.

2 participants