From 1fc6675a2973b2ad361ab3bf4c946bc48baeeb95 Mon Sep 17 00:00:00 2001 From: uniqueiniquity Date: Wed, 6 Dec 2017 14:40:59 -0800 Subject: [PATCH] Allow for undefined return from TypeCheckerHost.getSourceFile to correspond with implementation --- src/compiler/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index f6ca2f45d34..6ab0f5543ec 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -2736,7 +2736,7 @@ namespace ts { getCompilerOptions(): CompilerOptions; getSourceFiles(): ReadonlyArray; - getSourceFile(fileName: string): SourceFile; + getSourceFile(fileName: string): SourceFile | undefined; getResolvedTypeReferenceDirectives(): ReadonlyMap; }