mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
update photoswipe typings to 4.0.8
This commit is contained in:
@@ -51,7 +51,8 @@ function test_defaultUI() {
|
||||
return el.tagName === 'A';
|
||||
},
|
||||
mainScrollEndFriction: 0.35,
|
||||
panEndFriction: 0.35
|
||||
panEndFriction: 0.35,
|
||||
modal: true
|
||||
};
|
||||
|
||||
var photoSwipe: PhotoSwipe<PhotoSwipeUI_Default.Options>;
|
||||
|
||||
9
photoswipe/photoswipe.d.ts
vendored
9
photoswipe/photoswipe.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for PhotoSwipe 4.0.7
|
||||
// Type definitions for PhotoSwipe 4.0.8
|
||||
// Project: http://photoswipe.com/
|
||||
// Definitions by: Xiaohan Zhang <https://github.com/hellochar>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -308,6 +308,13 @@ declare module PhotoSwipe {
|
||||
* }
|
||||
*/
|
||||
isClickableElement?: (el: HTMLElement) => boolean;
|
||||
|
||||
/**
|
||||
* Controls whether PhotoSwipe should expand to take up the entire viewport.
|
||||
* If false, the PhotoSwipe element will take the size of the positioned parent of the template. Take a look at the FAQ for more
|
||||
* information.
|
||||
*/
|
||||
modal?: boolean;
|
||||
}
|
||||
|
||||
interface UIFramework {
|
||||
|
||||
Reference in New Issue
Block a user