diff --git a/packages/react/src/slider/root/useSliderRoot.ts b/packages/react/src/slider/root/useSliderRoot.ts index 2f816e0f21..f2c583c90a 100644 --- a/packages/react/src/slider/root/useSliderRoot.ts +++ b/packages/react/src/slider/root/useSliderRoot.ts @@ -203,7 +203,7 @@ export function useSliderRoot(parameters: useSliderRoot.Parameters): useSliderRo const setValue = useEventCallback( ( - newValue: number | readonly number[], + newValue: number | number[], newPercentageValues: readonly number[], thumbIndex: number, event: Event, @@ -492,11 +492,7 @@ export namespace useSliderRoot { * You can pull out the new value by accessing `event.target.value` (any). * @param {number} activeThumbIndex Index of the currently moved thumb. */ - onValueChange: ( - value: number | readonly number[], - event: Event, - activeThumbIndex: number, - ) => void; + onValueChange: (value: number | number[], event: Event, activeThumbIndex: number) => void; /** * Callback function that is fired when the `pointerup` is triggered. * @@ -558,7 +554,7 @@ export namespace useSliderRoot { * Callback to invoke change handlers after internal value state is updated. */ setValue: ( - newValue: number | readonly number[], + newValue: number | number[], newPercentageValue: readonly number[], activeThumb: number, event: Event,