typescript 5.3.0-dev.20231004 → 5.3.0-dev.20231005
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 +7 -8
- package/lib/tsserver.js +18 -14
- package/lib/typescript.js +18 -14
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
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.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20231005`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -68831,7 +68831,7 @@ function createTypeChecker(host) {
|
|
|
68831
68831
|
}
|
|
68832
68832
|
}
|
|
68833
68833
|
const parent = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0;
|
|
68834
|
-
if (parent && parent.openingElement === openingLikeElement && parent.children.length > 0) {
|
|
68834
|
+
if (parent && parent.openingElement === openingLikeElement && getSemanticJsxChildren(parent.children).length > 0) {
|
|
68835
68835
|
const childrenTypes = checkJsxChildren(parent, checkMode);
|
|
68836
68836
|
if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") {
|
|
68837
68837
|
if (explicitlySpecifyChildrenAttribute) {
|
|
@@ -70454,9 +70454,11 @@ function createTypeChecker(host) {
|
|
|
70454
70454
|
}
|
|
70455
70455
|
if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) {
|
|
70456
70456
|
names.push(arg.tupleNameSource);
|
|
70457
|
+
} else {
|
|
70458
|
+
names.push(void 0);
|
|
70457
70459
|
}
|
|
70458
70460
|
}
|
|
70459
|
-
return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType),
|
|
70461
|
+
return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType), names);
|
|
70460
70462
|
}
|
|
70461
70463
|
function checkTypeArguments(signature, typeArgumentNodes, reportErrors2, headMessage) {
|
|
70462
70464
|
const isJavascript = isInJSFile(signature.declaration);
|
|
@@ -72591,12 +72593,9 @@ function createTypeChecker(host) {
|
|
|
72591
72593
|
types.push(restType);
|
|
72592
72594
|
flags.push(8 /* Variadic */);
|
|
72593
72595
|
}
|
|
72594
|
-
|
|
72595
|
-
if (name) {
|
|
72596
|
-
names.push(name);
|
|
72597
|
-
}
|
|
72596
|
+
names.push(getNameableDeclarationAtPosition(source, i));
|
|
72598
72597
|
}
|
|
72599
|
-
return createTupleType(types, flags, readonly,
|
|
72598
|
+
return createTupleType(types, flags, readonly, names);
|
|
72600
72599
|
}
|
|
72601
72600
|
function getParameterCount(signature) {
|
|
72602
72601
|
const length2 = signature.parameters.length;
|
package/lib/tsserver.js
CHANGED
|
@@ -2328,7 +2328,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2328
2328
|
|
|
2329
2329
|
// src/compiler/corePublic.ts
|
|
2330
2330
|
var versionMajorMinor = "5.3";
|
|
2331
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2331
|
+
var version = `${versionMajorMinor}.0-dev.20231005`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -73543,7 +73543,7 @@ function createTypeChecker(host) {
|
|
|
73543
73543
|
}
|
|
73544
73544
|
}
|
|
73545
73545
|
const parent2 = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0;
|
|
73546
|
-
if (parent2 && parent2.openingElement === openingLikeElement && parent2.children.length > 0) {
|
|
73546
|
+
if (parent2 && parent2.openingElement === openingLikeElement && getSemanticJsxChildren(parent2.children).length > 0) {
|
|
73547
73547
|
const childrenTypes = checkJsxChildren(parent2, checkMode);
|
|
73548
73548
|
if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") {
|
|
73549
73549
|
if (explicitlySpecifyChildrenAttribute) {
|
|
@@ -75166,9 +75166,11 @@ function createTypeChecker(host) {
|
|
|
75166
75166
|
}
|
|
75167
75167
|
if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) {
|
|
75168
75168
|
names.push(arg.tupleNameSource);
|
|
75169
|
+
} else {
|
|
75170
|
+
names.push(void 0);
|
|
75169
75171
|
}
|
|
75170
75172
|
}
|
|
75171
|
-
return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType),
|
|
75173
|
+
return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType), names);
|
|
75172
75174
|
}
|
|
75173
75175
|
function checkTypeArguments(signature, typeArgumentNodes, reportErrors2, headMessage) {
|
|
75174
75176
|
const isJavascript = isInJSFile(signature.declaration);
|
|
@@ -77303,12 +77305,9 @@ function createTypeChecker(host) {
|
|
|
77303
77305
|
types.push(restType);
|
|
77304
77306
|
flags.push(8 /* Variadic */);
|
|
77305
77307
|
}
|
|
77306
|
-
|
|
77307
|
-
if (name) {
|
|
77308
|
-
names.push(name);
|
|
77309
|
-
}
|
|
77308
|
+
names.push(getNameableDeclarationAtPosition(source, i));
|
|
77310
77309
|
}
|
|
77311
|
-
return createTupleType(types, flags, readonly,
|
|
77310
|
+
return createTupleType(types, flags, readonly, names);
|
|
77312
77311
|
}
|
|
77313
77312
|
function getParameterCount(signature) {
|
|
77314
77313
|
const length2 = signature.parameters.length;
|
|
@@ -164306,6 +164305,7 @@ function provideInlayHints(context) {
|
|
|
164306
164305
|
const { file, program, span, cancellationToken, preferences } = context;
|
|
164307
164306
|
const sourceFileText = file.text;
|
|
164308
164307
|
const compilerOptions = program.getCompilerOptions();
|
|
164308
|
+
const quotePreference = getQuotePreference(file, preferences);
|
|
164309
164309
|
const checker = program.getTypeChecker();
|
|
164310
164310
|
const result = [];
|
|
164311
164311
|
visitor(file);
|
|
@@ -164613,6 +164613,10 @@ function provideInlayHints(context) {
|
|
|
164613
164613
|
parts.push({ text: tokenString });
|
|
164614
164614
|
return;
|
|
164615
164615
|
}
|
|
164616
|
+
if (isLiteralExpression(node)) {
|
|
164617
|
+
parts.push({ text: getLiteralText2(node) });
|
|
164618
|
+
return;
|
|
164619
|
+
}
|
|
164616
164620
|
switch (node.kind) {
|
|
164617
164621
|
case 80 /* Identifier */:
|
|
164618
164622
|
const identifier = node;
|
|
@@ -164624,12 +164628,6 @@ function provideInlayHints(context) {
|
|
|
164624
164628
|
parts.push({ text: identifierText });
|
|
164625
164629
|
}
|
|
164626
164630
|
break;
|
|
164627
|
-
case 9 /* NumericLiteral */:
|
|
164628
|
-
parts.push({ text: node.text });
|
|
164629
|
-
break;
|
|
164630
|
-
case 11 /* StringLiteral */:
|
|
164631
|
-
parts.push({ text: `"${node.text}"` });
|
|
164632
|
-
break;
|
|
164633
164631
|
case 166 /* QualifiedName */:
|
|
164634
164632
|
const qualifiedName = node;
|
|
164635
164633
|
visitForDisplayParts(qualifiedName.left);
|
|
@@ -164885,6 +164883,12 @@ function provideInlayHints(context) {
|
|
|
164885
164883
|
visitForDisplayParts(node);
|
|
164886
164884
|
});
|
|
164887
164885
|
}
|
|
164886
|
+
function getLiteralText2(node) {
|
|
164887
|
+
if (isStringLiteral(node)) {
|
|
164888
|
+
return quotePreference === 0 /* Single */ ? `'${escapeString(node.text, 39 /* singleQuote */)}'` : `"${escapeString(node.text, 34 /* doubleQuote */)}"`;
|
|
164889
|
+
}
|
|
164890
|
+
return node.text;
|
|
164891
|
+
}
|
|
164888
164892
|
}
|
|
164889
164893
|
function isUndefined(name) {
|
|
164890
164894
|
return name === "undefined";
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20231005`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -71310,7 +71310,7 @@ ${lanes.join("\n")}
|
|
|
71310
71310
|
}
|
|
71311
71311
|
}
|
|
71312
71312
|
const parent2 = openingLikeElement.parent.kind === 284 /* JsxElement */ ? openingLikeElement.parent : void 0;
|
|
71313
|
-
if (parent2 && parent2.openingElement === openingLikeElement && parent2.children.length > 0) {
|
|
71313
|
+
if (parent2 && parent2.openingElement === openingLikeElement && getSemanticJsxChildren(parent2.children).length > 0) {
|
|
71314
71314
|
const childrenTypes = checkJsxChildren(parent2, checkMode);
|
|
71315
71315
|
if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== "") {
|
|
71316
71316
|
if (explicitlySpecifyChildrenAttribute) {
|
|
@@ -72933,9 +72933,11 @@ ${lanes.join("\n")}
|
|
|
72933
72933
|
}
|
|
72934
72934
|
if (arg.kind === 237 /* SyntheticExpression */ && arg.tupleNameSource) {
|
|
72935
72935
|
names.push(arg.tupleNameSource);
|
|
72936
|
+
} else {
|
|
72937
|
+
names.push(void 0);
|
|
72936
72938
|
}
|
|
72937
72939
|
}
|
|
72938
|
-
return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType),
|
|
72940
|
+
return createTupleType(types, flags, inConstContext && !someType(restType, isMutableArrayLikeType), names);
|
|
72939
72941
|
}
|
|
72940
72942
|
function checkTypeArguments(signature, typeArgumentNodes, reportErrors2, headMessage) {
|
|
72941
72943
|
const isJavascript = isInJSFile(signature.declaration);
|
|
@@ -75070,12 +75072,9 @@ ${lanes.join("\n")}
|
|
|
75070
75072
|
types.push(restType);
|
|
75071
75073
|
flags.push(8 /* Variadic */);
|
|
75072
75074
|
}
|
|
75073
|
-
|
|
75074
|
-
if (name) {
|
|
75075
|
-
names.push(name);
|
|
75076
|
-
}
|
|
75075
|
+
names.push(getNameableDeclarationAtPosition(source, i));
|
|
75077
75076
|
}
|
|
75078
|
-
return createTupleType(types, flags, readonly,
|
|
75077
|
+
return createTupleType(types, flags, readonly, names);
|
|
75079
75078
|
}
|
|
75080
75079
|
function getParameterCount(signature) {
|
|
75081
75080
|
const length2 = signature.parameters.length;
|
|
@@ -163651,6 +163650,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163651
163650
|
const { file, program, span, cancellationToken, preferences } = context;
|
|
163652
163651
|
const sourceFileText = file.text;
|
|
163653
163652
|
const compilerOptions = program.getCompilerOptions();
|
|
163653
|
+
const quotePreference = getQuotePreference(file, preferences);
|
|
163654
163654
|
const checker = program.getTypeChecker();
|
|
163655
163655
|
const result = [];
|
|
163656
163656
|
visitor(file);
|
|
@@ -163958,6 +163958,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163958
163958
|
parts.push({ text: tokenString });
|
|
163959
163959
|
return;
|
|
163960
163960
|
}
|
|
163961
|
+
if (isLiteralExpression(node)) {
|
|
163962
|
+
parts.push({ text: getLiteralText2(node) });
|
|
163963
|
+
return;
|
|
163964
|
+
}
|
|
163961
163965
|
switch (node.kind) {
|
|
163962
163966
|
case 80 /* Identifier */:
|
|
163963
163967
|
const identifier = node;
|
|
@@ -163969,12 +163973,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
163969
163973
|
parts.push({ text: identifierText });
|
|
163970
163974
|
}
|
|
163971
163975
|
break;
|
|
163972
|
-
case 9 /* NumericLiteral */:
|
|
163973
|
-
parts.push({ text: node.text });
|
|
163974
|
-
break;
|
|
163975
|
-
case 11 /* StringLiteral */:
|
|
163976
|
-
parts.push({ text: `"${node.text}"` });
|
|
163977
|
-
break;
|
|
163978
163976
|
case 166 /* QualifiedName */:
|
|
163979
163977
|
const qualifiedName = node;
|
|
163980
163978
|
visitForDisplayParts(qualifiedName.left);
|
|
@@ -164230,6 +164228,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
164230
164228
|
visitForDisplayParts(node);
|
|
164231
164229
|
});
|
|
164232
164230
|
}
|
|
164231
|
+
function getLiteralText2(node) {
|
|
164232
|
+
if (isStringLiteral(node)) {
|
|
164233
|
+
return quotePreference === 0 /* Single */ ? `'${escapeString(node.text, 39 /* singleQuote */)}'` : `"${escapeString(node.text, 34 /* doubleQuote */)}"`;
|
|
164234
|
+
}
|
|
164235
|
+
return node.text;
|
|
164236
|
+
}
|
|
164233
164237
|
}
|
|
164234
164238
|
function isUndefined(name) {
|
|
164235
164239
|
return name === "undefined";
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20231005`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
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.3.0-dev.
|
|
5
|
+
"version": "5.3.0-dev.20231005",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "e9f68cb2969751ce2a6df8b5ee9bbfb08afb41e1"
|
|
117
117
|
}
|