Skip to content

Commit afd1f91

Browse files
pacexyaduh95
authored andcommitted
module: fix jsdoc for format parameter in cjs/loader
PR-URL: #56501 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
1 parent 86d783f commit afd1f91

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/internal/modules/cjs/loader.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1682,9 +1682,8 @@ function wrapSafe(filename, content, cjsModuleInstance, format) {
16821682
* `exports`) to the file. Returns exception, if any.
16831683
* @param {string} content The source code of the module
16841684
* @param {string} filename The file path of the module
1685-
* @param {
1686-
* 'module'|'commonjs'|'commonjs-typescript'|'module-typescript'
1687-
* } format Intended format of the module.
1685+
* @param {'module'|'commonjs'|'commonjs-typescript'|'module-typescript'|'typescript'} format
1686+
* Intended format of the module.
16881687
*/
16891688
Module.prototype._compile = function(content, filename, format) {
16901689
if (format === 'commonjs-typescript' || format === 'module-typescript' || format === 'typescript') {

0 commit comments

Comments
 (0)