Merge pull request #13450 from Snuffleupagus/getPageIndex-JSDoc
Fix the JSDocs for `PDFDocumentProxy.getPageIndex` (issue 13449)
This commit is contained in:
commit
d285580f48
@ -708,11 +708,15 @@ class PDFDocumentProxy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {{num: number, gen: number}} ref - The page reference. Must have
|
* @typedef {Object} RefProxy
|
||||||
* the `num` and `gen` properties.
|
* @property {number} num
|
||||||
* @returns {Promise<{num: number, gen: number}>} A promise that is resolved
|
* @property {number} gen
|
||||||
* with the page index (starting from zero) that is associated with the
|
*/
|
||||||
* reference.
|
|
||||||
|
/**
|
||||||
|
* @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) {
|
getPageIndex(ref) {
|
||||||
return this._transport.getPageIndex(ref);
|
return this._transport.getPageIndex(ref);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user