photoswipe
View on npm →Issues by Rule
tjd/accurate-jsdoc Issues by File
src/js/slide/get-thumb-bounds.js 1 issue@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@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@returns: HTMLElementTagNameMap[T] → HTMLElementTagNameMap. Types differ. Run with --fix to update JSDoc, or verify the intended type.
@returns: Promise<HTMLImageElement | void> → Promise<any>. JSDoc declares union but TypeScript infers generic.
src/js/util/viewport-size.js 3 issues@param 'options': PhotoSwipeOptions → Partial<PreparedPhotoSwipeOptions>. JSDoc declares unknown but TypeScript infers generic.
@param 'options': PhotoSwipeOptions → Partial<PreparedPhotoSwipeOptions>. JSDoc declares unknown but TypeScript infers generic.
@param 'options': PhotoSwipeOptions → Partial<PreparedPhotoSwipeOptions>. JSDoc declares unknown but TypeScript infers generic.
Analyzed: 2/3/2026