Skip to content

Commit

Permalink
Allow PhotoSwipeBase type for loader
Browse files Browse the repository at this point in the history
  • Loading branch information
dimsemenov committed Jul 22, 2022
1 parent ddcad46 commit 266c7b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/slide/loader.js
@@ -1,3 +1,4 @@
import PhotoSwipeBase from '../core/base.js';
import { getViewportSize, getPanAreaSize } from '../util/viewport-size.js';
import ZoomLevel from './zoom-level.js';

Expand All @@ -15,7 +16,7 @@ const MIN_SLIDES_TO_CACHE = 5;
* thus it can be called before dialog is opened.
*
* @param {SlideData} itemData Data about the slide
* @param {PhotoSwipe | PhotoSwipeLightbox} instance PhotoSwipe or PhotoSwipeLightbox
* @param {PhotoSwipe | PhotoSwipeLightbox | PhotoSwipeBase} instance PhotoSwipe or PhotoSwipeLightbox
* @param {number} index
* @returns Image that is being decoded or false.
*/
Expand Down

0 comments on commit 266c7b2

Please sign in to comment.