File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ namespace ts.FindAllReferences {
385
385
}
386
386
387
387
/** 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 ) {
389
389
return forEach ( sourceFileLike . kind === SyntaxKind . SourceFile ? sourceFileLike . statements : sourceFileLike . body ! . statements , statement => // TODO: GH#18217
390
390
action ( statement ) || ( isAmbientModuleDeclaration ( statement ) && forEach ( statement . body && statement . body . statements , action ) ) ) ;
391
391
}
You can’t perform that action at this time.
0 commit comments