We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40cfd1f commit a4044bfCopy full SHA for a4044bf
1 file changed
apps/api-extractor/src/generators/DeclarationReferenceGenerator.ts
@@ -212,7 +212,7 @@ export class DeclarationReferenceGenerator {
212
followedSymbol.declarations
213
&& followedSymbol.declarations[0]
214
&& followedSymbol.declarations[0].getSourceFile();
215
- if (ts.isExternalModule(sourceFile)) {
+ if (sourceFile && ts.isExternalModule(sourceFile)) {
216
parentRef = new DeclarationReference(this._sourceFileToModuleSource(sourceFile));
217
} else {
218
parentRef = new DeclarationReference(GlobalSource.instance);
0 commit comments