Skip to content

Conversation

BartoszKlonowski
Copy link
Member

This pull request fixes #321
It introduces new type that is used as a type of optional ref value.

Root cause of the type error was that when Slider is used for non-web, the props given as rest (see the repro example) are treated as ref object, which does not meet the type specified for web implementation.
To keep the web implementation safe within this fix, new type keeps it along with the type deduced for props object ref.

@BartoszKlonowski BartoszKlonowski merged commit 68a9de1 into main Apr 20, 2022
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.

Slider type error
1 participant