Skip to content

Commit

Permalink
Merge pull request #19571 from yjoer/master
Browse files Browse the repository at this point in the history
Add the missing return type for `PDFWorker.fromPort()`
  • Loading branch information
timvandermeij authored Mar 2, 2025
2 parents 7081a1f + 2221ccf commit 93759f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/display/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2336,6 +2336,7 @@ class PDFWorker {

/**
* @param {PDFWorkerParameters} params - The worker initialization parameters.
* @returns {PDFWorker}
*/
static fromPort(params) {
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("MOZCENTRAL")) {
Expand Down

0 comments on commit 93759f3

Please sign in to comment.