From 87a1baf29f6120681238569e287d109d2ae0bb92 Mon Sep 17 00:00:00 2001 From: ayush Date: Wed, 27 Sep 2023 12:47:50 +0530 Subject: [PATCH] docs: Make downloadManager optional in JSDoc --- src/display/annotation_layer.js | 2 +- web/annotation_layer_builder.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/display/annotation_layer.js b/src/display/annotation_layer.js index fd9c67023..df8b730ec 100644 --- a/src/display/annotation_layer.js +++ b/src/display/annotation_layer.js @@ -60,7 +60,7 @@ function getRectDims(rect) { * @property {Object} data * @property {HTMLDivElement} layer * @property {IPDFLinkService} linkService - * @property {IDownloadManager} downloadManager + * @property {IDownloadManager} [downloadManager] * @property {AnnotationStorage} [annotationStorage] * @property {string} [imageResourcesPath] - Path for image resources, mainly * for annotation icons. Include trailing slash. diff --git a/web/annotation_layer_builder.js b/web/annotation_layer_builder.js index 43a4fc783..f20a18204 100644 --- a/web/annotation_layer_builder.js +++ b/web/annotation_layer_builder.js @@ -37,7 +37,7 @@ import { PresentationModeState } from "./ui_utils.js"; * for annotation icons. Include trailing slash. * @property {boolean} renderForms * @property {IPDFLinkService} linkService - * @property {IDownloadManager} downloadManager + * @property {IDownloadManager} [downloadManager] * @property {IL10n} l10n - Localization service. * @property {boolean} [enableScripting] * @property {Promise} [hasJSActionsPromise]