We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f97021 commit 1baea88Copy full SHA for 1baea88
src/compiler/checker.ts
@@ -14911,11 +14911,7 @@ namespace ts {
14911
if (!moduleSymbol) {
14912
return undefined;
14913
}
14914
- const moduleDeclaration = getDeclarationOfKind(moduleSymbol, SyntaxKind.SourceFile) as SourceFile;
14915
- if (!moduleDeclaration) {
14916
- return undefined;
14917
- }
14918
- return moduleDeclaration;
+ return getDeclarationOfKind(moduleSymbol, SyntaxKind.SourceFile) as SourceFile;
14919
14920
14921
function initializeTypeChecker() {
0 commit comments