mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Consistently use square brackets for optional parameters in JSDoc comments
Square brackets are recommended to indicate optional parameters. Using them helps for automatically generating correct documentation.
This commit is contained in:
parent
efd331daa1
commit
f4daafc077
21 changed files with 136 additions and 138 deletions
|
@ -458,7 +458,7 @@ let CCITTFaxDecoder = (function CCITTFaxDecoder() {
|
|||
|
||||
/**
|
||||
* @param {CCITTFaxDecoderSource} source - The data which should be decoded.
|
||||
* @param {Object} options - (optional) Decoding options.
|
||||
* @param {Object} [options] - Decoding options.
|
||||
*/
|
||||
function CCITTFaxDecoder(source, options = {}) {
|
||||
if (!source || typeof source.next !== 'function') {
|
||||
|
|
|
@ -863,8 +863,8 @@ class Catalog {
|
|||
* @property {Dict} destDict - The dictionary containing the destination.
|
||||
* @property {Object} resultObj - The object where the parsed destination
|
||||
* properties will be placed.
|
||||
* @property {string} docBaseUrl - (optional) The document base URL that is
|
||||
* used when attempting to recover valid absolute URLs from relative ones.
|
||||
* @property {string} [docBaseUrl] - The document base URL that is used when
|
||||
* attempting to recover valid absolute URLs from relative ones.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue