From 522efb4798e7447a6b60d3e612fc90dae0edbcdf Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Wed, 27 Nov 2019 13:22:19 -0800 Subject: [PATCH] Fix typo --- src/compiler/types.ts | 4 ++-- src/compiler/utilities.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 62231003f3462..be104d84ef041 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -5719,7 +5719,7 @@ namespace ts { } /* @internal */ - export interface SourceFileMapBeEmittedHost { + export interface SourceFileMayBeEmittedHost { getCompilerOptions(): CompilerOptions; isSourceFileFromExternalLibrary(file: SourceFile): boolean; getResolvedProjectReferenceToRedirect(fileName: string): ResolvedProjectReference | undefined; @@ -5727,7 +5727,7 @@ namespace ts { } /* @internal */ - export interface EmitHost extends ScriptReferenceHost, ModuleSpecifierResolutionHost, SourceFileMapBeEmittedHost { + export interface EmitHost extends ScriptReferenceHost, ModuleSpecifierResolutionHost, SourceFileMayBeEmittedHost { getSourceFiles(): readonly SourceFile[]; useCaseSensitiveFileNames(): boolean; getCurrentDirectory(): string; diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index 548e677e2f636..7ba076ec5c0fa 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -3679,7 +3679,7 @@ namespace ts { } /** Don't call this for `--outFile`, just for `--outDir` or plain emit. `--outFile` needs additional checks. */ - export function sourceFileMayBeEmitted(sourceFile: SourceFile, host: SourceFileMapBeEmittedHost, forceDtsEmit?: boolean) { + export function sourceFileMayBeEmitted(sourceFile: SourceFile, host: SourceFileMayBeEmittedHost, forceDtsEmit?: boolean) { const options = host.getCompilerOptions(); return !(options.noEmitForJsFiles && isSourceFileJS(sourceFile)) && !sourceFile.isDeclarationFile &&