Skip to content

Commit a4e8c07

Browse files
committed
fix jsdoc comments to make eslint happy
1 parent ebc4b00 commit a4e8c07

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

lib/RuntimeTemplate.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ module.exports = class RuntimeTemplate {
1414

1515
/**
1616
* Add a comment
17-
* @param {object} options
18-
* @param {string=} options.request
19-
* @param {string=} options.chunkName
20-
* @param {string=} options.chunkReason
21-
* @param {string=} options.message
22-
* @param {string=} options.exportName
17+
* @param {object} options Information content of the comment
18+
* @param {string=} options.request request string used originally
19+
* @param {string=} options.chunkName name of the chunk referenced
20+
* @param {string=} options.chunkReason reason information of the chunk
21+
* @param {string=} options.message additional message
22+
* @param {string=} options.exportName name of the export
23+
* @return {string} comment
2324
*/
2425
comment({ request, chunkName, chunkReason, message, exportName }) {
2526
let content;

lib/debug/ProfilingPlugin.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,15 @@ const makeInterceptorFor = (instance, tracer) => hookName => ({
320320
}
321321
});
322322

323+
/** @typedef {(...args: any[]) => void | Promise<any>} PluginFunction */
324+
323325
/**
324326
* @param {string} hookName Name of the hook to profile.
325327
* @param {{counter: number, trace: *, profiler: *}} tracer Instance of tracer.
326328
* @param {object} options Options for the profiled fn.
327-
* @param {string=} options.name
328-
* @param {string=} options.type
329-
* @param {(...args: any[]) => Promise<any>} options.fn
329+
* @param {string=} options.name Plugin name
330+
* @param {string=} options.type Plugin type (sync | async | promise)
331+
* @param {PluginFunction} options.fn Plugin function
330332
* @returns {*} Chainable hooked function.
331333
*/
332334
const makeNewProfiledTapFn = (hookName, tracer, { name, type, fn }) => {

0 commit comments

Comments
 (0)