Skip to content

Commit 299d6fa

Browse files
pacexyaduh95
authored andcommittedFeb 6, 2025
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 0307e4d commit 299d6fa

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
@@ -1499,9 +1499,8 @@ function wrapSafe(filename, content, cjsModuleInstance, format) {
14991499
* `exports`) to the file. Returns exception, if any.
15001500
* @param {string} content The source code of the module
15011501
* @param {string} filename The file path of the module
1502-
* @param {
1503-
* 'module'|'commonjs'|'commonjs-typescript'|'module-typescript'
1504-
* } format Intended format of the module.
1502+
* @param {'module'|'commonjs'|'commonjs-typescript'|'module-typescript'|'typescript'} format
1503+
* Intended format of the module.
15051504
*/
15061505
Module.prototype._compile = function(content, filename, format) {
15071506
if (format === 'commonjs-typescript' || format === 'module-typescript' || format === 'typescript') {

0 commit comments

Comments
 (0)
Please sign in to comment.