typescript 5.9.0-dev.20250219 → 5.9.0-dev.20250220
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 +2 -2
- package/lib/typescript.js +6 -2
- package/package.json +21 -21
package/lib/_tsc.js
CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
18
18
|
|
19
19
|
// src/compiler/corePublic.ts
|
20
20
|
var versionMajorMinor = "5.9";
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20250220`;
|
22
22
|
|
23
23
|
// src/compiler/core.ts
|
24
24
|
var emptyArray = [];
|
@@ -58572,7 +58572,7 @@ function createTypeChecker(host) {
|
|
58572
58572
|
let hasThisParameter = false;
|
58573
58573
|
const iife = getImmediatelyInvokedFunctionExpression(declaration);
|
58574
58574
|
const isJSConstructSignature = isJSDocConstructSignature(declaration);
|
58575
|
-
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
|
58575
|
+
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
|
58576
58576
|
if (isUntypedSignatureInJSFile) {
|
58577
58577
|
flags |= 32 /* IsUntypedSignatureInJSFile */;
|
58578
58578
|
}
|
package/lib/typescript.js
CHANGED
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
2285
2285
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
2287
2287
|
var versionMajorMinor = "5.9";
|
2288
|
-
var version = `${versionMajorMinor}.0-dev.
|
2288
|
+
var version = `${versionMajorMinor}.0-dev.20250220`;
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
@@ -63182,7 +63182,7 @@ function createTypeChecker(host) {
|
|
63182
63182
|
let hasThisParameter2 = false;
|
63183
63183
|
const iife = getImmediatelyInvokedFunctionExpression(declaration);
|
63184
63184
|
const isJSConstructSignature = isJSDocConstructSignature(declaration);
|
63185
|
-
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
|
63185
|
+
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
|
63186
63186
|
if (isUntypedSignatureInJSFile) {
|
63187
63187
|
flags |= 32 /* IsUntypedSignatureInJSFile */;
|
63188
63188
|
}
|
@@ -164390,10 +164390,14 @@ function typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget) {
|
|
164390
164390
|
return getSynthesizedDeepClone(typeNode);
|
164391
164391
|
}
|
164392
164392
|
function endOfRequiredTypeParameters(checker, type) {
|
164393
|
+
var _a;
|
164393
164394
|
Debug.assert(type.typeArguments);
|
164394
164395
|
const fullTypeArguments = type.typeArguments;
|
164395
164396
|
const target = type.target;
|
164396
164397
|
for (let cutoff = 0; cutoff < fullTypeArguments.length; cutoff++) {
|
164398
|
+
if (((_a = target.localTypeParameters) == null ? void 0 : _a[cutoff].constraint) === void 0) {
|
164399
|
+
continue;
|
164400
|
+
}
|
164397
164401
|
const typeArguments = fullTypeArguments.slice(0, cutoff);
|
164398
164402
|
const filledIn = checker.fillMissingTypeArguments(
|
164399
164403
|
typeArguments,
|
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.9.0-dev.
|
5
|
+
"version": "5.9.0-dev.20250220",
|
6
6
|
"license": "Apache-2.0",
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
8
8
|
"keywords": [
|
@@ -40,48 +40,48 @@
|
|
40
40
|
],
|
41
41
|
"devDependencies": {
|
42
42
|
"@dprint/formatter": "^0.4.1",
|
43
|
-
"@dprint/typescript": "0.93.
|
43
|
+
"@dprint/typescript": "0.93.4",
|
44
44
|
"@esfx/canceltoken": "^1.0.0",
|
45
|
-
"@eslint/js": "^9.
|
46
|
-
"@octokit/rest": "^21.
|
45
|
+
"@eslint/js": "^9.20.0",
|
46
|
+
"@octokit/rest": "^21.1.1",
|
47
47
|
"@types/chai": "^4.3.20",
|
48
|
-
"@types/diff": "^
|
48
|
+
"@types/diff": "^7.0.1",
|
49
49
|
"@types/minimist": "^1.2.5",
|
50
50
|
"@types/mocha": "^10.0.10",
|
51
51
|
"@types/ms": "^0.7.34",
|
52
52
|
"@types/node": "latest",
|
53
53
|
"@types/source-map-support": "^0.5.10",
|
54
54
|
"@types/which": "^3.0.4",
|
55
|
-
"@typescript-eslint/rule-tester": "^8.
|
56
|
-
"@typescript-eslint/type-utils": "^8.
|
57
|
-
"@typescript-eslint/utils": "^8.
|
55
|
+
"@typescript-eslint/rule-tester": "^8.24.1",
|
56
|
+
"@typescript-eslint/type-utils": "^8.24.1",
|
57
|
+
"@typescript-eslint/utils": "^8.24.1",
|
58
58
|
"azure-devops-node-api": "^14.1.0",
|
59
59
|
"c8": "^10.1.3",
|
60
60
|
"chai": "^4.5.0",
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"dprint": "^0.47.6",
|
61
|
+
"chokidar": "^4.0.3",
|
62
|
+
"diff": "^7.0.0",
|
63
|
+
"dprint": "^0.49.0",
|
65
64
|
"esbuild": "^0.25.0",
|
66
|
-
"eslint": "^9.
|
65
|
+
"eslint": "^9.20.1",
|
67
66
|
"eslint-formatter-autolinkable-stylish": "^1.4.0",
|
68
67
|
"eslint-plugin-regexp": "^2.7.0",
|
69
|
-
"fast-xml-parser": "^4.5.
|
68
|
+
"fast-xml-parser": "^4.5.2",
|
70
69
|
"glob": "^10.4.5",
|
71
|
-
"globals": "^15.
|
70
|
+
"globals": "^15.15.0",
|
72
71
|
"hereby": "^1.10.0",
|
73
72
|
"jsonc-parser": "^3.3.1",
|
74
|
-
"knip": "^5.
|
73
|
+
"knip": "^5.44.4",
|
75
74
|
"minimist": "^1.2.8",
|
76
75
|
"mocha": "^10.8.2",
|
77
76
|
"mocha-fivemat-progress-reporter": "^0.1.0",
|
78
|
-
"monocart-coverage-reports": "^2.
|
77
|
+
"monocart-coverage-reports": "^2.12.1",
|
79
78
|
"ms": "^2.1.3",
|
80
|
-
"
|
79
|
+
"picocolors": "^1.1.1",
|
80
|
+
"playwright": "^1.50.1",
|
81
81
|
"source-map-support": "^0.5.21",
|
82
82
|
"tslib": "^2.8.1",
|
83
|
-
"typescript": "^5.7.
|
84
|
-
"typescript-eslint": "^8.
|
83
|
+
"typescript": "^5.7.3",
|
84
|
+
"typescript-eslint": "^8.24.1",
|
85
85
|
"which": "^3.0.1"
|
86
86
|
},
|
87
87
|
"overrides": {
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"node": "20.1.0",
|
117
117
|
"npm": "8.19.4"
|
118
118
|
},
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "3f416e0f527e8967ac2bd490dffe76034db57a26"
|
120
120
|
}
|