Comments (3)
Shouldn't this also allow something like this:
/**
* ...
* @param {function} callback function to call after the delay
* @param {number} delay delay in ms
* @param {...*} args arbitrary arguments for the callback function
*/
setTimeout(callback, delay)
At the moment, this results in a "jsDoc: redundant param statement" error.
FWIW, jsdoc does render this nicely.
from jscs-jsdoc.
@yelworc I think you're right. If type or name contains ...
it should be qualified as optional. You can wrap args to brackets for now.
I've made an issue about it.
from jscs-jsdoc.
@yelworc Thanks for report ;-)
from jscs-jsdoc.
Related Issues (20)
- Separate checkTypes rule into checkTypes and checkNativeTypeCase HOT 1
- Add "trailingUnderscoreAccess" option
- requireDescriptionCompleteSentence is not allowed to be false or null HOT 1
- Support disabling rules in jsdoc HOT 10
- Parameter validation wrongly associates closure and doc block HOT 4
- requireDescriptionCompleteSentence: fails to recognize inlined links. HOT 2
- jsdoc incorrectly validates shorthand arrow functions with nested function signatures
- Merge checkParamNames and checkRedundantParams
- AssertionError with missing braces and multi-line description in @returns tag HOT 1
- Why can't support array[].property jsdoc syntax??
- Tags should be case insensitive HOT 2
- enforceExistence rule not work properly for anonymous function. HOT 3
- False positive "Unexpected data in tag constructor" for JSDuck HOT 1
- @listens tag is missing from jsdoc3.json
- Is there a way to switch off jsdoc enforceExistence for anonymous arrow functions? HOT 3
- Function is missing documentation for parameter `undefined` with default parameters HOT 1
- New Rule: enforce order of tags HOT 2
- Question : How to add custom code to check to jscs-jsdoc module? HOT 4
- an error with jsDoc HOT 1
- [Meta] Is this merging into ESLint? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jscs-jsdoc.