Merge branch 'ajafff-update-types3'
This commit is contained in:
commit
b64944ad17
4 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue