Skip to content

Commit 4356af4

Browse files
committed
Merge pull request DefinitelyTyped#5856 from hellochar/feature/photoswipe-4.0.8
update photoswipe typings to 4.0.8
2 parents 8af72d1 + bbea485 commit 4356af4

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

photoswipe/photoswipe-tests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ function test_defaultUI() {
5151
return el.tagName === 'A';
5252
},
5353
mainScrollEndFriction: 0.35,
54-
panEndFriction: 0.35
54+
panEndFriction: 0.35,
55+
modal: true
5556
};
5657

5758
var photoSwipe: PhotoSwipe<PhotoSwipeUI_Default.Options>;

photoswipe/photoswipe.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Type definitions for PhotoSwipe 4.0.7
1+
// Type definitions for PhotoSwipe 4.0.8
22
// Project: http://photoswipe.com/
33
// Definitions by: Xiaohan Zhang <https://github.com/hellochar>
44
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@@ -308,6 +308,13 @@ declare module PhotoSwipe {
308308
* }
309309
*/
310310
isClickableElement?: (el: HTMLElement) => boolean;
311+
312+
/**
313+
* Controls whether PhotoSwipe should expand to take up the entire viewport.
314+
* If false, the PhotoSwipe element will take the size of the positioned parent of the template. Take a look at the FAQ for more
315+
* information.
316+
*/
317+
modal?: boolean;
311318
}
312319

313320
interface UIFramework {

0 commit comments

Comments
 (0)