-
Notifications
You must be signed in to change notification settings - Fork 485
JSDoc shortcomings #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
I think this might be one: it seems really difficult to use JSDoc for d3-style functions that return configurable functions with attached methods. I've tried every combination of /**
* an area chart generator
* @class area
*/
var area = function() {
/** @lends area# */
var chart = function(selection) { };
/** @method */
chart.data = function(_) { };
return chart;
}; Is |
@shawnbot yeah: I don't think that the /**
* area chart generator
* @returns {chart}
*/
var area = function() {
/**
* Run a chart over a given selection
* @param {Selection} selection
*/
var chart = function(selection) {
};
/**
* Sets the chart data.
*/
chart.data = function(_) {
};
return chart;
}; This works perfectly fine in my testing - differentiating the factory function from the thing that it returns. |
Nice, good call @tmcw. |
Well, actually, not quite: I can't get the method ( |
Odd: it does so with my install, I'll test this again... |
Nope, sorry @mister-walter. I haven't used jsdoc in a while, so I don't have anything handy to test with. 😕 |
Filing - upstream issue with JSDoc about the uncertain meaning and usage of |
Moving discussion to dx-spec https://github.com/tmcw/dx-spec/issues |
…s-syntax Move Values.md into Syntax.md, fixes documentationjs#17
We know of a few JSDoc oddities with no clear solution. Let's keep track of them here.
The text was updated successfully, but these errors were encountered: