Skip to content

Commit 46de506

Browse files
committed
Fix resulting issue in compiler
1 parent acb8b1f commit 46de506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/importTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ namespace ts.FindAllReferences {
385385
}
386386

387387
/** Iterates over all statements at the top level or in module declarations. Returns the first truthy result. */
388-
function forEachPossibleImportOrExportStatement<T>(sourceFileLike: SourceFileLike, action: (statement: Statement) => T): T | undefined {
388+
function forEachPossibleImportOrExportStatement<T>(sourceFileLike: SourceFileLike, action: (statement: Statement) => T) {
389389
return forEach(sourceFileLike.kind === SyntaxKind.SourceFile ? sourceFileLike.statements : sourceFileLike.body!.statements, statement => // TODO: GH#18217
390390
action(statement) || (isAmbientModuleDeclaration(statement) && forEach(statement.body && statement.body.statements, action)));
391391
}

0 commit comments

Comments
 (0)