Skip to content

Commit

Permalink
fix: Check for missing declarations
Browse files Browse the repository at this point in the history
Closes #1329
  • Loading branch information
Gerrit0 committed Aug 28, 2020
1 parent 3ed4b79 commit 71d838a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/converter/factories/reference.ts
Expand Up @@ -35,7 +35,8 @@ export function createReferenceReflection(context: Context, source: ts.Symbol, t

// If any declaration is outside, the symbol should be considered outside. Some declarations may
// be inside due to declaration merging.
if (target.declarations.some(d => context.isOutsideDocumentation(d.getSourceFile().fileName))) {
const declarations = target.getDeclarations();
if (!declarations || declarations.some(d => context.isOutsideDocumentation(d.getSourceFile().fileName))) {
return;
}

Expand Down

0 comments on commit 71d838a

Please sign in to comment.