Skip to content

Wrong type definitions for aria-valuetext formatters #726

@tomasfabry

Description

@tomasfabry

For the slider there is the following type definition in the SliderProps interface:

ariaValueTextFormatterForHandle?: string;

According to the documentation, there should be something like this:

ariaValueTextFormatterForHandle?: (value: number) => string;

Similarly, for the range slider, there is the following type definition in the RangeProps interface:

ariaValueTextFormatterGroupForHandles?: string | Array<string>;

But there should be:

ariaValueTextFormatterGroupForHandles?: Array<(value: number) => string>

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