mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
module: fix jsdoc for format
parameter in cjs/loader
PR-URL: https://github.com/nodejs/node/pull/56501 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Qingyu Deng <i@ayase-lab.com>
This commit is contained in:
parent
e799ebd7ff
commit
c8df98d2f9
1 changed files with 2 additions and 3 deletions
|
@ -1682,9 +1682,8 @@ function wrapSafe(filename, content, cjsModuleInstance, format) {
|
|||
* `exports`) to the file. Returns exception, if any.
|
||||
* @param {string} content The source code of the module
|
||||
* @param {string} filename The file path of the module
|
||||
* @param {
|
||||
* 'module'|'commonjs'|'commonjs-typescript'|'module-typescript'
|
||||
* } format Intended format of the module.
|
||||
* @param {'module'|'commonjs'|'commonjs-typescript'|'module-typescript'|'typescript'} format
|
||||
* Intended format of the module.
|
||||
*/
|
||||
Module.prototype._compile = function(content, filename, format) {
|
||||
if (format === 'commonjs-typescript' || format === 'module-typescript' || format === 'typescript') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue