File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19530,10 +19530,9 @@ namespace ts {
19530
19530
// Since the javascript won't do semantic analysis like typescript,
19531
19531
// if the javascript file comes before the typescript file and both contain same name functions,
19532
19532
// checkFunctionOrConstructorSymbol wouldn't be called if we didnt ignore javascript function.
19533
- const firstDeclaration = forEach (localSymbol.declarations,
19533
+ const firstDeclaration = find (localSymbol.declarations,
19534
19534
// Get first non javascript function declaration
19535
- declaration => declaration.kind === node.kind && !isSourceFileJavaScript(getSourceFileOfNode(declaration)) ?
19536
- declaration : undefined);
19535
+ declaration => declaration.kind === node.kind && !isSourceFileJavaScript(getSourceFileOfNode(declaration)));
19537
19536
19538
19537
// Only type check the symbol once
19539
19538
if (node === firstDeclaration) {
You can’t perform that action at this time.
0 commit comments