diff --git a/types/react-image-gallery/index.d.ts b/types/react-image-gallery/index.d.ts index 0082046763..ecf6582db9 100644 --- a/types/react-image-gallery/index.d.ts +++ b/types/react-image-gallery/index.d.ts @@ -21,6 +21,16 @@ export interface ReactImageGalleryItem { description?: string; srcSet?: string; sizes?: string; + bulletClass?: string; + bulletOnClick?({ + item, + itemIndex, + currentIndex, + }: { + item: ReactImageGalleryItem; + itemIndex: number; + currentIndex: number; + }): void; } export interface ReactImageGalleryProps { diff --git a/types/react-image-gallery/react-image-gallery-tests.tsx b/types/react-image-gallery/react-image-gallery-tests.tsx index 04e7d6a6f9..89eddfe1fd 100644 --- a/types/react-image-gallery/react-image-gallery-tests.tsx +++ b/types/react-image-gallery/react-image-gallery-tests.tsx @@ -13,7 +13,8 @@ class ImageGallery extends React.Component { render() { const galleryItem: ReactImageGalleryItem = { original: 'http://localhost/logo.jpg', - originalTitle: 'My Logo' + originalTitle: 'My Logo', + bulletClass: 'my-bullet-class-name', }; const props: ReactImageGalleryProps = {