You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parametter's properties and destructuring parameters can also be documented::
101
+
Parameter properties and destructuring parameters also work fine, using `standard JSDoc syntax <http://usejsdoc.org/tags-param.html#parameters-with-properties>`_::
102
102
103
103
/**
104
104
* Export an image from the given canvas and save it to the disk.
105
105
*
106
-
* @param {string} filename The name of the output file.
107
-
* @param {Object} options Output options.
108
-
* @param {string} options.format The output format (``jpeg``, ``png`` or ``webp``).
109
-
* @param {number} options.quality The output quality when format is ``jpeg`` or ``webp`` (from ``0.00`` to ``1.00``).
106
+
* @param {Object} options Output options
107
+
* @param {string} options.format The output format (``jpeg``, ``png``, or ``webp``)
108
+
* @param {number} options.quality The output quality when format is ``jpeg`` or ``webp`` (from ``0.00`` to ``1.00``)
110
109
*/
111
-
function saveCanvas(filename, options) {
112
-
// ...
113
-
}
114
-
115
-
/**
116
-
* Export an image from the given canvas and save it to the disk.
117
-
*
118
-
* @param {string} filename The name of the output file.
119
-
* @param {Object} options Output options.
120
-
* @param {string} options.format The output format (``jpeg``, ``png`` or ``webp``).
121
-
* @param {number} options.quality The output quality when format is ``jpeg`` or ``webp`` (from ``0.00`` to ``1.00``).
122
-
*/
123
-
function saveCanvas(filename, { format, quality }) {
110
+
function saveCanvas({ format, quality }) {
124
111
// ...
125
112
}
126
113
@@ -292,6 +279,10 @@ Run ``python setup.py test``. Run ``tox`` to test across Python versions.
292
279
Version History
293
280
===============
294
281
282
+
2.4.1
283
+
* Use documented ``@params`` to help fill out the formal param list for a
284
+
function. This keeps us from missing params that use destructuring. (flozz)
0 commit comments