typescript 5.0.0-dev.20230105 → 5.0.0-dev.20230107
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/README.md +0 -2
- package/lib/tsc.js +293 -176
- package/lib/tsserver.js +370 -416
- package/lib/tsserverlibrary.d.ts +2 -17
- package/lib/tsserverlibrary.js +374 -412
- package/lib/typescript.d.ts +2 -17
- package/lib/typescript.js +359 -375
- package/lib/typingsInstaller.js +49 -71
- package/package.json +1 -1
package/lib/typescript.d.ts
CHANGED
|
@@ -31,21 +31,6 @@ declare namespace ts {
|
|
|
31
31
|
interface SortedArray<T> extends Array<T> {
|
|
32
32
|
" __sortedArrayBrand": any;
|
|
33
33
|
}
|
|
34
|
-
/** Common read methods for ES6 Map/Set. */
|
|
35
|
-
interface ReadonlyCollection<K> {
|
|
36
|
-
readonly size: number;
|
|
37
|
-
has(key: K): boolean;
|
|
38
|
-
keys(): Iterator<K>;
|
|
39
|
-
}
|
|
40
|
-
/** Common write methods for ES6 Map/Set. */
|
|
41
|
-
interface Collection<K> extends ReadonlyCollection<K> {
|
|
42
|
-
delete(key: K): boolean;
|
|
43
|
-
clear(): void;
|
|
44
|
-
}
|
|
45
|
-
/** Array that is only intended to be pushed to, never read. */
|
|
46
|
-
interface Push<T> {
|
|
47
|
-
push(...values: T[]): void;
|
|
48
|
-
}
|
|
49
34
|
type Path = string & {
|
|
50
35
|
__pathBrand: any;
|
|
51
36
|
};
|
|
@@ -4634,7 +4619,7 @@ declare namespace ts {
|
|
|
4634
4619
|
resolvePath(path: string): string;
|
|
4635
4620
|
fileExists(fileName: string): boolean;
|
|
4636
4621
|
readFile(fileName: string): string | undefined;
|
|
4637
|
-
}, errors?:
|
|
4622
|
+
}, errors?: Diagnostic[]): void;
|
|
4638
4623
|
function getOriginalNode(node: Node): Node;
|
|
4639
4624
|
function getOriginalNode<T extends Node>(node: Node, nodeTest: (node: Node) => node is T): T;
|
|
4640
4625
|
function getOriginalNode(node: Node | undefined): Node | undefined;
|
|
@@ -5214,7 +5199,7 @@ declare namespace ts {
|
|
|
5214
5199
|
/**
|
|
5215
5200
|
* Convert the json syntax tree into the json value
|
|
5216
5201
|
*/
|
|
5217
|
-
function convertToObject(sourceFile: JsonSourceFile, errors:
|
|
5202
|
+
function convertToObject(sourceFile: JsonSourceFile, errors: Diagnostic[]): any;
|
|
5218
5203
|
/**
|
|
5219
5204
|
* Parse the contents of a config file (tsconfig.json).
|
|
5220
5205
|
* @param json The contents of the config file to parse
|