Skip to content

Commit 3e07291

Browse files
committed
fix: fix interface type
1 parent c6d2ea2 commit 3e07291

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/jsdoc/doclet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ Doclet.prototype.postTypedef = function() {
397397
self.properties[i] = ({
398398
name: child.key.string,
399399
optional: child.optional,
400-
type: prevProperty.type || {names: [TypeScriptParser.getTypeId(child.typeAnnotation.string, self.filename)]},
400+
type: prevProperty.type || {names: [TypeScriptParser.getTypeId(child.type || child.typeAnnotation.string, self.filename)]},
401401
description: prevProperty.description || ''
402402
});
403403
});

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.0-rc10",
3+
"version": "0.3.0-rc11",
44
"description": "An API documentation generator for JavaScript and Typescript.",
55
"keywords": [
66
"documentation",

0 commit comments

Comments
 (0)