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

Lines changed: 2 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy