Skip to content

Commit 1fc6675

Browse files
Allow for undefined return from TypeCheckerHost.getSourceFile to correspond with implementation
1 parent 30da23f commit 1fc6675

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/compiler/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2736,7 +2736,7 @@ namespace ts {
27362736
getCompilerOptions(): CompilerOptions;
27372737

27382738
getSourceFiles(): ReadonlyArray<SourceFile>;
2739-
getSourceFile(fileName: string): SourceFile;
2739+
getSourceFile(fileName: string): SourceFile | undefined;
27402740
getResolvedTypeReferenceDirectives(): ReadonlyMap<ResolvedTypeReferenceDirective>;
27412741
}
27422742

0 commit comments

Comments
 (0)