11import React from 'react' ;
22import Slider , { createSliderWithTooltip , Range , Handle } from '../src' ;
3- import { SliderProps } from '../src /Slider' ;
4- import { RangeProps } from '../src /Range' ;
5- import { HandleProps } from '../src /Handle' ;
6- import { ComponentWrapperProps } from '../src /createSliderWithTooltip' ;
3+ import type { SliderProps } from '@ /Slider' ;
4+ import type { RangeProps } from '@ /Range' ;
5+ import type { HandleProps } from '@ /Handle' ;
6+ import type { ComponentWrapperProps } from '@ /createSliderWithTooltip' ;
77
88describe ( 'Slider.Typescript' , ( ) => {
99 const sliderProps : SliderProps = {
@@ -28,7 +28,7 @@ describe('Slider.Typescript', () => {
2828 tabIndex : 1 ,
2929 ariaLabelForHandle : 'ariaLabelForHandle' ,
3030 ariaLabelledByForHandle : 'ariaLabelledByForHandle' ,
31- ariaValueTextFormatterForHandle : ' ariaValueTextFormatterForHandle' ,
31+ ariaValueTextFormatterForHandle : ( i : number ) => ` ariaValueTextFormatterForHandle${ i } ` ,
3232 startPoint : 1 ,
3333 handle ( props ) {
3434 return < span { ...props } /> ;
@@ -78,7 +78,7 @@ describe('Slider.Typescript', () => {
7878 handleStyle : [ { } ] ,
7979 ariaLabelGroupForHandles : 'ariaLabelGroupForHandles' ,
8080 ariaLabelledByGroupForHandles : [ 'ariaLabelledByGroupForHandles' ] ,
81- ariaValueTextFormatterGroupForHandles : [ ' ariaValueTextFormatterGroupForHandles' ] ,
81+ ariaValueTextFormatterGroupForHandles : [ ( i : number ) => ` ariaValueTextFormatterGroupForHandles${ i } ` ] ,
8282 handle ( props ) {
8383 return < span { ...props } /> ;
8484 } ,
0 commit comments