mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Consistently use @type
for getter data types in JSDoc comments
Sometimes we also used `@return` or `@returns`, but `@type` is what the JSDoc documentation recommends. This also improves the documentation because before this commit the types were not shown and now they are.
This commit is contained in:
parent
f4daafc077
commit
8b4ae6f3eb
13 changed files with 56 additions and 56 deletions
|
@ -253,7 +253,7 @@ class Annotation {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {boolean}
|
||||
* @type {boolean}
|
||||
*/
|
||||
get viewable() {
|
||||
if (this.flags === 0) {
|
||||
|
@ -263,7 +263,7 @@ class Annotation {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {boolean}
|
||||
* @type {boolean}
|
||||
*/
|
||||
get printable() {
|
||||
if (this.flags === 0) {
|
||||
|
|
|
@ -568,8 +568,8 @@ var OperatorList = (function OperatorListClosure() {
|
|||
},
|
||||
|
||||
/**
|
||||
* @returns {number} The total length of the entire operator list,
|
||||
* since `this.length === 0` after flushing.
|
||||
* @type {number} The total length of the entire operator list, since
|
||||
* `this.length === 0` after flushing.
|
||||
*/
|
||||
get totalLength() {
|
||||
return (this._totalLength + this.length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue