Fix getSourceFile return type (#18689)
This commit is contained in:
parent
2399bac377
commit
d0fd964b69
1 changed files with 2 additions and 2 deletions
|
@ -4095,8 +4095,8 @@ namespace ts {
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CompilerHost extends ModuleResolutionHost {
|
export interface CompilerHost extends ModuleResolutionHost {
|
||||||
getSourceFile(fileName: string, languageVersion: ScriptTarget, onError?: (message: string) => void): SourceFile;
|
getSourceFile(fileName: string, languageVersion: ScriptTarget, onError?: (message: string) => void): SourceFile | undefined;
|
||||||
getSourceFileByPath?(fileName: string, path: Path, languageVersion: ScriptTarget, onError?: (message: string) => void): SourceFile;
|
getSourceFileByPath?(fileName: string, path: Path, languageVersion: ScriptTarget, onError?: (message: string) => void): SourceFile | undefined;
|
||||||
getCancellationToken?(): CancellationToken;
|
getCancellationToken?(): CancellationToken;
|
||||||
getDefaultLibFileName(options: CompilerOptions): string;
|
getDefaultLibFileName(options: CompilerOptions): string;
|
||||||
getDefaultLibLocation?(): string;
|
getDefaultLibLocation?(): string;
|
||||||
|
|
Loading…
Reference in a new issue