Skip to content

Commit 05edabe

Browse files
committed
fix: fix interface properties
1 parent 2bce117 commit 05edabe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/jsdoc/doclet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ Doclet.prototype.postTypedef = function() {
404404
var prevProperty = self.properties[i] || {};
405405

406406
self.properties[i] = ({
407-
name: child.key.string,
408-
optional: child.optional,
407+
name: prevProperty.name || child.key.string,
408+
optional: prevProperty.optional || child.optional,
409409
type: prevProperty.type || {names: [TypeScriptParser.getTypeId(child.type || child.typeAnnotation.string, self.filename)]},
410410
description: prevProperty.description || ''
411411
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@daybrush/jsdoc",
3-
"version": "0.3.4-rc",
3+
"version": "0.3.5",
44
"description": "An API documentation generator for JavaScript and Typescript.",
55
"keywords": [
66
"documentation",

0 commit comments

Comments
 (0)