mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Merge branch 'update-types3' of https://github.com/ajafff/TypeScript into ajafff-update-types3
This commit is contained in:
commit
1de3bbac2e
@ -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…
x
Reference in New Issue
Block a user