@@ -112,13 +112,13 @@ export interface useCarouselExposes {
112112 /**
113113 * Ref to the main carousel container DOM element.
114114 */
115- carouselRef : React . RefObject < HTMLDivElement > ;
115+ carouselRef : React . RefObject < HTMLDivElement | null > ;
116116 /**
117117 * Adds a reference to a slide element.
118- * @param item The slide element to add.
118+ * @param el The slide element to add.
119119 * @returns void
120120 */
121- addSlideRef : ( item : React . ReactNode ) => void ;
121+ addSlideRef : ( el : HTMLDivElement | null ) => void ;
122122 /**
123123 * Scrolls the carousel to a specific slide index.
124124 * @param index The index of the slide to scroll to.
@@ -130,32 +130,32 @@ export interface useCarouselExposes {
130130 * Handles pointer release events.
131131 * @returns void
132132 */
133- handlePointerUp : ( event : React . PointerEvent ) => void ;
133+ handlePointerUp : ( event : PointerEvent ) => void ;
134134 /**
135135 * Handles pointer down events.
136136 * @returns void
137137 */
138- handlePointerDown : ( event : React . PointerEvent ) => void ;
138+ handlePointerDown : ( event : PointerEvent ) => void ;
139139 /**
140140 * Handles pointer move events.
141141 * @returns void
142142 */
143- handlePointerMove : ( event : React . PointerEvent ) => void ;
143+ handlePointerMove : ( event : PointerEvent ) => void ;
144144 /**
145145 * Handles previous button click events.
146146 * @returns void
147147 */
148- handlePrev : ( event : React . PointerEvent ) => void ;
148+ handlePrev : ( ) => void ;
149149 /**
150150 * Handles next button click events.
151151 * @returns void
152152 */
153- handleNext : ( event : React . PointerEvent ) => void ;
153+ handleNext : ( ) => void ;
154154 /**
155155 * Handles carousel container click events.
156156 * @returns void
157157 */
158- handleClick : ( event : React . PointerEvent ) => void ;
158+ handleClick : ( event : MouseEvent ) => void ;
159159}
160160
161161/**
0 commit comments