@@ -2760,6 +2760,7 @@ declare namespace ts {
2760
2760
resolveTypeReferenceDirectives ?( typeReferenceDirectiveNames : string [ ] , containingFile : string , redirectedReference ?: ResolvedProjectReference ) : ( ResolvedTypeReferenceDirective | undefined ) [ ] ;
2761
2761
getEnvironmentVariable ?( name : string ) : string | undefined ;
2762
2762
createHash ?( data : string ) : string ;
2763
+ getParsedCommandLine ?( fileName : string ) : ParsedCommandLine | undefined ;
2763
2764
}
2764
2765
interface SourceMapRange extends TextRange {
2765
2766
source ?: SourceMapSource ;
@@ -3631,7 +3632,7 @@ declare namespace ts {
3631
3632
/**
3632
3633
* Reads the config file, reports errors if any and exits if the config file cannot be found
3633
3634
*/
3634
- function getParsedCommandLineOfConfigFile ( configFileName : string , optionsToExtend : CompilerOptions , host : ParseConfigFileHost ) : ParsedCommandLine | undefined ;
3635
+ function getParsedCommandLineOfConfigFile ( configFileName : string , optionsToExtend : CompilerOptions , host : ParseConfigFileHost , extendedConfigCache ?: Map < ExtendedConfigCacheEntry > ) : ParsedCommandLine | undefined ;
3635
3636
/**
3636
3637
* Read tsconfig.json file
3637
3638
* @param fileName The path to the config file
@@ -3673,7 +3674,20 @@ declare namespace ts {
3673
3674
* @param basePath A root directory to resolve relative path entries in the config
3674
3675
* file to. e.g. outDir
3675
3676
*/
3676
- function parseJsonSourceFileConfigFileContent ( sourceFile : TsConfigSourceFile , host : ParseConfigHost , basePath : string , existingOptions ?: CompilerOptions , configFileName ?: string , resolutionStack ?: Path [ ] , extraFileExtensions ?: ReadonlyArray < FileExtensionInfo > ) : ParsedCommandLine ;
3677
+ function parseJsonSourceFileConfigFileContent ( sourceFile : TsConfigSourceFile , host : ParseConfigHost , basePath : string , existingOptions ?: CompilerOptions , configFileName ?: string , resolutionStack ?: Path [ ] , extraFileExtensions ?: ReadonlyArray < FileExtensionInfo > , /*@internal */ extendedConfigCache ?: Map < ExtendedConfigCacheEntry > ) : ParsedCommandLine ;
3678
+ interface ParsedTsconfig {
3679
+ raw : any ;
3680
+ options ?: CompilerOptions ;
3681
+ typeAcquisition ?: TypeAcquisition ;
3682
+ /**
3683
+ * Note that the case of the config path has not yet been normalized, as no files have been imported into the project yet
3684
+ */
3685
+ extendedConfigPath ?: string ;
3686
+ }
3687
+ interface ExtendedConfigCacheEntry {
3688
+ extendedResult : TsConfigSourceFile ;
3689
+ extendedConfig : ParsedTsconfig | undefined ;
3690
+ }
3677
3691
function convertCompilerOptionsFromJson ( jsonOptions : any , basePath : string , configFileName ?: string ) : {
3678
3692
options : CompilerOptions ;
3679
3693
errors : Diagnostic [ ] ;
0 commit comments