typescript 5.0.0-dev.20221109 → 5.0.0-dev.20221110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3251,8 +3251,8 @@ declare namespace ts {
3251
3251
  setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
3252
3252
  getTypeAcquisition(): ts.TypeAcquisition;
3253
3253
  protected removeRoot(info: ScriptInfo): void;
3254
- protected enableGlobalPlugins(options: CompilerOptions, pluginConfigOverrides: Map<any> | undefined): void;
3255
- protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[], pluginConfigOverrides: Map<any> | undefined): void;
3254
+ protected enableGlobalPlugins(options: CompilerOptions, pluginConfigOverrides: Map<string, any> | undefined): void;
3255
+ protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[], pluginConfigOverrides: Map<string, any> | undefined): void;
3256
3256
  private enableProxy;
3257
3257
  /** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
3258
3258
  refreshDiagnostics(): void;
@@ -3518,11 +3518,11 @@ declare namespace ts {
3518
3518
  /**
3519
3519
  * projects specified by a tsconfig.json file
3520
3520
  */
3521
- readonly configuredProjects: Map<ConfiguredProject>;
3521
+ readonly configuredProjects: Map<string, ConfiguredProject>;
3522
3522
  /**
3523
3523
  * Open files: with value being project root path, and key being Path of the file that is open
3524
3524
  */
3525
- readonly openFiles: Map<NormalizedPath | undefined>;
3525
+ readonly openFiles: Map<string, NormalizedPath | undefined>;
3526
3526
  /**
3527
3527
  * Map of open files that are opened without complete path but have projectRoot as current directory
3528
3528
  */
@@ -3978,65 +3978,6 @@ declare namespace ts {
3978
3978
  delete(key: K): boolean;
3979
3979
  clear(): void;
3980
3980
  }
3981
- /** ES6 Map interface, only read methods included. */
3982
- interface ReadonlyESMap<K, V> extends ReadonlyCollection<K> {
3983
- get(key: K): V | undefined;
3984
- values(): Iterator<V>;
3985
- entries(): Iterator<[
3986
- K,
3987
- V
3988
- ]>;
3989
- forEach(action: (value: V, key: K) => void): void;
3990
- }
3991
- /**
3992
- * ES6 Map interface, only read methods included.
3993
- */
3994
- interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
3995
- }
3996
- /**
3997
- * @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
3998
- */
3999
- interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
4000
- }
4001
- /** ES6 Map interface. */
4002
- interface ESMap<K, V> extends ReadonlyESMap<K, V>, Collection<K> {
4003
- set(key: K, value: V): this;
4004
- }
4005
- /**
4006
- * ES6 Map interface.
4007
- */
4008
- interface Map<T> extends ESMap<string, T> {
4009
- }
4010
- /**
4011
- * @deprecated Use `ts.ESMap<K, V>` instead.
4012
- */
4013
- interface Map<T> extends ESMap<string, T> {
4014
- }
4015
- /** ES6 Set interface, only read methods included. */
4016
- interface ReadonlySet<T> extends ReadonlyCollection<T> {
4017
- has(value: T): boolean;
4018
- values(): Iterator<T>;
4019
- entries(): Iterator<[
4020
- T,
4021
- T
4022
- ]>;
4023
- forEach(action: (value: T, key: T) => void): void;
4024
- }
4025
- /** ES6 Set interface. */
4026
- interface Set<T> extends ReadonlySet<T>, Collection<T> {
4027
- add(value: T): this;
4028
- delete(value: T): boolean;
4029
- }
4030
- /** ES6 Iterator type. */
4031
- interface Iterator<T> {
4032
- next(): {
4033
- value: T;
4034
- done?: false;
4035
- } | {
4036
- value: void;
4037
- done: true;
4038
- };
4039
- }
4040
3981
  /** Array that is only intended to be pushed to, never read. */
