airbnb / rheostat

Rheostat is a www, mobile, and accessible slider component built with React

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@types/rheostat values

opened this issue · comments

I have created a PR on @types/rheostat to change the types of the value state and props. Currently the types will accept any length of numbered array. number[]. As I understand this will only ever contain 2 values - min and max. Therefore I propose to change this to [number, number].

I have opened this issue to get some feedback on this PR and create some additional context around the issue.

DefinitelyTyped/DefinitelyTyped#43191

Thanks, I'll take a look; closing this here, though, since this package doesn't maintain types.