From 7f52d5054d631f4a80be36d0aec95e5917908aff Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Fri, 21 Aug 2015 01:43:27 -0400 Subject: [PATCH] Make TypeCheckerHost internal Fixes #4346 --- lib/typescript.d.ts | 5 ----- lib/typescriptServices.d.ts | 5 ----- src/compiler/types.ts | 1 + 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/typescript.d.ts b/lib/typescript.d.ts index ee69b9ca909ff..75de230e47be4 100644 --- a/lib/typescript.d.ts +++ b/lib/typescript.d.ts @@ -1019,11 +1019,6 @@ declare module "typescript" { emitSkipped: boolean; diagnostics: Diagnostic[]; } - interface TypeCheckerHost { - getCompilerOptions(): CompilerOptions; - getSourceFiles(): SourceFile[]; - getSourceFile(fileName: string): SourceFile; - } interface TypeChecker { getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type; getDeclaredTypeOfSymbol(symbol: Symbol): Type; diff --git a/lib/typescriptServices.d.ts b/lib/typescriptServices.d.ts index 7b4eaea9e16f8..d5c60023e94c9 100644 --- a/lib/typescriptServices.d.ts +++ b/lib/typescriptServices.d.ts @@ -1019,11 +1019,6 @@ declare namespace ts { emitSkipped: boolean; diagnostics: Diagnostic[]; } - interface TypeCheckerHost { - getCompilerOptions(): CompilerOptions; - getSourceFiles(): SourceFile[]; - getSourceFile(fileName: string): SourceFile; - } interface TypeChecker { getTypeOfSymbolAtLocation(symbol: Symbol, node: Node): Type; getDeclaredTypeOfSymbol(symbol: Symbol): Type; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 1338d19e1a747..f3268c69ffd50 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1411,6 +1411,7 @@ namespace ts { /* @internal */ sourceMaps: SourceMapData[]; // Array of sourceMapData if compiler emitted sourcemaps } + /* @internal */ export interface TypeCheckerHost { getCompilerOptions(): CompilerOptions;