Skip to content

Commit

Permalink
fix(docgen): typescript: skip inherited properties
Browse files Browse the repository at this point in the history
  • Loading branch information
drauggres committed Feb 6, 2020
1 parent ae6483d commit 0b7916c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/titanium-docgen/generators/typescript_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ class MemberNode {
}

parseProperties(properties) {
if (!properties) {
if (!properties || !properties.length) {
return;
}

Expand Down Expand Up @@ -875,6 +875,10 @@ class MemberNode {
return false;
}

if (propertyDoc.__inherits && propertyDoc.__inherits !== this.fullyQualifiedName && !this.membersAreStatic) {
return false;
}

return true;
}

Expand Down

0 comments on commit 0b7916c

Please sign in to comment.