@types/photoswipe
Advanced tools
@@ -28,3 +28,3 @@ import * as PhotoSwipe from '../../index'; | ||
| */ | ||
| barsSize?: { top: number; bottom: number | string }; | ||
| barsSize?: { top: number; bottom: number | string } | undefined; | ||
@@ -36,3 +36,3 @@ /** | ||
| */ | ||
| timeToIdle?: number; | ||
| timeToIdle?: number | undefined; | ||
@@ -44,3 +44,3 @@ /** | ||
| */ | ||
| timeToIdleOutside?: number; | ||
| timeToIdleOutside?: number | undefined; | ||
@@ -52,3 +52,3 @@ /** | ||
| */ | ||
| loadingIndicatorDelay?: number; | ||
| loadingIndicatorDelay?: number | undefined; | ||
@@ -77,3 +77,3 @@ /** | ||
| */ | ||
| addCaptionHTMLFn?: (item: Item, captionEl: HTMLElement, isFake: boolean) => boolean; | ||
| addCaptionHTMLFn?: ((item: Item, captionEl: HTMLElement, isFake: boolean) => boolean) | undefined; | ||
@@ -85,3 +85,3 @@ /** | ||
| */ | ||
| closeEl?: boolean; | ||
| closeEl?: boolean | undefined; | ||
@@ -93,3 +93,3 @@ /** | ||
| */ | ||
| captionEl?: boolean; | ||
| captionEl?: boolean | undefined; | ||
@@ -101,3 +101,3 @@ /** | ||
| */ | ||
| fullscreenEl?: boolean; | ||
| fullscreenEl?: boolean | undefined; | ||
@@ -109,3 +109,3 @@ /** | ||
| */ | ||
| zoomEl?: boolean; | ||
| zoomEl?: boolean | undefined; | ||
@@ -117,3 +117,3 @@ /** | ||
| */ | ||
| shareEl?: boolean; | ||
| shareEl?: boolean | undefined; | ||
@@ -125,3 +125,3 @@ /** | ||
| */ | ||
| counterEl?: boolean; | ||
| counterEl?: boolean | undefined; | ||
@@ -133,3 +133,3 @@ /** | ||
| */ | ||
| arrowEl?: boolean; | ||
| arrowEl?: boolean | undefined; | ||
@@ -141,3 +141,3 @@ /** | ||
| */ | ||
| preloaderEl?: boolean; | ||
| preloaderEl?: boolean | undefined; | ||
@@ -149,3 +149,3 @@ /** | ||
| */ | ||
| tapToClose?: boolean; | ||
| tapToClose?: boolean | undefined; | ||
@@ -157,3 +157,3 @@ /** | ||
| */ | ||
| tapToToggleControls?: boolean; | ||
| tapToToggleControls?: boolean | undefined; | ||
@@ -165,3 +165,3 @@ /** | ||
| */ | ||
| clickToCloseNonZoomable?: boolean; | ||
| clickToCloseNonZoomable?: boolean | undefined; | ||
@@ -177,3 +177,3 @@ /** | ||
| */ | ||
| closeElClasses?: string[]; | ||
| closeElClasses?: string[] | undefined; | ||
@@ -185,3 +185,3 @@ /** | ||
| */ | ||
| indexIndicatorSep?: string; | ||
| indexIndicatorSep?: string | undefined; | ||
@@ -201,3 +201,3 @@ /** | ||
| */ | ||
| shareButtons?: ShareButtonData[]; | ||
| shareButtons?: ShareButtonData[] | undefined; | ||
@@ -220,3 +220,3 @@ /** | ||
| */ | ||
| getImageURLForShare?: (shareButtonData: ShareButtonData) => string; | ||
| getImageURLForShare?: ((shareButtonData: ShareButtonData) => string) | undefined; | ||
@@ -235,3 +235,3 @@ /** | ||
| */ | ||
| getPageURLForShare?: (shareButtonData: ShareButtonData) => string; | ||
| getPageURLForShare?: ((shareButtonData: ShareButtonData) => string) | undefined; | ||
@@ -249,3 +249,3 @@ /** | ||
| */ | ||
| getTextForShare?: (shareButtonData: ShareButtonData) => string; | ||
| getTextForShare?: ((shareButtonData: ShareButtonData) => string) | undefined; | ||
@@ -263,3 +263,3 @@ /** | ||
| */ | ||
| parseShareButtonOut?: (shareButtonData: ShareButtonData, shareButtonOut: string) => string; | ||
| parseShareButtonOut?: ((shareButtonData: ShareButtonData, shareButtonOut: string) => string) | undefined; | ||
| } | ||
@@ -296,3 +296,3 @@ | ||
| */ | ||
| download?: boolean; | ||
| download?: boolean | undefined; | ||
| } | ||
@@ -307,3 +307,3 @@ | ||
| */ | ||
| title?: string; | ||
| title?: string | undefined; | ||
| } | ||
@@ -310,0 +310,0 @@ } |
+37
-37
@@ -16,15 +16,15 @@ // Type definitions for PhotoSwipe 4.1.3 | ||
| */ | ||
| src?: string; | ||
| src?: string | undefined; | ||
| /** | ||
| * The width of this image. | ||
| */ | ||
| w?: number; | ||
| w?: number | undefined; | ||
| /** | ||
| * The height of this image. | ||
| */ | ||
| h?: number; | ||
| h?: number | undefined; | ||
| /** | ||
| * The url to small image placeholder, large image will be loaded on top | ||
| */ | ||
| msrc?: string; | ||
| msrc?: string | undefined; | ||
@@ -34,3 +34,3 @@ /** | ||
| */ | ||
| html?: string; | ||
| html?: string | undefined; | ||
@@ -40,3 +40,3 @@ /** | ||
| */ | ||
| loadError?: boolean; | ||
| loadError?: boolean | undefined; | ||
@@ -46,3 +46,3 @@ /** | ||
| */ | ||
| vGap?: {top: number; bottom: number}; | ||
| vGap?: {top: number; bottom: number} | undefined; | ||
@@ -53,3 +53,3 @@ /** | ||
| */ | ||
| fitRatio?: number; | ||
| fitRatio?: number | undefined; | ||
@@ -59,3 +59,3 @@ /** | ||
| */ | ||
| initialZoomLevel?: number; | ||
| initialZoomLevel?: number | undefined; | ||
@@ -75,3 +75,3 @@ /** | ||
| */ | ||
| pid?: string | number; | ||
| pid?: string | number | undefined; | ||
| } | ||
@@ -88,3 +88,3 @@ | ||
| */ | ||
| index?: number; | ||
| index?: number | undefined; | ||
@@ -100,3 +100,3 @@ /** | ||
| */ | ||
| getThumbBoundsFn?: (index: number) => { x: number; y: number; w: number }; | ||
| getThumbBoundsFn?: ((index: number) => { x: number; y: number; w: number }) | undefined; | ||
@@ -117,3 +117,3 @@ /** | ||
| */ | ||
| showAnimationDuration?: number; | ||
| showAnimationDuration?: number | undefined; | ||
@@ -126,3 +126,3 @@ /** | ||
| */ | ||
| hideAnimationDuration?: number; | ||
| hideAnimationDuration?: number | undefined; | ||
@@ -136,3 +136,3 @@ /** | ||
| */ | ||
| showHideOpacity?: boolean; | ||
| showHideOpacity?: boolean | undefined; | ||
@@ -146,3 +146,3 @@ /** | ||
| */ | ||
| bgOpacity?: number; | ||
| bgOpacity?: number | undefined; | ||
@@ -154,3 +154,3 @@ /** | ||
| */ | ||
| spacing?: number; | ||
| spacing?: number | undefined; | ||
@@ -163,3 +163,3 @@ /** | ||
| */ | ||
| allowPanToNext?: boolean; | ||
| allowPanToNext?: boolean | undefined; | ||
@@ -172,3 +172,3 @@ /** | ||
| */ | ||
| maxSpreadZoom?: number; | ||
| maxSpreadZoom?: number | undefined; | ||
@@ -211,3 +211,3 @@ /** | ||
| */ | ||
| getDoubleTapZoom?: (isMouseClick: boolean, item: Item) => number; | ||
| getDoubleTapZoom?: ((isMouseClick: boolean, item: Item) => number) | undefined; | ||
@@ -221,3 +221,3 @@ /** | ||
| */ | ||
| loop?: boolean; | ||
| loop?: boolean | undefined; | ||
@@ -229,3 +229,3 @@ /** | ||
| */ | ||
| pinchToClose?: boolean; | ||
| pinchToClose?: boolean | undefined; | ||
@@ -237,3 +237,3 @@ /** | ||
| */ | ||
| closeOnScroll?: boolean; | ||
| closeOnScroll?: boolean | undefined; | ||
@@ -245,3 +245,3 @@ /** | ||
| */ | ||
| closeOnVerticalDrag?: boolean; | ||
| closeOnVerticalDrag?: boolean | undefined; | ||
@@ -255,3 +255,3 @@ /** | ||
| */ | ||
| mouseUsed?: boolean; | ||
| mouseUsed?: boolean | undefined; | ||
@@ -263,3 +263,3 @@ /** | ||
| */ | ||
| escKey?: boolean; | ||
| escKey?: boolean | undefined; | ||
@@ -271,3 +271,3 @@ /** | ||
| */ | ||
| arrowKeys?: boolean; | ||
| arrowKeys?: boolean | undefined; | ||
@@ -279,3 +279,3 @@ /** | ||
| */ | ||
| history?: boolean; | ||
| history?: boolean | undefined; | ||
@@ -287,3 +287,3 @@ /** | ||
| */ | ||
| galleryUID?: number; | ||
| galleryUID?: number | undefined; | ||
@@ -296,3 +296,3 @@ /** | ||
| */ | ||
| galleryPIDs?: boolean; | ||
| galleryPIDs?: boolean | undefined; | ||
@@ -306,3 +306,3 @@ /** | ||
| */ | ||
| errorMsg?: string; | ||
| errorMsg?: string | undefined; | ||
@@ -316,3 +316,3 @@ /** | ||
| */ | ||
| preload?: number[]; | ||
| preload?: number[] | undefined; | ||
@@ -322,3 +322,3 @@ /** | ||
| */ | ||
| mainClass?: string; | ||
| mainClass?: string | undefined; | ||
@@ -330,3 +330,3 @@ /** | ||
| */ | ||
| getNumItemsFn?: () => number; | ||
| getNumItemsFn?: (() => number) | undefined; | ||
@@ -338,3 +338,3 @@ /** | ||
| */ | ||
| focus?: boolean; | ||
| focus?: boolean | undefined; | ||
@@ -352,3 +352,3 @@ /** | ||
| */ | ||
| isClickableElement?: (el: HTMLElement) => boolean; | ||
| isClickableElement?: ((el: HTMLElement) => boolean) | undefined; | ||
@@ -360,3 +360,3 @@ /** | ||
| */ | ||
| modal?: boolean; | ||
| modal?: boolean | undefined; | ||
| } | ||
@@ -363,0 +363,0 @@ |
| { | ||
| "name": "@types/photoswipe", | ||
| "version": "4.1.1", | ||
| "version": "4.1.2", | ||
| "description": "TypeScript definitions for PhotoSwipe", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/photoswipe", | ||
| "license": "MIT", | ||
@@ -32,4 +33,4 @@ "contributors": [ | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "b2b924eff0f3a8ab74b18ded45a4405cd37e800dff693641501118e3e82f986f", | ||
| "typeScriptVersion": "3.3" | ||
| "typesPublisherContentHash": "05d30e0f65de42d9f18944938eb6fbd3202c5cd48298b487a29b46c03a40be6b", | ||
| "typeScriptVersion": "3.6" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Thu, 10 Dec 2020 05:20:25 GMT | ||
| * Last updated: Thu, 08 Jul 2021 20:19:36 GMT | ||
| * Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: `PhotoSwipe`, `PhotoSwipeUI_Default` |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
35636
2.48%