From 939e6f0c4cc39854490ad8dddda536fd3330e2bd Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 4 Mar 2022 12:10:16 +0100 Subject: [PATCH] Fix a couple of small typos in JSDoc `typedef` comments While this doesn't affect the official API documentation, these cases should nonetheless be fixed. --- src/core/catalog.js | 2 +- web/base_viewer.js | 2 +- web/pdf_link_service.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/catalog.js b/src/core/catalog.js index 7b959f017..62ad4ce35 100644 --- a/src/core/catalog.js +++ b/src/core/catalog.js @@ -1406,7 +1406,7 @@ class Catalog { } /** - * @typedef ParseDestDictionaryParameters + * @typedef {Object} ParseDestDictionaryParameters * @property {Dict} destDict - The dictionary containing the destination. * @property {Object} resultObj - The object where the parsed destination * properties will be placed. diff --git a/web/base_viewer.js b/web/base_viewer.js index 0492241c3..1f3b82fd0 100644 --- a/web/base_viewer.js +++ b/web/base_viewer.js @@ -1160,7 +1160,7 @@ class BaseViewer { } /** - * @typedef ScrollPageIntoViewParameters + * @typedef {Object} ScrollPageIntoViewParameters * @property {number} pageNumber - The page number. * @property {Array} [destArray] - The original PDF destination array, in the * format: diff --git a/web/pdf_link_service.js b/web/pdf_link_service.js index 6e2a5f989..4795ce0e4 100644 --- a/web/pdf_link_service.js +++ b/web/pdf_link_service.js @@ -29,7 +29,6 @@ const LinkTarget = { }; /** - * @typedef ExternalLinkParameters * @typedef {Object} ExternalLinkParameters * @property {string} url - An absolute URL. * @property {LinkTarget} [target] - The link target. The default value is