From 42b4d97115c2b705fc5541ce85a161d26a0fb6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Ribaudo?= Date: Fri, 12 Sep 2025 15:01:41 +0200 Subject: [PATCH] Fix JSDoc description in src/display/api.js --- src/display/api.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/display/api.js b/src/display/api.js index 086755f82..e2f0ef04b 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -1242,10 +1242,16 @@ class PDFDocumentProxy { * @property {boolean} [isEditing] - Render the page in editing mode. * @property {boolean} [recordOperations] - Record the dependencies and bounding * boxes of all PDF operations that render onto the canvas. - * @property {(index: number) => boolean} [operationsFilter] - If provided, only + * @property {OperationsFilter} [operationsFilter] - If provided, only * run for which this function returns `true`. */ +/** + * @callback OperationsFilter + * @param {number} index - The index of the operation. + * @returns {boolean} If false, the operation is ignored. + */ + /** * Page getOperatorList parameters. *