mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix the JSDocs for PDFDocumentProxy.getPageIndex
(issue 13449)
This commit is contained in:
parent
f587d5998e
commit
70c79c6f69
1 changed files with 9 additions and 5 deletions
|
@ -708,11 +708,15 @@ class PDFDocumentProxy {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {{num: number, gen: number}} ref - The page reference. Must have
|
||||
* the `num` and `gen` properties.
|
||||
* @returns {Promise<{num: number, gen: number}>} A promise that is resolved
|
||||
* with the page index (starting from zero) that is associated with the
|
||||
* reference.
|
||||
* @typedef {Object} RefProxy
|
||||
* @property {number} num
|
||||
* @property {number} gen
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {RefProxy} ref - The page reference.
|
||||
* @returns {Promise<number>} A promise that is resolved with the page index,
|
||||
* starting from zero, that is associated with the reference.
|
||||
*/
|
||||
getPageIndex(ref) {
|
||||
return this._transport.getPageIndex(ref);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue