Skip to content

Pushable with Typescript #755

Closed
Closed

Description

@cxii112

I tried to use pushable range. When I tried to set pushable to number I get:

Type "number" is not assignable to parameter of type "boolean | undefined"

Same thing when I tried use RangeProps. So I changed pushable?: boolean; in Range.d.ts to pushable?: boolean | number; and it works fine.
Am I doing right (I'm new to development, sorry)?

I'm using:
Typescript 4.1.2
React 17.0.1
rc-slider 9.7.1

Activity

  1. TomlDev commented on Apr 27, 2021

    @TomlDev

    Bump 👍🏽

  2. akash10agarwal commented on Feb 7, 2022

    @akash10agarwal

    @cxii112 @TomlDev pls point to the ver which contains this fix?

  3. cxii112 commented on Feb 7, 2022

    @cxii112
    Author

    @akash10agarwal i have tested on ^9.7.5 rn. it works fine.

  4. akash10agarwal commented on Feb 7, 2022

    @akash10agarwal

    thanks worked. still seems to have lots of open issues as can be seen here in the Issues tab for this Github prj. is there a stable ver?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions