@types/react-slider
Advanced tools
Comparing version 1.1.2 to 1.3.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for react-slider 1.1 | ||
// Type definitions for react-slider 1.3 | ||
// Project: https://github.com/zillow/react-slider | ||
@@ -29,2 +29,10 @@ // Definitions by: Jason Unger <https://github.com/jsonunger> | ||
/** | ||
* aria-labelledby for screen-readers to apply to the thumbs. | ||
* Used when slider rendered with separate label. | ||
* Use an array for more than one thumb. | ||
* The length of the array must match the number of thumbs in the value array. | ||
*/ | ||
ariaLabelledby?: T extends number ? string : ReadonlyArray<string>; | ||
/** | ||
* `aria-valuetext` for screen-readers. | ||
@@ -122,5 +130,5 @@ * | ||
* | ||
* - `value` - the result value, or values if the slider has multiple thumbs | ||
* - `value` - the result value, or values if the slider has multiple thumbs and the thumb index | ||
*/ | ||
onAfterChange?: (value: T) => void; | ||
onAfterChange?: (value: T, index: number) => void; | ||
@@ -131,5 +139,5 @@ /** | ||
* | ||
* - `value` - the initial value, or values if the slider has multiple thumbs | ||
* - `value` - the initial value, or values if the slider has multiple thumbs and the thumb index | ||
*/ | ||
onBeforeChange?: (value: T) => void; | ||
onBeforeChange?: (value: T, index: number) => void; | ||
@@ -139,5 +147,5 @@ /** | ||
* | ||
* - `value` - the new value, or values if the slider has multiple thumbs | ||
* - `value` - the new value, or values if the slider has multiple thumbs and the thumb index | ||
*/ | ||
onChange?: (value: T) => void; | ||
onChange?: (value: T, index: number) => void; | ||
@@ -144,0 +152,0 @@ /** |
{ | ||
"name": "@types/react-slider", | ||
"version": "1.1.2", | ||
"version": "1.3.0", | ||
"description": "TypeScript definitions for react-slider", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-slider", | ||
"license": "MIT", | ||
@@ -39,4 +40,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "ad07d6ebc7e0768a37a20fbdea511dd7c468cbff4989d57e281cb2052f5213f6", | ||
"typesPublisherContentHash": "dede6242a03e2757984c948d8a39d1959b2dfd61d0ad5bda7caa0c2bbbcb332a", | ||
"typeScriptVersion": "3.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 20 Apr 2021 08:01:20 GMT | ||
* Last updated: Mon, 07 Jun 2021 09:01:24 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11861
255
0