Skip to content

Commit 522efb4

Browse files
committed
Fix typo
1 parent c44de23 commit 522efb4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/compiler/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5719,15 +5719,15 @@ namespace ts {
57195719
}
57205720

57215721
/* @internal */
5722-
export interface SourceFileMapBeEmittedHost {
5722+
export interface SourceFileMayBeEmittedHost {
57235723
getCompilerOptions(): CompilerOptions;
57245724
isSourceFileFromExternalLibrary(file: SourceFile): boolean;
57255725
getResolvedProjectReferenceToRedirect(fileName: string): ResolvedProjectReference | undefined;
57265726
isSourceOfProjectReferenceRedirect(fileName: string): boolean;
57275727
}
57285728

57295729
/* @internal */
5730-
export interface EmitHost extends ScriptReferenceHost, ModuleSpecifierResolutionHost, SourceFileMapBeEmittedHost {
5730+
export interface EmitHost extends ScriptReferenceHost, ModuleSpecifierResolutionHost, SourceFileMayBeEmittedHost {
57315731
getSourceFiles(): readonly SourceFile[];
57325732
useCaseSensitiveFileNames(): boolean;
57335733
getCurrentDirectory(): string;

src/compiler/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3679,7 +3679,7 @@ namespace ts {
36793679
}
36803680

36813681
/** Don't call this for `--outFile`, just for `--outDir` or plain emit. `--outFile` needs additional checks. */
3682-
export function sourceFileMayBeEmitted(sourceFile: SourceFile, host: SourceFileMapBeEmittedHost, forceDtsEmit?: boolean) {
3682+
export function sourceFileMayBeEmitted(sourceFile: SourceFile, host: SourceFileMayBeEmittedHost, forceDtsEmit?: boolean) {
36833683
const options = host.getCompilerOptions();
36843684
return !(options.noEmitForJsFiles && isSourceFileJS(sourceFile)) &&
36853685
!sourceFile.isDeclarationFile &&

0 commit comments

Comments
 (0)