4041
3982
  interface Push<T> {
4042
3983
  push(...values: T[]): void;
@@ -6666,10 +6607,10 @@ declare namespace ts {
6666
6607
  __escapedIdentifier: void;
6667
6608
  }) | InternalSymbolName;
6668
6609
  /** ReadonlyMap where keys are `__String`s. */
6669
- interface ReadonlyUnderscoreEscapedMap<T> extends ReadonlyESMap<__String, T> {
6610
+ interface ReadonlyUnderscoreEscapedMap<T> extends ReadonlyMap<__String, T> {
6670
6611
  }
6671
6612
  /** Map where keys are `__String`s. */
6672
- interface UnderscoreEscapedMap<T> extends ESMap<__String, T>, ReadonlyUnderscoreEscapedMap<T> {
6613
+ interface UnderscoreEscapedMap<T> extends Map<__String, T> {
6673
6614
  }
6674
6615
  /** SymbolTable based on ES6 Map interface. */
6675
6616
  type SymbolTable = UnderscoreEscapedMap<Symbol>;
@@ -6894,7 +6835,7 @@ declare namespace ts {
6894
6835
  isDistributive: boolean;
6895
6836
  inferTypeParameters?: TypeParameter[];
6896
6837
  outerTypeParameters?: TypeParameter[];
6897
- instantiations?: Map<Type>;
6838
+ instantiations?: Map<string, Type>;
6898
6839
  aliasSymbol?: Symbol;
6899
6840
  aliasTypeArguments?: Type[];
6900
6841
  }
@@ -9144,7 +9085,7 @@ declare namespace ts {
9144
9085
  /**
9145
9086
  * Reads the config file, reports errors if any and exits if the config file cannot be found
9146
9087
  */
9147
- function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions | undefined, host: ParseConfigFileHost, extendedConfigCache?: Map<ExtendedConfigCacheEntry>, watchOptionsToExtend?: WatchOptions, extraFileExtensions?: readonly FileExtensionInfo[]): ParsedCommandLine | undefined;
9088
+ function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions | undefined, host: ParseConfigFileHost, extendedConfigCache?: Map<string, ExtendedConfigCacheEntry>, watchOptionsToExtend?: WatchOptions, extraFileExtensions?: readonly FileExtensionInfo[]): ParsedCommandLine | undefined;
9148
9089
  /**
9149
9090
  * Read tsconfig.json file
9150
9091
  * @param fileName The path to the config file
@@ -9178,7 +9119,7 @@ declare namespace ts {
9178
9119
  * @param basePath A root directory to resolve relative path entries in the config
9179
9120
  * file to. e.g. outDir
9180
9121
  */
9181
- function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: readonly FileExtensionInfo[], extendedConfigCache?: Map<ExtendedConfigCacheEntry>, existingWatchOptions?: WatchOptions): ParsedCommandLine;
9122
+ function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: readonly FileExtensionInfo[], extendedConfigCache?: Map<string, ExtendedConfigCacheEntry>, existingWatchOptions?: WatchOptions): ParsedCommandLine;
9182
9123
  /**
9183
9124
  * Parse the contents of a config file (tsconfig.json).
9184
9125
  * @param jsonNode The contents of the config file to parse
@@ -9186,7 +9127,7 @@ declare namespace ts {
9186
9127
  * @param basePath A root directory to resolve relative path entries in the config
9187
9128
  * file to. e.g. outDir
9188
9129
  */
9189
- function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: readonly FileExtensionInfo[], extendedConfigCache?: Map<ExtendedConfigCacheEntry>, existingWatchOptions?: WatchOptions): ParsedCommandLine;
9130
+ function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: readonly FileExtensionInfo[], extendedConfigCache?: Map<string, ExtendedConfigCacheEntry>, existingWatchOptions?: WatchOptions): ParsedCommandLine;
9190
9131
  function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): {
9191
9132
  options: CompilerOptions;
9192
9133
  errors: Diagnostic[];