@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/typescript.d.ts
CHANGED
|
@@ -42,65 +42,6 @@ declare namespace ts {
|
|
|
42
42
|
delete(key: K): boolean;
|
|
43
43
|
clear(): void;
|
|
44
44
|
}
|
|
45
|
-
/** ES6 Map interface, only read methods included. */
|
|
46
|
-
interface ReadonlyESMap<K, V> extends ReadonlyCollection<K> {
|
|
47
|
-
get(key: K): V | undefined;
|
|
48
|
-
values(): Iterator<V>;
|
|
49
|
-
entries(): Iterator<[
|
|
50
|
-
K,
|
|
51
|
-
V
|
|
52
|
-
]>;
|
|
53
|
-
forEach(action: (value: V, key: K) => void): void;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* ES6 Map interface, only read methods included.
|
|
57
|
-
*/
|
|
58
|
-
interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @deprecated Use `ts.ReadonlyESMap<K, V>` instead.
|
|
62
|
-
*/
|
|
63
|
-
interface ReadonlyMap<T> extends ReadonlyESMap<string, T> {
|
|
64
|
-
}
|
|
65
|
-
/** ES6 Map interface. */
|
|
66
|
-
interface ESMap<K, V> extends ReadonlyESMap<K, V>, Collection<K> {
|
|
67
|
-
set(key: K, value: V): this;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* ES6 Map interface.
|
|
71
|
-
*/
|
|
72
|
-
interface Map<T> extends ESMap<string, T> {
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated Use `ts.ESMap<K, V>` instead.
|
|
76
|
-
*/
|
|
77
|
-
interface Map<T> extends ESMap<string, T> {
|
|
78
|
-
}
|
|
79
|
-
/** ES6 Set interface, only read methods included. */
|
|
80
|
-
interface ReadonlySet<T> extends ReadonlyCollection<T> {
|
|
81
|
-
has(value: T): boolean;
|
|
82
|
-
values(): Iterator<T>;
|
|
83
|
-
entries(): Iterator<[
|
|
84
|
-
T,
|
|
85
|
-
T
|
|
86
|
-
]>;
|
|
87
|
-
forEach(action: (value: T, key: T) => void): void;
|
|
88
|
-
}
|
|
89
|
-
/** ES6 Set interface. */
|
|
90
|
-
interface Set<T> extends ReadonlySet<T>, Collection<T> {
|
|
91
|
-
add(value: T): this;
|
|
92
|
-
delete(value: T): boolean;
|
|
93
|
-
}
|
|
94
|
-
/** ES6 Iterator type. */
|
|
95
|
-
interface Iterator<T> {
|
|
96
|
-
next(): {
|
|
97
|
-
value: T;
|
|
98
|
-
done?: false;
|
|
99
|
-
} | {
|
|
100
|
-
value: void;
|
|
101
|
-
done: true;
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
45
|
/** Array that is only intended to be pushed to, never read. */
|
|
105
46
|
interface Push<T> {
|
|
106
47
|
push(...values: T[]): void;
|
|
@@ -2730,10 +2671,10 @@ declare namespace ts {
|
|
|
2730
2671
|
__escapedIdentifier: void;
|
|
2731
2672
|
}) | InternalSymbolName;
|
|
2732
2673
|
/** ReadonlyMap where keys are `__String`s. */
|
|
2733
|
-
interface ReadonlyUnderscoreEscapedMap<T> extends
|
|
2674
|
+
interface ReadonlyUnderscoreEscapedMap<T> extends ReadonlyMap<__String, T> {
|
|
2734
2675
|
}
|
|
2735
2676
|
/** Map where keys are `__String`s. */
|
|
2736
|
-
interface UnderscoreEscapedMap<T> extends
|
|
2677
|
+
interface UnderscoreEscapedMap<T> extends Map<__String, T> {
|
|
2737
2678
|
}
|
|
2738
2679
|
/** SymbolTable based on ES6 Map interface. */
|
|
2739
2680
|
type SymbolTable = UnderscoreEscapedMap<Symbol>;
|
|
@@ -2958,7 +2899,7 @@ declare namespace ts {
|
|
|
2958
2899
|
isDistributive: boolean;
|
|
2959
2900
|
inferTypeParameters?: TypeParameter[];
|
|
2960
2901
|
outerTypeParameters?: TypeParameter[];
|
|
2961
|
-
instantiations?: Map<Type>;
|
|
2902
|
+
instantiations?: Map<string, Type>;
|
|
2962
2903
|
aliasSymbol?: Symbol;
|
|
2963
2904
|
aliasTypeArguments?: Type[];
|
|
2964
2905
|
}
|
|
@@ -5208,7 +5149,7 @@ declare namespace ts {
|
|
|
5208
5149
|
/**
|
|
5209
5150
|
* Reads the config file, reports errors if any and exits if the config file cannot be found
|
|
5210
5151
|
*/
|
|
5211
|
-
function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions | undefined, host: ParseConfigFileHost, extendedConfigCache?: Map<ExtendedConfigCacheEntry>, watchOptionsToExtend?: WatchOptions, extraFileExtensions?: readonly FileExtensionInfo[]): ParsedCommandLine | undefined;
|
|
5152
|
+
function getParsedCommandLineOfConfigFile(configFileName: string, optionsToExtend: CompilerOptions | undefined, host: ParseConfigFileHost, extendedConfigCache?: Map<string, ExtendedConfigCacheEntry>, watchOptionsToExtend?: WatchOptions, extraFileExtensions?: readonly FileExtensionInfo[]): ParsedCommandLine | undefined;
|
|
5212
5153
|
/**
|
|
5213
5154
|
* Read tsconfig.json file
|
|
5214
5155
|
* @param fileName The path to the config file
|
|
@@ -5242,7 +5183,7 @@ declare namespace ts {
|
|
|
5242
5183
|
* @param basePath A root directory to resolve relative path entries in the config
|
|
5243
5184
|
* file to. e.g. outDir
|
|
5244
5185
|
*/
|
|
5245
|
-
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: readonly FileExtensionInfo[], extendedConfigCache?: Map<ExtendedConfigCacheEntry>, existingWatchOptions?: WatchOptions): ParsedCommandLine;
|
|
5186
|
+
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: readonly FileExtensionInfo[], extendedConfigCache?: Map<string, ExtendedConfigCacheEntry>, existingWatchOptions?: WatchOptions): ParsedCommandLine;
|
|
5246
5187
|
/**
|
|
5247
5188
|
* Parse the contents of a config file (tsconfig.json).
|
|
5248
5189
|
* @param jsonNode The contents of the config file to parse
|
|
@@ -5250,7 +5191,7 @@ declare namespace ts {
|
|
|
5250
5191
|
* @param basePath A root directory to resolve relative path entries in the config
|
|
5251
5192
|
* file to. e.g. outDir
|
|
5252
5193
|
*/
|
|
5253
|
-
function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: readonly FileExtensionInfo[], extendedConfigCache?: Map<ExtendedConfigCacheEntry>, existingWatchOptions?: WatchOptions): ParsedCommandLine;
|
|
5194
|
+
function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: readonly FileExtensionInfo[], extendedConfigCache?: Map<string, ExtendedConfigCacheEntry>, existingWatchOptions?: WatchOptions): ParsedCommandLine;
|
|
5254
5195
|
function convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): {
|
|
5255
5196
|
options: CompilerOptions;
|
|
5256
5197
|
errors: Diagnostic[];
|