photoswipe

View on npm →
33
Files Analyzed
7
Issues Found
4
Files with Issues

Issues by Rule

tjd/accurate-jsdoc
7

Issues by File

src/js/slide/get-thumb-bounds.js 1 issue
71:8 accurate-jsdoc

@returns: Bounds | undefined → Bounds. JSDoc includes null/undefined but TypeScript infers the value is always present. Either the code guarantees a value, or add runtime checks.

src/js/slide/loader.js 1 issue
69:8 accurate-jsdoc

@returns: Content | undefined → Content. JSDoc includes null/undefined but TypeScript infers the value is always present. Either the code guarantees a value, or add runtime checks.

src/js/util/util.js 2 issues
10:8 accurate-jsdoc

@returns: HTMLElementTagNameMap[T] → HTMLElementTagNameMap. Types differ. Run with --fix to update JSDoc, or verify the intended type.

151:8 accurate-jsdoc

@returns: Promise<HTMLImageElement | void> → Promise<any>. JSDoc declares union but TypeScript infers generic.

src/js/util/viewport-size.js 3 issues
11:33 accurate-jsdoc

@param 'options': PhotoSwipeOptions → Partial<PreparedPhotoSwipeOptions>. JSDoc declares unknown but TypeScript infers generic.

65:42 accurate-jsdoc

@param 'options': PhotoSwipeOptions → Partial<PreparedPhotoSwipeOptions>. JSDoc declares unknown but TypeScript infers generic.

91:32 accurate-jsdoc

@param 'options': PhotoSwipeOptions → Partial<PreparedPhotoSwipeOptions>. JSDoc declares unknown but TypeScript infers generic.

Analyzed: 2/3/2026