typescript 5.0.0-dev.20221114 → 5.0.0-dev.20221115
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/lib.es2015.core.d.ts +2 -2
- package/lib/tsc.js +20 -22
- package/lib/tsserver.js +20 -22
- package/lib/tsserverlibrary.js +20 -22
- package/lib/typescript.js +20 -22
- package/lib/typingsInstaller.js +1 -1
- package/package.json +1 -1
package/lib/lib.es2015.core.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ interface Array<T> {
|
|
|
28
28
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
29
29
|
* predicate. If it is not provided, undefined is used instead.
|
|
30
30
|
*/
|
|
31
|
-
find<S extends T>(predicate: (
|
|
31
|
+
find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
|
|
32
32
|
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
|
|
33
33
|
|
|
34
34
|
/**
|
|
@@ -349,7 +349,7 @@ interface ReadonlyArray<T> {
|
|
|
349
349
|
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
350
350
|
* predicate. If it is not provided, undefined is used instead.
|
|
351
351
|
*/
|
|
352
|
-
find<S extends T>(predicate: (
|
|
352
|
+
find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
|
|
353
353
|
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
|
|
354
354
|
|
|
355
355
|
/**
|
package/lib/tsc.js
CHANGED
|
@@ -23,7 +23,7 @@ var __export = (target, all) => {
|
|
|
23
23
|
|
|
24
24
|
// src/compiler/corePublic.ts
|
|
25
25
|
var versionMajorMinor = "5.0";
|
|
26
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
26
|
+
var version = `${versionMajorMinor}.0-dev.20221115`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -41783,25 +41783,22 @@ function createTypeChecker(host) {
|
|
|
41783
41783
|
const context = {
|
|
41784
41784
|
enclosingDeclaration,
|
|
41785
41785
|
flags: flags || 0 /* None */,
|
|
41786
|
-
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
41787
|
-
|
|
41788
|
-
|
|
41789
|
-
|
|
41790
|
-
|
|
41791
|
-
|
|
41792
|
-
getPackageJsonInfoCache: ()
|
|
41793
|
-
|
|
41794
|
-
|
|
41795
|
-
|
|
41796
|
-
|
|
41797
|
-
|
|
41798
|
-
|
|
41799
|
-
|
|
41800
|
-
|
|
41801
|
-
|
|
41802
|
-
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
41803
|
-
} : void 0
|
|
41804
|
-
},
|
|
41786
|
+
tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
|
|
41787
|
+
getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
|
|
41788
|
+
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
41789
|
+
getSymlinkCache: maybeBind(host, host.getSymlinkCache),
|
|
41790
|
+
getPackageJsonInfoCache: () => {
|
|
41791
|
+
var _a3;
|
|
41792
|
+
return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
|
|
41793
|
+
},
|
|
41794
|
+
useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
|
|
41795
|
+
redirectTargetsMap: host.redirectTargetsMap,
|
|
41796
|
+
getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
|
|
41797
|
+
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
41798
|
+
fileExists: (fileName) => host.fileExists(fileName),
|
|
41799
|
+
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
41800
|
+
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
41801
|
+
} : void 0 },
|
|
41805
41802
|
encounteredError: false,
|
|
41806
41803
|
reportedDiagnostic: false,
|
|
41807
41804
|
visitedTypes: void 0,
|
|
@@ -68177,8 +68174,9 @@ function createTypeChecker(host) {
|
|
|
68177
68174
|
});
|
|
68178
68175
|
const containsArguments = containsArgumentsReference(node);
|
|
68179
68176
|
if (containsArguments) {
|
|
68180
|
-
const
|
|
68181
|
-
|
|
68177
|
+
const lastJSDocParamIndex = jsdocParameters.length - 1;
|
|
68178
|
+
const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
|
|
68179
|
+
if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
|
|
68182
68180
|
error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));
|
|
68183
68181
|
}
|
|
68184
68182
|
} else {
|
package/lib/tsserver.js
CHANGED
|
@@ -2647,7 +2647,7 @@ var ts = (() => {
|
|
|
2647
2647
|
|
|
2648
2648
|
// src/compiler/corePublic.ts
|
|
2649
2649
|
var versionMajorMinor = "5.0";
|
|
2650
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2650
|
+
var version = `${versionMajorMinor}.0-dev.20221115`;
|
|
2651
2651
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2652
2652
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2653
2653
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -46622,25 +46622,22 @@ ${lanes.join("\n")}
|
|
|
46622
46622
|
const context = {
|
|
46623
46623
|
enclosingDeclaration,
|
|
46624
46624
|
flags: flags || 0 /* None */,
|
|
46625
|
-
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
46626
|
-
|
|
46627
|
-
|
|
46628
|
-
|
|
46629
|
-
|
|
46630
|
-
|
|
46631
|
-
getPackageJsonInfoCache: ()
|
|
46632
|
-
|
|
46633
|
-
|
|
46634
|
-
|
|
46635
|
-
|
|
46636
|
-
|
|
46637
|
-
|
|
46638
|
-
|
|
46639
|
-
|
|
46640
|
-
|
|
46641
|
-
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
46642
|
-
} : void 0
|
|
46643
|
-
},
|
|
46625
|
+
tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
|
|
46626
|
+
getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
|
|
46627
|
+
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
46628
|
+
getSymlinkCache: maybeBind(host, host.getSymlinkCache),
|
|
46629
|
+
getPackageJsonInfoCache: () => {
|
|
46630
|
+
var _a3;
|
|
46631
|
+
return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
|
|
46632
|
+
},
|
|
46633
|
+
useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
|
|
46634
|
+
redirectTargetsMap: host.redirectTargetsMap,
|
|
46635
|
+
getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
|
|
46636
|
+
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
46637
|
+
fileExists: (fileName) => host.fileExists(fileName),
|
|
46638
|
+
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
46639
|
+
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
46640
|
+
} : void 0 },
|
|
46644
46641
|
encounteredError: false,
|
|
46645
46642
|
reportedDiagnostic: false,
|
|
46646
46643
|
visitedTypes: void 0,
|
|
@@ -73016,8 +73013,9 @@ ${lanes.join("\n")}
|
|
|
73016
73013
|
});
|
|
73017
73014
|
const containsArguments = containsArgumentsReference(node);
|
|
73018
73015
|
if (containsArguments) {
|
|
73019
|
-
const
|
|
73020
|
-
|
|
73016
|
+
const lastJSDocParamIndex = jsdocParameters.length - 1;
|
|
73017
|
+
const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
|
|
73018
|
+
if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
|
|
73021
73019
|
error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));
|
|
73022
73020
|
}
|
|
73023
73021
|
} else {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20221115`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -44082,25 +44082,22 @@ ${lanes.join("\n")}
|
|
|
44082
44082
|
const context = {
|
|
44083
44083
|
enclosingDeclaration,
|
|
44084
44084
|
flags: flags || 0 /* None */,
|
|
44085
|
-
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
44086
|
-
|
|
44087
|
-
|
|
44088
|
-
|
|
44089
|
-
|
|
44090
|
-
|
|
44091
|
-
getPackageJsonInfoCache: ()
|
|
44092
|
-
|
|
44093
|
-
|
|
44094
|
-
|
|
44095
|
-
|
|
44096
|
-
|
|
44097
|
-
|
|
44098
|
-
|
|
44099
|
-
|
|
44100
|
-
|
|
44101
|
-
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
44102
|
-
} : void 0
|
|
44103
|
-
},
|
|
44085
|
+
tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
|
|
44086
|
+
getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
|
|
44087
|
+
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
44088
|
+
getSymlinkCache: maybeBind(host, host.getSymlinkCache),
|
|
44089
|
+
getPackageJsonInfoCache: () => {
|
|
44090
|
+
var _a3;
|
|
44091
|
+
return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
|
|
44092
|
+
},
|
|
44093
|
+
useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
|
|
44094
|
+
redirectTargetsMap: host.redirectTargetsMap,
|
|
44095
|
+
getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
|
|
44096
|
+
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
44097
|
+
fileExists: (fileName) => host.fileExists(fileName),
|
|
44098
|
+
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
44099
|
+
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
44100
|
+
} : void 0 },
|
|
44104
44101
|
encounteredError: false,
|
|
44105
44102
|
reportedDiagnostic: false,
|
|
44106
44103
|
visitedTypes: void 0,
|
|
@@ -70476,8 +70473,9 @@ ${lanes.join("\n")}
|
|
|
70476
70473
|
});
|
|
70477
70474
|
const containsArguments = containsArgumentsReference(node);
|
|
70478
70475
|
if (containsArguments) {
|
|
70479
|
-
const
|
|
70480
|
-
|
|
70476
|
+
const lastJSDocParamIndex = jsdocParameters.length - 1;
|
|
70477
|
+
const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
|
|
70478
|
+
if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
|
|
70481
70479
|
error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));
|
|
70482
70480
|
}
|
|
70483
70481
|
} else {
|
package/lib/typescript.js
CHANGED
|
@@ -42,7 +42,7 @@ var ts = (() => {
|
|
|
42
42
|
"src/compiler/corePublic.ts"() {
|
|
43
43
|
"use strict";
|
|
44
44
|
versionMajorMinor = "5.0";
|
|
45
|
-
version = `${versionMajorMinor}.0-dev.
|
|
45
|
+
version = `${versionMajorMinor}.0-dev.20221115`;
|
|
46
46
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
47
47
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
48
48
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -44082,25 +44082,22 @@ ${lanes.join("\n")}
|
|
|
44082
44082
|
const context = {
|
|
44083
44083
|
enclosingDeclaration,
|
|
44084
44084
|
flags: flags || 0 /* None */,
|
|
44085
|
-
tracker: tracker && tracker.trackSymbol ? tracker : {
|
|
44086
|
-
|
|
44087
|
-
|
|
44088
|
-
|
|
44089
|
-
|
|
44090
|
-
|
|
44091
|
-
getPackageJsonInfoCache: ()
|
|
44092
|
-
|
|
44093
|
-
|
|
44094
|
-
|
|
44095
|
-
|
|
44096
|
-
|
|
44097
|
-
|
|
44098
|
-
|
|
44099
|
-
|
|
44100
|
-
|
|
44101
|
-
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
44102
|
-
} : void 0
|
|
44103
|
-
},
|
|
44085
|
+
tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: () => false, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {
|
|
44086
|
+
getCommonSourceDirectory: !!host.getCommonSourceDirectory ? () => host.getCommonSourceDirectory() : () => "",
|
|
44087
|
+
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
44088
|
+
getSymlinkCache: maybeBind(host, host.getSymlinkCache),
|
|
44089
|
+
getPackageJsonInfoCache: () => {
|
|
44090
|
+
var _a3;
|
|
44091
|
+
return (_a3 = host.getPackageJsonInfoCache) == null ? void 0 : _a3.call(host);
|
|
44092
|
+
},
|
|
44093
|
+
useCaseSensitiveFileNames: maybeBind(host, host.useCaseSensitiveFileNames),
|
|
44094
|
+
redirectTargetsMap: host.redirectTargetsMap,
|
|
44095
|
+
getProjectReferenceRedirect: (fileName) => host.getProjectReferenceRedirect(fileName),
|
|
44096
|
+
isSourceOfProjectReferenceRedirect: (fileName) => host.isSourceOfProjectReferenceRedirect(fileName),
|
|
44097
|
+
fileExists: (fileName) => host.fileExists(fileName),
|
|
44098
|
+
getFileIncludeReasons: () => host.getFileIncludeReasons(),
|
|
44099
|
+
readFile: host.readFile ? (fileName) => host.readFile(fileName) : void 0
|
|
44100
|
+
} : void 0 },
|
|
44104
44101
|
encounteredError: false,
|
|
44105
44102
|
reportedDiagnostic: false,
|
|
44106
44103
|
visitedTypes: void 0,
|
|
@@ -70476,8 +70473,9 @@ ${lanes.join("\n")}
|
|
|
70476
70473
|
});
|
|
70477
70474
|
const containsArguments = containsArgumentsReference(node);
|
|
70478
70475
|
if (containsArguments) {
|
|
70479
|
-
const
|
|
70480
|
-
|
|
70476
|
+
const lastJSDocParamIndex = jsdocParameters.length - 1;
|
|
70477
|
+
const lastJSDocParam = jsdocParameters[lastJSDocParamIndex];
|
|
70478
|
+
if (isJs && lastJSDocParam && isIdentifier(lastJSDocParam.name) && lastJSDocParam.typeExpression && lastJSDocParam.typeExpression.type && !parameters.has(lastJSDocParam.name.escapedText) && !excludedParameters.has(lastJSDocParamIndex) && !isArrayType(getTypeFromTypeNode(lastJSDocParam.typeExpression.type))) {
|
|
70481
70479
|
error(lastJSDocParam.name, Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, idText(lastJSDocParam.name));
|
|
70482
70480
|
}
|
|
70483
70481
|
} else {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -50,7 +50,7 @@ var path = __toESM(require("path"));
|
|
|
50
50
|
|
|
51
51
|
// src/compiler/corePublic.ts
|
|
52
52
|
var versionMajorMinor = "5.0";
|
|
53
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
53
|
+
var version = `${versionMajorMinor}.0-dev.20221115`;
|
|
54
54
|
|
|
55
55
|
// src/compiler/core.ts
|
|
56
56
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.0.0-dev.
|
|
5
|
+
"version": "5.0.0-dev.20221115",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|