We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5711c23 commit eeacb8aCopy full SHA for eeacb8a
lib/jsdoc/src/astnode.js
@@ -263,7 +263,6 @@ var nodeToValue = exports.nodeToValue = function(node) {
263
str += nodeToValue(node.key);
264
}
265
break;
266
-
267
case Syntax.ObjectExpression:
268
tempObject = {};
269
node.properties.forEach(function(prop) {
@@ -274,9 +273,9 @@ var nodeToValue = exports.nodeToValue = function(node) {
274
273
275
276
key = prop.key.name;
277
278
- // preserve literal values so that the JSON form shows the correct type
279
- if (prop.value.type === Syntax.Literal) {
+ if (prop.type === 'ObjectMethod') {
+ tempObject[key] = '() => void';
+ } else if (prop.value.type === Syntax.Literal) {
280
tempObject[key] = prop.value.value;
281
282
else {
0 commit comments