Skip to content

RangeProps.pushable should have type boolean | number #654

New issue

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

Closed
jkkjonah opened this issue May 29, 2020 · 1 comment · Fixed by #713
Closed

RangeProps.pushable should have type boolean | number #654

jkkjonah opened this issue May 29, 2020 · 1 comment · Fixed by #713

Comments

@jkkjonah
Copy link

Currently RangeProps prop pushable is typed as a boolean only. According to the documentation and source code it does support number values and should be updated accordingly

@schoenwaldnils
Copy link
Contributor

This is my workaround until this is fixed:

const RangeWithFixedPushable = Range as React.ComponentClass<
  Omit<RangeProps, 'pushable'> & { pushable?: number | boolean }
>;

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 a pull request may close this issue.

2 participants