react-photoswipe-gallery
Version:
React component wrapper around PhotoSwipe
13 lines (12 loc) • 394 B
TypeScript
/**
* The purpose of this class is to emulate the behavior of the PhotoSwipeLightbox
* to provide the ability to use plugins
*/
import type PhotoSwipeCore from 'photoswipe';
export default class PhotoSwipeLightboxStub {
pswp: PhotoSwipeCore;
on: PhotoSwipeCore['on'];
off: PhotoSwipeCore['off'];
dispatch: PhotoSwipeCore['dispatch'];
constructor(pswp: PhotoSwipeCore);
}