airbnb/rheostat

@types/rheostat values

Opened this issue · 1 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.