@typescript-deploys/pr-build 5.4.0-pr-57122-12 → 5.4.0-pr-55371-20
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 +24 -22
- package/lib/tsserver.js +24 -22
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +24 -22
- 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.4";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240125`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -42806,7 +42806,11 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi
|
|
|
42806
42806
|
if (modulePath.isRedirect) {
|
|
42807
42807
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
42808
42808
|
} else if (pathIsBareSpecifier(local)) {
|
|
42809
|
-
|
|
42809
|
+
if (pathContainsNodeModules(local)) {
|
|
42810
|
+
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
42811
|
+
} else {
|
|
42812
|
+
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
42813
|
+
}
|
|
42810
42814
|
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
42811
42815
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
42812
42816
|
}
|
|
@@ -55309,15 +55313,11 @@ function createTypeChecker(host) {
|
|
|
55309
55313
|
return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type));
|
|
55310
55314
|
}
|
|
55311
55315
|
function getResolvedApparentTypeOfMappedType(type) {
|
|
55312
|
-
const
|
|
55313
|
-
|
|
55314
|
-
|
|
55315
|
-
|
|
55316
|
-
|
|
55317
|
-
const baseConstraint = getBaseConstraintOfType(constraint.type);
|
|
55318
|
-
if (baseConstraint && everyType(baseConstraint, isArrayOrTupleType)) {
|
|
55319
|
-
return instantiateType(target, prependTypeMapping(typeVariable, baseConstraint, type.mapper));
|
|
55320
|
-
}
|
|
55316
|
+
const typeVariable = getHomomorphicTypeVariable(type);
|
|
55317
|
+
if (typeVariable && !type.declaration.nameType) {
|
|
55318
|
+
const constraint = getConstraintOfTypeParameter(typeVariable);
|
|
55319
|
+
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
55320
|
+
return instantiateType(type, prependTypeMapping(typeVariable, constraint, type.mapper));
|
|
55321
55321
|
}
|
|
55322
55322
|
}
|
|
55323
55323
|
return type;
|
|
@@ -58192,6 +58192,7 @@ function createTypeChecker(host) {
|
|
|
58192
58192
|
return links.resolvedType;
|
|
58193
58193
|
}
|
|
58194
58194
|
function getTemplateLiteralType(texts, types) {
|
|
58195
|
+
var _a, _b;
|
|
58195
58196
|
const unionIndex = findIndex(types, (t) => !!(t.flags & (131072 /* Never */ | 1048576 /* Union */)));
|
|
58196
58197
|
if (unionIndex >= 0) {
|
|
58197
58198
|
return checkCrossProductUnion(types) ? mapType(types[unionIndex], (t) => getTemplateLiteralType(texts, replaceElement(types, unionIndex, t))) : errorType;
|
|
@@ -58199,6 +58200,9 @@ function createTypeChecker(host) {
|
|
|
58199
58200
|
if (contains(types, wildcardType)) {
|
|
58200
58201
|
return wildcardType;
|
|
58201
58202
|
}
|
|
58203
|
+
if (texts.length === 2 && texts[0] === "" && texts[1] === "" && !(types[0].flags & 2944 /* Literal */) && !((_b = (_a = types[0].symbol) == null ? void 0 : _a.declarations) == null ? void 0 : _b.some((d) => d.parent.kind === 195 /* InferType */)) && isTypeAssignableTo(types[0], stringType)) {
|
|
58204
|
+
return types[0];
|
|
58205
|
+
}
|
|
58202
58206
|
const newTypes = [];
|
|
58203
58207
|
const newTexts = [];
|
|
58204
58208
|
let text = texts[0];
|
|
@@ -76094,19 +76098,16 @@ function createTypeChecker(host) {
|
|
|
76094
76098
|
}
|
|
76095
76099
|
}
|
|
76096
76100
|
}
|
|
76097
|
-
function
|
|
76101
|
+
function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
|
|
76098
76102
|
const signature = getSingleCallSignature(funcType);
|
|
76099
|
-
if (signature) {
|
|
76100
|
-
|
|
76101
|
-
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
76102
|
-
return returnType;
|
|
76103
|
-
}
|
|
76103
|
+
if (signature && !signature.typeParameters) {
|
|
76104
|
+
return getReturnTypeOfSignature(signature);
|
|
76104
76105
|
}
|
|
76105
76106
|
}
|
|
76106
76107
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
76107
76108
|
const funcType = checkExpression(expr.expression);
|
|
76108
76109
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
76109
|
-
const returnType =
|
|
76110
|
+
const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
|
|
76110
76111
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
76111
76112
|
}
|
|
76112
76113
|
function getTypeOfExpression(node) {
|
|
@@ -76151,7 +76152,7 @@ function createTypeChecker(host) {
|
|
|
76151
76152
|
/*requireStringLiteralLikeArgument*/
|
|
76152
76153
|
true
|
|
76153
76154
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
76154
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
76155
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
76155
76156
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
76156
76157
|
return getTypeFromTypeNode(expr.type);
|
|
76157
76158
|
} else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
|
|
@@ -81506,14 +81507,15 @@ function createTypeChecker(host) {
|
|
|
81506
81507
|
idText(id)
|
|
81507
81508
|
);
|
|
81508
81509
|
}
|
|
81509
|
-
if (!isIllegalExportDefaultInCJS && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
|
|
81510
|
-
|
|
81510
|
+
if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
|
|
81511
|
+
const nonLocalMeanings = getSymbolFlags(
|
|
81511
81512
|
sym,
|
|
81512
81513
|
/*excludeTypeOnlyMeanings*/
|
|
81513
81514
|
false,
|
|
81514
81515
|
/*excludeLocalMeanings*/
|
|
81515
81516
|
true
|
|
81516
|
-
)
|
|
81517
|
+
);
|
|
81518
|
+
if (sym.flags & 2097152 /* Alias */ && nonLocalMeanings & 788968 /* Type */ && !(nonLocalMeanings & 111551 /* Value */) && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) {
|
|
81517
81519
|
error(
|
|
81518
81520
|
id,
|
|
81519
81521
|
node.isExportEquals ? Diagnostics._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported : Diagnostics._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,
|
package/lib/tsserver.js
CHANGED
|
@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2340
2340
|
|
|
2341
2341
|
// src/compiler/corePublic.ts
|
|
2342
2342
|
var versionMajorMinor = "5.4";
|
|
2343
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2343
|
+
var version = `${versionMajorMinor}.0-insiders.20240125`;
|
|
2344
2344
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2345
2345
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2346
2346
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -47541,7 +47541,11 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi
|
|
|
47541
47541
|
if (modulePath.isRedirect) {
|
|
47542
47542
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
47543
47543
|
} else if (pathIsBareSpecifier(local)) {
|
|
47544
|
-
|
|
47544
|
+
if (pathContainsNodeModules(local)) {
|
|
47545
|
+
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
47546
|
+
} else {
|
|
47547
|
+
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
47548
|
+
}
|
|
47545
47549
|
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
47546
47550
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
47547
47551
|
}
|
|
@@ -60044,15 +60048,11 @@ function createTypeChecker(host) {
|
|
|
60044
60048
|
return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type));
|
|
60045
60049
|
}
|
|
60046
60050
|
function getResolvedApparentTypeOfMappedType(type) {
|
|
60047
|
-
const
|
|
60048
|
-
|
|
60049
|
-
|
|
60050
|
-
|
|
60051
|
-
|
|
60052
|
-
const baseConstraint = getBaseConstraintOfType(constraint.type);
|
|
60053
|
-
if (baseConstraint && everyType(baseConstraint, isArrayOrTupleType)) {
|
|
60054
|
-
return instantiateType(target, prependTypeMapping(typeVariable, baseConstraint, type.mapper));
|
|
60055
|
-
}
|
|
60051
|
+
const typeVariable = getHomomorphicTypeVariable(type);
|
|
60052
|
+
if (typeVariable && !type.declaration.nameType) {
|
|
60053
|
+
const constraint = getConstraintOfTypeParameter(typeVariable);
|
|
60054
|
+
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
60055
|
+
return instantiateType(type, prependTypeMapping(typeVariable, constraint, type.mapper));
|
|
60056
60056
|
}
|
|
60057
60057
|
}
|
|
60058
60058
|
return type;
|
|
@@ -62927,6 +62927,7 @@ function createTypeChecker(host) {
|
|
|
62927
62927
|
return links.resolvedType;
|
|
62928
62928
|
}
|
|
62929
62929
|
function getTemplateLiteralType(texts, types) {
|
|
62930
|
+
var _a, _b;
|
|
62930
62931
|
const unionIndex = findIndex(types, (t) => !!(t.flags & (131072 /* Never */ | 1048576 /* Union */)));
|
|
62931
62932
|
if (unionIndex >= 0) {
|
|
62932
62933
|
return checkCrossProductUnion(types) ? mapType(types[unionIndex], (t) => getTemplateLiteralType(texts, replaceElement(types, unionIndex, t))) : errorType;
|
|
@@ -62934,6 +62935,9 @@ function createTypeChecker(host) {
|
|
|
62934
62935
|
if (contains(types, wildcardType)) {
|
|
62935
62936
|
return wildcardType;
|
|
62936
62937
|
}
|
|
62938
|
+
if (texts.length === 2 && texts[0] === "" && texts[1] === "" && !(types[0].flags & 2944 /* Literal */) && !((_b = (_a = types[0].symbol) == null ? void 0 : _a.declarations) == null ? void 0 : _b.some((d) => d.parent.kind === 195 /* InferType */)) && isTypeAssignableTo(types[0], stringType)) {
|
|
62939
|
+
return types[0];
|
|
62940
|
+
}
|
|
62937
62941
|
const newTypes = [];
|
|
62938
62942
|
const newTexts = [];
|
|
62939
62943
|
let text = texts[0];
|
|
@@ -80829,19 +80833,16 @@ function createTypeChecker(host) {
|
|
|
80829
80833
|
}
|
|
80830
80834
|
}
|
|
80831
80835
|
}
|
|
80832
|
-
function
|
|
80836
|
+
function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
|
|
80833
80837
|
const signature = getSingleCallSignature(funcType);
|
|
80834
|
-
if (signature) {
|
|
80835
|
-
|
|
80836
|
-
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
80837
|
-
return returnType;
|
|
80838
|
-
}
|
|
80838
|
+
if (signature && !signature.typeParameters) {
|
|
80839
|
+
return getReturnTypeOfSignature(signature);
|
|
80839
80840
|
}
|
|
80840
80841
|
}
|
|
80841
80842
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
80842
80843
|
const funcType = checkExpression(expr.expression);
|
|
80843
80844
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
80844
|
-
const returnType =
|
|
80845
|
+
const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
|
|
80845
80846
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
80846
80847
|
}
|
|
80847
80848
|
function getTypeOfExpression(node) {
|
|
@@ -80886,7 +80887,7 @@ function createTypeChecker(host) {
|
|
|
80886
80887
|
/*requireStringLiteralLikeArgument*/
|
|
80887
80888
|
true
|
|
80888
80889
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
80889
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
80890
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
80890
80891
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
80891
80892
|
return getTypeFromTypeNode(expr.type);
|
|
80892
80893
|
} else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
|
|
@@ -86241,14 +86242,15 @@ function createTypeChecker(host) {
|
|
|
86241
86242
|
idText(id)
|
|
86242
86243
|
);
|
|
86243
86244
|
}
|
|
86244
|
-
if (!isIllegalExportDefaultInCJS && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
|
|
86245
|
-
|
|
86245
|
+
if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
|
|
86246
|
+
const nonLocalMeanings = getSymbolFlags(
|
|
86246
86247
|
sym,
|
|
86247
86248
|
/*excludeTypeOnlyMeanings*/
|
|
86248
86249
|
false,
|
|
86249
86250
|
/*excludeLocalMeanings*/
|
|
86250
86251
|
true
|
|
86251
|
-
)
|
|
86252
|
+
);
|
|
86253
|
+
if (sym.flags & 2097152 /* Alias */ && nonLocalMeanings & 788968 /* Type */ && !(nonLocalMeanings & 111551 /* Value */) && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) {
|
|
86252
86254
|
error2(
|
|
86253
86255
|
id,
|
|
86254
86256
|
node.isExportEquals ? Diagnostics._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported : Diagnostics._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,
|
package/lib/typescript.d.ts
CHANGED
|
@@ -205,7 +205,7 @@ declare namespace ts {
|
|
|
205
205
|
/**
|
|
206
206
|
* Request to reload the project structure for all the opened files
|
|
207
207
|
*/
|
|
208
|
-
interface ReloadProjectsRequest extends
|
|
208
|
+
interface ReloadProjectsRequest extends Request {
|
|
209
209
|
command: CommandTypes.ReloadProjects;
|
|
210
210
|
}
|
|
211
211
|
/**
|
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.4";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20240125`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -45394,7 +45394,11 @@ ${lanes.join("\n")}
|
|
|
45394
45394
|
if (modulePath.isRedirect) {
|
|
45395
45395
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
45396
45396
|
} else if (pathIsBareSpecifier(local)) {
|
|
45397
|
-
|
|
45397
|
+
if (pathContainsNodeModules(local)) {
|
|
45398
|
+
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
45399
|
+
} else {
|
|
45400
|
+
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
45401
|
+
}
|
|
45398
45402
|
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
45399
45403
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
45400
45404
|
}
|
|
@@ -57798,15 +57802,11 @@ ${lanes.join("\n")}
|
|
|
57798
57802
|
return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type));
|
|
57799
57803
|
}
|
|
57800
57804
|
function getResolvedApparentTypeOfMappedType(type) {
|
|
57801
|
-
const
|
|
57802
|
-
|
|
57803
|
-
|
|
57804
|
-
|
|
57805
|
-
|
|
57806
|
-
const baseConstraint = getBaseConstraintOfType(constraint.type);
|
|
57807
|
-
if (baseConstraint && everyType(baseConstraint, isArrayOrTupleType)) {
|
|
57808
|
-
return instantiateType(target, prependTypeMapping(typeVariable, baseConstraint, type.mapper));
|
|
57809
|
-
}
|
|
57805
|
+
const typeVariable = getHomomorphicTypeVariable(type);
|
|
57806
|
+
if (typeVariable && !type.declaration.nameType) {
|
|
57807
|
+
const constraint = getConstraintOfTypeParameter(typeVariable);
|
|
57808
|
+
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
57809
|
+
return instantiateType(type, prependTypeMapping(typeVariable, constraint, type.mapper));
|
|
57810
57810
|
}
|
|
57811
57811
|
}
|
|
57812
57812
|
return type;
|
|
@@ -60681,6 +60681,7 @@ ${lanes.join("\n")}
|
|
|
60681
60681
|
return links.resolvedType;
|
|
60682
60682
|
}
|
|
60683
60683
|
function getTemplateLiteralType(texts, types) {
|
|
60684
|
+
var _a, _b;
|
|
60684
60685
|
const unionIndex = findIndex(types, (t) => !!(t.flags & (131072 /* Never */ | 1048576 /* Union */)));
|
|
60685
60686
|
if (unionIndex >= 0) {
|
|
60686
60687
|
return checkCrossProductUnion(types) ? mapType(types[unionIndex], (t) => getTemplateLiteralType(texts, replaceElement(types, unionIndex, t))) : errorType;
|
|
@@ -60688,6 +60689,9 @@ ${lanes.join("\n")}
|
|
|
60688
60689
|
if (contains(types, wildcardType)) {
|
|
60689
60690
|
return wildcardType;
|
|
60690
60691
|
}
|
|
60692
|
+
if (texts.length === 2 && texts[0] === "" && texts[1] === "" && !(types[0].flags & 2944 /* Literal */) && !((_b = (_a = types[0].symbol) == null ? void 0 : _a.declarations) == null ? void 0 : _b.some((d) => d.parent.kind === 195 /* InferType */)) && isTypeAssignableTo(types[0], stringType)) {
|
|
60693
|
+
return types[0];
|
|
60694
|
+
}
|
|
60691
60695
|
const newTypes = [];
|
|
60692
60696
|
const newTexts = [];
|
|
60693
60697
|
let text = texts[0];
|
|
@@ -78583,19 +78587,16 @@ ${lanes.join("\n")}
|
|
|
78583
78587
|
}
|
|
78584
78588
|
}
|
|
78585
78589
|
}
|
|
78586
|
-
function
|
|
78590
|
+
function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
|
|
78587
78591
|
const signature = getSingleCallSignature(funcType);
|
|
78588
|
-
if (signature) {
|
|
78589
|
-
|
|
78590
|
-
if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
|
|
78591
|
-
return returnType;
|
|
78592
|
-
}
|
|
78592
|
+
if (signature && !signature.typeParameters) {
|
|
78593
|
+
return getReturnTypeOfSignature(signature);
|
|
78593
78594
|
}
|
|
78594
78595
|
}
|
|
78595
78596
|
function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
|
|
78596
78597
|
const funcType = checkExpression(expr.expression);
|
|
78597
78598
|
const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
|
|
78598
|
-
const returnType =
|
|
78599
|
+
const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
|
|
78599
78600
|
return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
|
|
78600
78601
|
}
|
|
78601
78602
|
function getTypeOfExpression(node) {
|
|
@@ -78640,7 +78641,7 @@ ${lanes.join("\n")}
|
|
|
78640
78641
|
/*requireStringLiteralLikeArgument*/
|
|
78641
78642
|
true
|
|
78642
78643
|
) && !isSymbolOrSymbolForCall(expr)) {
|
|
78643
|
-
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :
|
|
78644
|
+
return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
|
|
78644
78645
|
} else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
|
|
78645
78646
|
return getTypeFromTypeNode(expr.type);
|
|
78646
78647
|
} else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
|
|
@@ -83995,14 +83996,15 @@ ${lanes.join("\n")}
|
|
|
83995
83996
|
idText(id)
|
|
83996
83997
|
);
|
|
83997
83998
|
}
|
|
83998
|
-
if (!isIllegalExportDefaultInCJS && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
|
|
83999
|
-
|
|
83999
|
+
if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
|
|
84000
|
+
const nonLocalMeanings = getSymbolFlags(
|
|
84000
84001
|
sym,
|
|
84001
84002
|
/*excludeTypeOnlyMeanings*/
|
|
84002
84003
|
false,
|
|
84003
84004
|
/*excludeLocalMeanings*/
|
|
84004
84005
|
true
|
|
84005
|
-
)
|
|
84006
|
+
);
|
|
84007
|
+
if (sym.flags & 2097152 /* Alias */ && nonLocalMeanings & 788968 /* Type */ && !(nonLocalMeanings & 111551 /* Value */) && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) {
|
|
84006
84008
|
error2(
|
|
84007
84009
|
id,
|
|
84008
84010
|
node.isExportEquals ? Diagnostics._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported : Diagnostics._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,
|
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.4";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20240125`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-55371-20",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "d112f253fdae5b6693e1ad48beb351c9813f70c4"
|
|
118
118
|
}
|