diff --git a/typings/carouselElements.d.ts b/typings/carouselElements.d.ts index eeb1ec7..65a8b89 100644 --- a/typings/carouselElements.d.ts +++ b/typings/carouselElements.d.ts @@ -22,7 +22,7 @@ type SliderInterface = React.ComponentType; */ declare const Slider: SliderInterface; -type SlideProps = +type SlideProps = React.HTMLAttributes & { readonly className?: string; readonly classNameHidden?: string; @@ -47,8 +47,8 @@ type SlideInterface = React.ComponentType; */ declare const Slide: SlideInterface; -type ImageWithZoomProps = - React.HTMLAttributes & { +type ImageWithZoomProps = + React.ComponentPropsWithoutRef & { readonly alt?: string; readonly bgImageProps?: object; readonly bgImageTag?: string; @@ -65,8 +65,8 @@ type ImageWithZoomProps = type ImageWithZoomInterface = React.ComponentType; declare const ImageWithZoom: ImageWithZoomInterface; -type ImageProps = - React.HTMLAttributes & { +type ImageProps = + React.ComponentPropsWithoutRef & { readonly alt?: string; readonly children?: React.ReactNode; readonly className?: string;