mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Update field for react-image-gallery's gallery item (#36783)
This commit is contained in:
parent
08331a0e65
commit
686d04e2c3
10
types/react-image-gallery/index.d.ts
vendored
10
types/react-image-gallery/index.d.ts
vendored
@ -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 {
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user