Skip to content

Commit

Permalink
fix(docgen): typescript: generate only namespace for Titanium
Browse files Browse the repository at this point in the history
generated class for Titanium will have only static members
  • Loading branch information
drauggres committed Dec 26, 2019
1 parent 9bc6012 commit f9c655b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/titanium-docgen/generators/typescript_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ class DocsParser {
}
if ((isInterface || isClass) && !isModules) {
processed = true;
if (namespaceNode && namespaceNode.fullyQualifiedName === 'Titanium') {
return;
}
const interfaceNode = isClass ? new ClassNode(typeInfo) : new InterfaceNode(typeInfo);
if (namespaceNode) {
namespaceNode.relatedNode = interfaceNode;
Expand Down

0 comments on commit f9c655b

Please sign in to comment.