Skip to content

Commit

Permalink
fix: add missing type parameter constraints (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rugvip authored Mar 29, 2023
1 parent 1fcb2b3 commit d3482fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/js/gestures/tap-handler.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* @template T, P
* @template {string} T
* @template {string} P
* @typedef {import('../types.js').AddPostfix<T, P>} AddPostfix<T, P>
*/

Expand Down
2 changes: 1 addition & 1 deletion src/js/lightbox/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { lazyLoadSlide } from '../slide/loader.js';
/** @typedef {import('../core/eventable.js').PhotoSwipeFiltersMap} PhotoSwipeFiltersMap */

/**
* @template T
* @template {keyof PhotoSwipeEventsMap} T
* @typedef {import('../core/eventable.js').EventCallback<T>} EventCallback<T>
*/

Expand Down
4 changes: 2 additions & 2 deletions src/js/photoswipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import ContentLoader from './slide/loader.js';
/** @typedef {import('./core/eventable.js').PhotoSwipeFiltersMap} PhotoSwipeFiltersMap */
/** @typedef {import('./slide/get-thumb-bounds').Bounds} Bounds */
/**
* @template T
* @template {keyof PhotoSwipeEventsMap} T
* @typedef {import('./core/eventable.js').EventCallback<T>} EventCallback<T>
*/
/**
* @template T
* @template {keyof PhotoSwipeEventsMap} T
* @typedef {import('./core/eventable.js').AugmentedEvent<T>} AugmentedEvent<T>
*/

Expand Down

0 comments on commit d3482fe

Please sign in to comment.