You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the very beginning of my router (Express.js) there are the following lines of code:
"use strict";
let express = require('express');
let router = express.Router();
IntelliJ IDEA returns warning Invalid number of arguments regarding let router = express.Router();.
I checked the official documentation of Express.js (see express.Router), and there is the same line of code.
The IntelliJ IDEA response:
JSDoc defines special syntax for documenting which parameters are optional and IDEA respects this syntax.
The function in express.js is documented here as having a non-optional parameter, while the implementation makes it optional.
Please, have a look if there is a need to synchronize the documentation and implementation.
The text was updated successfully, but these errors were encountered:
pubmikeb
changed the title
Discrepancy in JSDoc and implementation in express.Router(), required parameter is actually optional
Discrepancy in JSDoc and implementation in express.Router(), parameter required by documentation is actually optional
Mar 20, 2018
At the very beginning of my router (Express.js) there are the following lines of code:
IntelliJ IDEA returns warning Invalid number of arguments regarding
let router = express.Router();
.I checked the official documentation of Express.js (see express.Router), and there is the same line of code.
The IntelliJ IDEA response:
Please, have a look if there is a need to synchronize the documentation and implementation.
Details:
https://youtrack.jetbrains.com/issue/WEB-31658
The text was updated successfully, but these errors were encountered: