Merge branch 'ajafff-update-types3'

This commit is contained in:
Mohamed Hegazy 2017-11-07 15:23:52 -08:00
commit b64944ad17
4 changed files with 8 additions and 8 deletions

View file

@ -1179,11 +1179,11 @@ namespace ts {
return emitResult;
}
function getSourceFile(fileName: string): SourceFile {
function getSourceFile(fileName: string): SourceFile | undefined {
return getSourceFileByPath(toPath(fileName));
}
function getSourceFileByPath(path: Path): SourceFile {
function getSourceFileByPath(path: Path): SourceFile | undefined {
return filesByName.get(path);
}

View file

@ -2466,8 +2466,8 @@ namespace ts {
export interface ScriptReferenceHost {
getCompilerOptions(): CompilerOptions;
getSourceFile(fileName: string): SourceFile;
getSourceFileByPath(path: Path): SourceFile;
getSourceFile(fileName: string): SourceFile | undefined;
getSourceFileByPath(path: Path): SourceFile | undefined;
getCurrentDirectory(): string;
}

View file

@ -1609,8 +1609,8 @@ declare namespace ts {
}
interface ScriptReferenceHost {
getCompilerOptions(): CompilerOptions;
getSourceFile(fileName: string): SourceFile;
getSourceFileByPath(path: Path): SourceFile;
getSourceFile(fileName: string): SourceFile | undefined;
getSourceFileByPath(path: Path): SourceFile | undefined;
getCurrentDirectory(): string;
}
interface ParseConfigHost {

View file

@ -1609,8 +1609,8 @@ declare namespace ts {
}
interface ScriptReferenceHost {
getCompilerOptions(): CompilerOptions;
getSourceFile(fileName: string): SourceFile;
getSourceFileByPath(path: Path): SourceFile;
getSourceFile(fileName: string): SourceFile | undefined;
getSourceFileByPath(path: Path): SourceFile | undefined;
getCurrentDirectory(): string;
}
interface ParseConfigHost {