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 54af8aa commit 9bcbc97Copy full SHA for 9bcbc97
src/compiler/checker.ts
@@ -19655,7 +19655,7 @@ namespace ts {
19655
// checkFunctionOrConstructorSymbol wouldn't be called if we didnt ignore javascript function.
19656
const firstDeclaration = find(localSymbol.declarations,
19657
// Get first non javascript function declaration
19658
- declaration => declaration.kind === node.kind && !isSourceFileJavaScript(getSourceFileOfNode(declaration)));
+ declaration => declaration.kind === node.kind && !(declaration.flags & NodeFlags.JavaScriptFile));
19659
19660
// Only type check the symbol once
19661
if (node === firstDeclaration) {
0 commit comments