@typescript-deploys/pr-build 5.0.0-pr-51157-8 → 5.0.0-pr-51474-2
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.
- package/lib/tsc.js +321 -361
- package/lib/tsserver.js +499 -532
- package/lib/tsserverlibrary.d.ts +10 -71
- package/lib/tsserverlibrary.js +3020 -543
- package/lib/typescript.d.ts +6 -65
- package/lib/typescript.js +2944 -467
- package/lib/typingsInstaller.js +57 -82
- package/package.json +6 -5
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -3127,7 +3127,6 @@ declare namespace ts {
|
|
|
3127
3127
|
private externalFiles;
|
|
3128
3128
|
private missingFilesMap;
|
|
3129
3129
|
private generatedFilesMap;
|
|
3130
|
-
protected readonly plugins: PluginModuleWithName[];
|
|
3131
3130
|
protected languageService: LanguageService;
|
|
3132
3131
|
languageServiceEnabled: boolean;
|
|
3133
3132
|
readonly trace?: (s: string) => void;
|
|
@@ -3252,9 +3251,8 @@ declare namespace ts {
|
|
|
3252
3251
|
setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
|
|
3253
3252
|
getTypeAcquisition(): ts.TypeAcquisition;
|
|
3254
3253
|
protected removeRoot(info: ScriptInfo): void;
|
|
3255
|
-
protected
|
|
3256
|
-
protected
|
|
3257
|
-
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;
|
|
3258
3256
|
private enableProxy;
|
|
3259
3257
|
/** Starts a new check for diagnostics. Call this if some file has updated that would cause diagnostics to be changed. */
|
|
3260
3258
|
refreshDiagnostics(): void;
|
|
@@ -3520,11 +3518,11 @@ declare namespace ts {
|
|
|
3520
3518
|
/**
|
|
3521
3519
|
* projects specified by a tsconfig.json file
|
|
3522
3520
|
*/
|
|
3523
|
-
readonly configuredProjects: Map<ConfiguredProject>;
|
|
3521
|
+
readonly configuredProjects: Map<string, ConfiguredProject>;
|
|
3524
3522
|
/**
|
|
3525
3523
|
* Open files: with value being project root path, and key being Path of the file that is open
|
|
3526
3524
|
*/
|
|
3527
|
-
readonly openFiles: Map<NormalizedPath | undefined>;
|
|
3525
|
+
readonly openFiles: Map<string, NormalizedPath | undefined>;
|
|
3528
3526
|
/**
|
|
3529
3527
|
* Map of open files that are opened without complete path but have projectRoot as current directory
|
|
3530
3528
|
*/
|
|
@@ -3980,65 +3978,6 @@ declare namespace ts {
|
|
|
3980
3978
|
delete(key: K): boolean;
|
|
3981
3979
|
clear(): void;
|
|
3982
3980
|
}
|
|
3983
|
-
/** ES6 Map interface, only read methods included. */
|
|
3984
|
-
interface ReadonlyESMap<K, V> extends ReadonlyCollection<K> {
|
|
3985
|
-
get(key: K): V | undefined;
|
|
3986
|
-
values(): Iterator<V>;
|
|
3987
|
-
entries(): Iterator<[
|
|
3988
|
-
K,
|
|
3989
|
-
V
|
|
3990
|
-
]>;
|
|
3991
|
-
forEach(action: (value: V, key: K) => void): void;
|
|
3992
|
-
}
|
|
3993
|
-
/**
|
|
3994
|
-
* ES6 Map interface, only read methods included.
|
|
3995
|
-
*/
|
|
3996
|
-
interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
|
3997
|
-
}
|
|
3998
|
-
/**
|
|
3999
|
-
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
|
4000
|
-
*/
|
|
4001
|
-
interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
|
4002
|
-
}
|
|
4003
|
-
/** ES6 Map interface. */
|
|
4004
|
-
interface ESMap<K, V> extends ReadonlyESMap<K, V>, Collection<K> {
|
|
4005
|
-
set(key: K, value: V): this;
|
|
4006
|
-
}
|
|
4007
|
-
/**
|
|
4008
|
-
* ES6 Map interface.
|
|
4009
|
-
*/
|
|
4010
|
-
interface Map<T> extends ESMap<string, T> {
|
|
4011
|
-
}
|
|
4012
|
-
/**
|
|
4013
|
-
* @deprecated Use `ts.ESMap<K, V>` instead.
|
|
4014
|
-
*/
|
|
4015
|
-
interface Map<T> extends ESMap<string, T> {
|
|
4016
|
-
}
|
|
4017
|
-
/** ES6 Set interface, only read methods included. */
|
|
4018
|
-
interface ReadonlySet<T> extends ReadonlyCollection<T> {
|
|
4019
|
-
has(value: T): boolean;
|
|
4020
|
-
values(): Iterator<T>;
|
|
4021
|
-
entries(): Iterator<[
|
|
4022
|
-
T,
|
|
4023
|
-
T
|
|
4024
|
-
]>;
|
|
4025
|
-
forEach(action: (value: T, key: T) => void): void;
|
|
4026
|
-
}
|
|
4027
|
-
/** ES6 Set interface. */
|
|
4028
|
-
interface Set<T> extends ReadonlySet<T>, Collection<T> {
|
|
4029
|
-
add(value: T): this;
|
|
4030
|
-
delete(value: T): boolean;
|
|
4031
|
-
}
|
|
4032
|
-
/** ES6 Iterator type. */
|
|
4033
|
-
interface Iterator<T> {
|
|
4034
|
-
next(): {
|
|
4035
|
-
value: T;
|
|
4036
|
-
done?: false;
|
|
4037
|
-
} | {
|
|
4038
|
-
value: void;
|
|
4039
|
-
done: true;
|
|
4040
|
-
};
|
|
4041
|
-
}
|
|
4042
3981
|
/** Array that is only intended to be pushed to, never read. */
|
|
4043
3982
|
interface Push<T> {
|
|
4044
3983
|
push(...values: T[]): void;
|
|
@@ -6668,10 +6607,10 @@ declare namespace ts {
|
|
|
6668
6607
|
__escapedIdentifier: void;
|
|
6669
6608
|
}) | InternalSymbolName;
|
|
6670
6609
|
/** ReadonlyMap where keys are `__String`s. */
|
|
6671
|
-
interface ReadonlyUnderscoreEscapedMap<T> extends
|
|
6610
|
+
interface ReadonlyUnderscoreEscapedMap<T> extends ReadonlyMap<__String, T> {
|
|
6672
6611
|
}
|
|
6673
6612
|
/** Map where keys are `__String`s. */
|
|
6674
|
-
interface UnderscoreEscapedMap<T> extends
|
|
6613
|
+
interface UnderscoreEscapedMap<T> extends Map<__String, T> {
|
|
6675
6614
|
}
|
|
6676
6615
|
/** SymbolTable based on ES6 Map interface. */
|
|
6677
6616
|
type SymbolTable = UnderscoreEscapedMap<Symbol>;
|
|
@@ -6896,7 +6835,7 @@ declare namespace ts {
|
|
|
6896
6835
|
isDistributive: boolean;
|
|
6897
6836
|
inferTypeParameters?: TypeParameter[];
|
|
6898
6837
|
outerTypeParameters?: TypeParameter[];
|
|
6899
|
-
instantiations?: Map<Type>;
|
|
6838
|
+
instantiations?: Map<string, Type>;
|
|
6900
6839
|
aliasSymbol?: Symbol;
|
|
6901
6840
|
aliasTypeArguments?: Type[];
|
|
6902
6841
|
}
|
|
@@ -9146,7 +9085,7 @@ declare namespace ts {
|
|
|
9146
9085
|
/**
|
|
9147
9086
|
* Reads the config file, reports errors if any and exits if the config file cannot be found
|
|
9148
9087
|
*/
|
|
9149
|
-
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;
|
|
9150
9089
|
/**
|
|
9151
9090
|
* Read tsconfig.json file
|
|
9152
9091
|
* @param fileName The path to the config file
|
|
@@ -9180,7 +9119,7 @@ declare namespace ts {
|
|
|
9180
9119
|
* @param basePath A root directory to resolve relative path entries in the config
|
|
9181
9120
|
* file to. e.g. outDir
|
|
9182
9121
|
*/
|
|
9183
|
-
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;
|
|
9184
9123
|
/**
|
|
9185
9124
|
* Parse the contents of a config file (tsconfig.json).
|
|
9186
9125
|
* @param jsonNode The contents of the config file to parse
|
|
@@ -9188,7 +9127,7 @@ declare namespace ts {
|
|
|
9188
9127
|
* @param basePath A root directory to resolve relative path entries in the config
|
|
9189
9128
|
* file to. e.g. outDir
|
|
9190
9129
|
*/
|
|
9191
|
-
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;
|
|
9192
9131
|
function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): {
|
|
9193
9132
|
options: CompilerOptions;
|
|
9194
9133
|
errors: Diagnostic[];
|