Skip to content

Commit 97df079

Browse files
committed
PR feedback
1 parent c7b2d92 commit 97df079

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -4685,8 +4685,8 @@ namespace ts {
46854685
return links.type = anyType;
46864686
}
46874687
// Handle export default expressions
4688-
if (declaration.kind === SyntaxKind.SourceFile) {
4689-
Debug.assert(isJsonSourceFile(declaration as SourceFile));
4688+
if (isSourceFile(declaration)) {
4689+
Debug.assert(isJsonSourceFile(declaration));
46904690
const jsonSourceFile = <JsonSourceFile>declaration;
46914691
return links.type = jsonSourceFile.statements.length ? checkExpression(jsonSourceFile.statements[0].expression) : emptyObjectType;
46924692
}

0 commit comments

Comments
 (0)