Skip to content

Pushable with Typescript #755

Closed
Closed
@cxii112

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

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