From 4ac62d8787e07516710449eaa4588bfbdfb52984 Mon Sep 17 00:00:00 2001 From: Takashi Tamura Date: Fri, 7 Aug 2020 16:10:19 +0900 Subject: [PATCH] Fix the type of PDFDocumentLoadingTask.destroy. --- src/display/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/display/api.js b/src/display/api.js index 571c24494..e4493c6ba 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -450,7 +450,7 @@ function _fetchDocument(worker, source, pdfDataRangeTransport, docId) { * {@link UNSUPPORTED_FEATURES} argument. * @property {Promise} promise - Promise for document loading * task completion. - * @property {Promise} destroy - Abort all network requests and destroy + * @property {function} destroy - Abort all network requests and destroy * the worker. Returns a promise that is resolved when destruction is * completed. */