@typescript-deploys/pr-build 5.4.0-pr-56736-6 → 5.4.0-pr-56652-11
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 +41 -64
- package/lib/tsserver.js +42 -65
- package/lib/typescript.js +42 -65
- package/lib/typingsInstaller.js +3 -5
- package/package.json +2 -3
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.20231212`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -3662,7 +3662,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
|
|
|
3662
3662
|
TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
|
|
3663
3663
|
TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
|
|
3664
3664
|
TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
|
|
3665
|
-
TypeFlags2[TypeFlags2["Simplifiable"] =
|
|
3665
|
+
TypeFlags2[TypeFlags2["Simplifiable"] = 29360128] = "Simplifiable";
|
|
3666
3666
|
TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
|
|
3667
3667
|
TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
|
|
3668
3668
|
TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask";
|
|
@@ -7794,9 +7794,7 @@ var Diagnostics = {
|
|
|
7794
7794
|
Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
|
|
7795
7795
|
Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
|
|
7796
7796
|
Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."),
|
|
7797
|
-
await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
|
|
7798
|
-
A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolatedModules_is_enabled: diag(18055, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolated_18055", "A member initializer in a enum declaration for a string value must be a string literal when 'isolatedModules' is enabled."),
|
|
7799
|
-
Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled: diag(18056, 1 /* Error */, "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056", "Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.")
|
|
7797
|
+
await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
|
|
7800
7798
|
};
|
|
7801
7799
|
|
|
7802
7800
|
// src/compiler/scanner.ts
|
|
@@ -57817,7 +57815,7 @@ function createTypeChecker(host) {
|
|
|
57817
57815
|
);
|
|
57818
57816
|
}
|
|
57819
57817
|
function shouldDeferIndexType(type, indexFlags = 0 /* None */) {
|
|
57820
|
-
return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */)
|
|
57818
|
+
return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */));
|
|
57821
57819
|
}
|
|
57822
57820
|
function getIndexType(type, indexFlags = defaultIndexFlags) {
|
|
57823
57821
|
type = getReducedType(type);
|
|
@@ -58256,10 +58254,10 @@ function createTypeChecker(host) {
|
|
|
58256
58254
|
return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
|
|
58257
58255
|
}
|
|
58258
58256
|
function getSimplifiedType(type, writing) {
|
|
58259
|
-
return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
|
|
58257
|
+
return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type.flags & 4194304 /* Index */ ? getSimplifiedIndexType(type) : type;
|
|
58260
58258
|
}
|
|
58261
58259
|
function distributeIndexOverObjectType(objectType, indexType, writing) {
|
|
58262
|
-
if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !
|
|
58260
|
+
if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !(maybeTypeOfKind(objectType, 465829888 /* Instantiable */) && some(objectType.types, isEmptyAnonymousObjectType))) {
|
|
58263
58261
|
const types = map(objectType.types, (t) => getSimplifiedType(getIndexedAccessType(t, indexType), writing));
|
|
58264
58262
|
return objectType.flags & 2097152 /* Intersection */ || writing ? getIntersectionType(types) : getUnionType(types);
|
|
58265
58263
|
}
|
|
@@ -58327,6 +58325,10 @@ function createTypeChecker(host) {
|
|
|
58327
58325
|
}
|
|
58328
58326
|
return type;
|
|
58329
58327
|
}
|
|
58328
|
+
function getSimplifiedIndexType(type) {
|
|
58329
|
+
const target = type.type;
|
|
58330
|
+
return target.flags & 2097152 /* Intersection */ && !some(target.types, isEmptyAnonymousObjectType) ? getUnionType(map(target.types, (t) => getIndexType(t, type.indexFlags))) : type;
|
|
58331
|
+
}
|
|
58330
58332
|
function isIntersectionEmpty(type1, type2) {
|
|
58331
58333
|
return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */);
|
|
58332
58334
|
}
|
|
@@ -60587,7 +60589,7 @@ function createTypeChecker(host) {
|
|
|
60587
60589
|
}
|
|
60588
60590
|
function getNormalizedType(type, writing) {
|
|
60589
60591
|
while (true) {
|
|
60590
|
-
const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags &
|
|
60592
|
+
const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
|
|
60591
60593
|
if (t === type)
|
|
60592
60594
|
return t;
|
|
60593
60595
|
type = t;
|
|
@@ -60608,7 +60610,7 @@ function createTypeChecker(host) {
|
|
|
60608
60610
|
}
|
|
60609
60611
|
function getNormalizedTupleType(type, writing) {
|
|
60610
60612
|
const elements = getElementTypes(type);
|
|
60611
|
-
const normalizedElements = sameMap(elements, (t) => t.flags &
|
|
60613
|
+
const normalizedElements = sameMap(elements, (t) => t.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
|
|
60612
60614
|
return elements !== normalizedElements ? createNormalizedTupleType(type.target, normalizedElements) : type;
|
|
60613
60615
|
}
|
|
60614
60616
|
function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) {
|
|
@@ -64631,7 +64633,10 @@ function createTypeChecker(host) {
|
|
|
64631
64633
|
}
|
|
64632
64634
|
}
|
|
64633
64635
|
function inferToMappedType(source, target, constraintType) {
|
|
64634
|
-
if (constraintType.flags &
|
|
64636
|
+
if (constraintType.flags & 4194304 /* Index */) {
|
|
64637
|
+
constraintType = getSimplifiedIndexType(constraintType);
|
|
64638
|
+
}
|
|
64639
|
+
if (constraintType.flags & 3145728 /* UnionOrIntersection */) {
|
|
64635
64640
|
let result = false;
|
|
64636
64641
|
for (const type of constraintType.types) {
|
|
64637
64642
|
result = inferToMappedType(source, target, type) || result;
|
|
@@ -67087,6 +67092,16 @@ function createTypeChecker(host) {
|
|
|
67087
67092
|
}
|
|
67088
67093
|
return symbol.isAssigned || false;
|
|
67089
67094
|
}
|
|
67095
|
+
function isSomeSymbolAssigned(rootDeclaration) {
|
|
67096
|
+
Debug.assert(isVariableDeclaration(rootDeclaration) || isParameter(rootDeclaration));
|
|
67097
|
+
return isSomeSymbolAssignedWorker(rootDeclaration.name);
|
|
67098
|
+
}
|
|
67099
|
+
function isSomeSymbolAssignedWorker(node) {
|
|
67100
|
+
if (node.kind === 80 /* Identifier */) {
|
|
67101
|
+
return isSymbolAssigned(getSymbolOfDeclaration(node.parent));
|
|
67102
|
+
}
|
|
67103
|
+
return some(node.elements, (e) => e.kind !== 232 /* OmittedExpression */ && isSomeSymbolAssignedWorker(e.name));
|
|
67104
|
+
}
|
|
67090
67105
|
function hasParentWithAssignmentsMarked(node) {
|
|
67091
67106
|
return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */));
|
|
67092
67107
|
}
|
|
@@ -67200,7 +67215,7 @@ function createTypeChecker(host) {
|
|
|
67200
67215
|
const parentType = getTypeForBindingElementParent(parent, 0 /* Normal */);
|
|
67201
67216
|
const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
67202
67217
|
links.flags &= ~4194304 /* InCheckIdentifier */;
|
|
67203
|
-
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(rootDeclaration.kind === 169 /* Parameter */ &&
|
|
67218
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(rootDeclaration.kind === 169 /* Parameter */ && isSomeSymbolAssigned(rootDeclaration))) {
|
|
67204
67219
|
const pattern = declaration.parent;
|
|
67205
67220
|
const narrowedType = getFlowTypeOfReference(
|
|
67206
67221
|
pattern,
|
|
@@ -67229,7 +67244,7 @@ function createTypeChecker(host) {
|
|
|
67229
67244
|
const contextualSignature = getContextualSignature(func);
|
|
67230
67245
|
if (contextualSignature && contextualSignature.parameters.length === 1 && signatureHasRestParameter(contextualSignature)) {
|
|
67231
67246
|
const restType = getReducedApparentType(instantiateType(getTypeOfSymbol(contextualSignature.parameters[0]), (_a = getInferenceContext(func)) == null ? void 0 : _a.nonFixingMapper));
|
|
67232
|
-
if (restType.flags & 1048576 /* Union */ && everyType(restType, isTupleType) && !
|
|
67247
|
+
if (restType.flags & 1048576 /* Union */ && everyType(restType, isTupleType) && !some(func.parameters, isSomeSymbolAssigned)) {
|
|
67233
67248
|
const narrowedType = getFlowTypeOfReference(
|
|
67234
67249
|
func,
|
|
67235
67250
|
restType,
|
|
@@ -80188,16 +80203,14 @@ function createTypeChecker(host) {
|
|
|
80188
80203
|
if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
|
|
80189
80204
|
nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
|
|
80190
80205
|
let autoValue = 0;
|
|
80191
|
-
let previous;
|
|
80192
80206
|
for (const member of node.members) {
|
|
80193
|
-
const value = computeMemberValue(member, autoValue
|
|
80207
|
+
const value = computeMemberValue(member, autoValue);
|
|
80194
80208
|
getNodeLinks(member).enumMemberValue = value;
|
|
80195
80209
|
autoValue = typeof value === "number" ? value + 1 : void 0;
|
|
80196
|
-
previous = member;
|
|
80197
80210
|
}
|
|
80198
80211
|
}
|
|
80199
80212
|
}
|
|
80200
|
-
function computeMemberValue(member, autoValue
|
|
80213
|
+
function computeMemberValue(member, autoValue) {
|
|
80201
80214
|
if (isComputedNonLiteralName(member.name)) {
|
|
80202
80215
|
error(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
80203
80216
|
} else {
|
|
@@ -80212,17 +80225,11 @@ function createTypeChecker(host) {
|
|
|
80212
80225
|
if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) {
|
|
80213
80226
|
return void 0;
|
|
80214
80227
|
}
|
|
80215
|
-
if (autoValue
|
|
80216
|
-
|
|
80217
|
-
return void 0;
|
|
80218
|
-
}
|
|
80219
|
-
if (compilerOptions.isolatedModules && (previous == null ? void 0 : previous.initializer) && !evaluatesToNumericLiteral(previous.initializer)) {
|
|
80220
|
-
error(
|
|
80221
|
-
member.name,
|
|
80222
|
-
Diagnostics.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled
|
|
80223
|
-
);
|
|
80228
|
+
if (autoValue !== void 0) {
|
|
80229
|
+
return autoValue;
|
|
80224
80230
|
}
|
|
80225
|
-
|
|
80231
|
+
error(member.name, Diagnostics.Enum_member_must_have_initializer);
|
|
80232
|
+
return void 0;
|
|
80226
80233
|
}
|
|
80227
80234
|
function computeConstantValue(member) {
|
|
80228
80235
|
const isConstEnum = isEnumConst(member.parent);
|
|
@@ -80234,11 +80241,6 @@ function createTypeChecker(host) {
|
|
|
80234
80241
|
initializer,
|
|
80235
80242
|
isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value
|
|
80236
80243
|
);
|
|
80237
|
-
} else if (compilerOptions.isolatedModules && typeof value === "string" && !evaluatesToStringLiteral(initializer)) {
|
|
80238
|
-
error(
|
|
80239
|
-
initializer,
|
|
80240
|
-
Diagnostics.A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolatedModules_is_enabled
|
|
80241
|
-
);
|
|
80242
80244
|
}
|
|
80243
80245
|
} else if (isConstEnum) {
|
|
80244
80246
|
error(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions);
|
|
@@ -80249,37 +80251,6 @@ function createTypeChecker(host) {
|
|
|
80249
80251
|
}
|
|
80250
80252
|
return value;
|
|
80251
80253
|
}
|
|
80252
|
-
function evaluatesToNumericLiteral(expr) {
|
|
80253
|
-
switch (expr.kind) {
|
|
80254
|
-
case 224 /* PrefixUnaryExpression */:
|
|
80255
|
-
return evaluatesToNumericLiteral(expr.operand);
|
|
80256
|
-
case 226 /* BinaryExpression */:
|
|
80257
|
-
return evaluatesToNumericLiteral(expr.left) && evaluatesToNumericLiteral(expr.right);
|
|
80258
|
-
case 217 /* ParenthesizedExpression */:
|
|
80259
|
-
return evaluatesToNumericLiteral(expr.expression);
|
|
80260
|
-
case 9 /* NumericLiteral */:
|
|
80261
|
-
return true;
|
|
80262
|
-
}
|
|
80263
|
-
return false;
|
|
80264
|
-
}
|
|
80265
|
-
function evaluatesToStringLiteral(expr) {
|
|
80266
|
-
switch (expr.kind) {
|
|
80267
|
-
case 226 /* BinaryExpression */:
|
|
80268
|
-
const left = expr.left;
|
|
80269
|
-
const right = expr.right;
|
|
80270
|
-
const leftIsNumeric = evaluatesToNumericLiteral(left);
|
|
80271
|
-
const rightIsNumeric = evaluatesToNumericLiteral(right);
|
|
80272
|
-
return !(leftIsNumeric && rightIsNumeric) && (evaluatesToStringLiteral(left) || leftIsNumeric) && (evaluatesToStringLiteral(right) || rightIsNumeric) && expr.operatorToken.kind === 40 /* PlusToken */;
|
|
80273
|
-
case 228 /* TemplateExpression */:
|
|
80274
|
-
return expr.templateSpans.every((span) => evaluatesToStringLiteral(span.expression));
|
|
80275
|
-
case 217 /* ParenthesizedExpression */:
|
|
80276
|
-
return evaluatesToStringLiteral(expr.expression);
|
|
80277
|
-
case 11 /* StringLiteral */:
|
|
80278
|
-
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
80279
|
-
return true;
|
|
80280
|
-
}
|
|
80281
|
-
return false;
|
|
80282
|
-
}
|
|
80283
80254
|
function evaluate(expr, location) {
|
|
80284
80255
|
switch (expr.kind) {
|
|
80285
80256
|
case 224 /* PrefixUnaryExpression */:
|
|
@@ -81778,9 +81749,12 @@ function createTypeChecker(host) {
|
|
|
81778
81749
|
case 1 /* ExportsProperty */:
|
|
81779
81750
|
case 3 /* PrototypeProperty */:
|
|
81780
81751
|
return getSymbolOfNode(entityName.parent);
|
|
81752
|
+
case 5 /* Property */:
|
|
81753
|
+
if (isPropertyAccessExpression(entityName.parent) && getLeftmostAccessExpression(entityName.parent) === entityName) {
|
|
81754
|
+
return void 0;
|
|
81755
|
+
}
|
|
81781
81756
|
case 4 /* ThisProperty */:
|
|
81782
81757
|
case 2 /* ModuleExports */:
|
|
81783
|
-
case 5 /* Property */:
|
|
81784
81758
|
return getSymbolOfDeclaration(entityName.parent.parent);
|
|
81785
81759
|
}
|
|
81786
81760
|
}
|
|
@@ -108322,6 +108296,9 @@ function transformDeclarations(context) {
|
|
|
108322
108296
|
}
|
|
108323
108297
|
function mapReferencesIntoArray(references2, outputFilePath2) {
|
|
108324
108298
|
return (file) => {
|
|
108299
|
+
if (exportedModulesFromDeclarationEmit == null ? void 0 : exportedModulesFromDeclarationEmit.includes(file.symbol)) {
|
|
108300
|
+
return;
|
|
108301
|
+
}
|
|
108325
108302
|
let declFileName;
|
|
108326
108303
|
if (file.isDeclarationFile) {
|
|
108327
108304
|
declFileName = file.fileName;
|
package/lib/tsserver.js
CHANGED
|
@@ -2335,7 +2335,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2335
2335
|
|
|
2336
2336
|
// src/compiler/corePublic.ts
|
|
2337
2337
|
var versionMajorMinor = "5.4";
|
|
2338
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2338
|
+
var version = `${versionMajorMinor}.0-insiders.20231212`;
|
|
2339
2339
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2340
2340
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2341
2341
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -6680,7 +6680,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
|
|
|
6680
6680
|
TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
|
|
6681
6681
|
TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
|
|
6682
6682
|
TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
|
|
6683
|
-
TypeFlags2[TypeFlags2["Simplifiable"] =
|
|
6683
|
+
TypeFlags2[TypeFlags2["Simplifiable"] = 29360128] = "Simplifiable";
|
|
6684
6684
|
TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
|
|
6685
6685
|
TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
|
|
6686
6686
|
TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask";
|
|
@@ -11349,9 +11349,7 @@ var Diagnostics = {
|
|
|
11349
11349
|
Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
|
|
11350
11350
|
Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
|
|
11351
11351
|
Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."),
|
|
11352
|
-
await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
|
|
11353
|
-
A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolatedModules_is_enabled: diag(18055, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolated_18055", "A member initializer in a enum declaration for a string value must be a string literal when 'isolatedModules' is enabled."),
|
|
11354
|
-
Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled: diag(18056, 1 /* Error */, "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056", "Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.")
|
|
11352
|
+
await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
|
|
11355
11353
|
};
|
|
11356
11354
|
|
|
11357
11355
|
// src/compiler/scanner.ts
|
|
@@ -62532,7 +62530,7 @@ function createTypeChecker(host) {
|
|
|
62532
62530
|
);
|
|
62533
62531
|
}
|
|
62534
62532
|
function shouldDeferIndexType(type, indexFlags = 0 /* None */) {
|
|
62535
|
-
return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */)
|
|
62533
|
+
return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */));
|
|
62536
62534
|
}
|
|
62537
62535
|
function getIndexType(type, indexFlags = defaultIndexFlags) {
|
|
62538
62536
|
type = getReducedType(type);
|
|
@@ -62971,10 +62969,10 @@ function createTypeChecker(host) {
|
|
|
62971
62969
|
return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
|
|
62972
62970
|
}
|
|
62973
62971
|
function getSimplifiedType(type, writing) {
|
|
62974
|
-
return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
|
|
62972
|
+
return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type.flags & 4194304 /* Index */ ? getSimplifiedIndexType(type) : type;
|
|
62975
62973
|
}
|
|
62976
62974
|
function distributeIndexOverObjectType(objectType, indexType, writing) {
|
|
62977
|
-
if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !
|
|
62975
|
+
if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !(maybeTypeOfKind(objectType, 465829888 /* Instantiable */) && some(objectType.types, isEmptyAnonymousObjectType))) {
|
|
62978
62976
|
const types = map(objectType.types, (t) => getSimplifiedType(getIndexedAccessType(t, indexType), writing));
|
|
62979
62977
|
return objectType.flags & 2097152 /* Intersection */ || writing ? getIntersectionType(types) : getUnionType(types);
|
|
62980
62978
|
}
|
|
@@ -63042,6 +63040,10 @@ function createTypeChecker(host) {
|
|
|
63042
63040
|
}
|
|
63043
63041
|
return type;
|
|
63044
63042
|
}
|
|
63043
|
+
function getSimplifiedIndexType(type) {
|
|
63044
|
+
const target = type.type;
|
|
63045
|
+
return target.flags & 2097152 /* Intersection */ && !some(target.types, isEmptyAnonymousObjectType) ? getUnionType(map(target.types, (t) => getIndexType(t, type.indexFlags))) : type;
|
|
63046
|
+
}
|
|
63045
63047
|
function isIntersectionEmpty(type1, type2) {
|
|
63046
63048
|
return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */);
|
|
63047
63049
|
}
|
|
@@ -65302,7 +65304,7 @@ function createTypeChecker(host) {
|
|
|
65302
65304
|
}
|
|
65303
65305
|
function getNormalizedType(type, writing) {
|
|
65304
65306
|
while (true) {
|
|
65305
|
-
const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags &
|
|
65307
|
+
const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
|
|
65306
65308
|
if (t === type)
|
|
65307
65309
|
return t;
|
|
65308
65310
|
type = t;
|
|
@@ -65323,7 +65325,7 @@ function createTypeChecker(host) {
|
|
|
65323
65325
|
}
|
|
65324
65326
|
function getNormalizedTupleType(type, writing) {
|
|
65325
65327
|
const elements = getElementTypes(type);
|
|
65326
|
-
const normalizedElements = sameMap(elements, (t) => t.flags &
|
|
65328
|
+
const normalizedElements = sameMap(elements, (t) => t.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
|
|
65327
65329
|
return elements !== normalizedElements ? createNormalizedTupleType(type.target, normalizedElements) : type;
|
|
65328
65330
|
}
|
|
65329
65331
|
function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) {
|
|
@@ -69346,7 +69348,10 @@ function createTypeChecker(host) {
|
|
|
69346
69348
|
}
|
|
69347
69349
|
}
|
|
69348
69350
|
function inferToMappedType(source, target, constraintType) {
|
|
69349
|
-
if (constraintType.flags &
|
|
69351
|
+
if (constraintType.flags & 4194304 /* Index */) {
|
|
69352
|
+
constraintType = getSimplifiedIndexType(constraintType);
|
|
69353
|
+
}
|
|
69354
|
+
if (constraintType.flags & 3145728 /* UnionOrIntersection */) {
|
|
69350
69355
|
let result = false;
|
|
69351
69356
|
for (const type of constraintType.types) {
|
|
69352
69357
|
result = inferToMappedType(source, target, type) || result;
|
|
@@ -71802,6 +71807,16 @@ function createTypeChecker(host) {
|
|
|
71802
71807
|
}
|
|
71803
71808
|
return symbol.isAssigned || false;
|
|
71804
71809
|
}
|
|
71810
|
+
function isSomeSymbolAssigned(rootDeclaration) {
|
|
71811
|
+
Debug.assert(isVariableDeclaration(rootDeclaration) || isParameter(rootDeclaration));
|
|
71812
|
+
return isSomeSymbolAssignedWorker(rootDeclaration.name);
|
|
71813
|
+
}
|
|
71814
|
+
function isSomeSymbolAssignedWorker(node) {
|
|
71815
|
+
if (node.kind === 80 /* Identifier */) {
|
|
71816
|
+
return isSymbolAssigned(getSymbolOfDeclaration(node.parent));
|
|
71817
|
+
}
|
|
71818
|
+
return some(node.elements, (e) => e.kind !== 232 /* OmittedExpression */ && isSomeSymbolAssignedWorker(e.name));
|
|
71819
|
+
}
|
|
71805
71820
|
function hasParentWithAssignmentsMarked(node) {
|
|
71806
71821
|
return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */));
|
|
71807
71822
|
}
|
|
@@ -71915,7 +71930,7 @@ function createTypeChecker(host) {
|
|
|
71915
71930
|
const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */);
|
|
71916
71931
|
const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
71917
71932
|
links.flags &= ~4194304 /* InCheckIdentifier */;
|
|
71918
|
-
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(rootDeclaration.kind === 169 /* Parameter */ &&
|
|
71933
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(rootDeclaration.kind === 169 /* Parameter */ && isSomeSymbolAssigned(rootDeclaration))) {
|
|
71919
71934
|
const pattern = declaration.parent;
|
|
71920
71935
|
const narrowedType = getFlowTypeOfReference(
|
|
71921
71936
|
pattern,
|
|
@@ -71944,7 +71959,7 @@ function createTypeChecker(host) {
|
|
|
71944
71959
|
const contextualSignature = getContextualSignature(func);
|
|
71945
71960
|
if (contextualSignature && contextualSignature.parameters.length === 1 && signatureHasRestParameter(contextualSignature)) {
|
|
71946
71961
|
const restType = getReducedApparentType(instantiateType(getTypeOfSymbol(contextualSignature.parameters[0]), (_a = getInferenceContext(func)) == null ? void 0 : _a.nonFixingMapper));
|
|
71947
|
-
if (restType.flags & 1048576 /* Union */ && everyType(restType, isTupleType) && !
|
|
71962
|
+
if (restType.flags & 1048576 /* Union */ && everyType(restType, isTupleType) && !some(func.parameters, isSomeSymbolAssigned)) {
|
|
71948
71963
|
const narrowedType = getFlowTypeOfReference(
|
|
71949
71964
|
func,
|
|
71950
71965
|
restType,
|
|
@@ -84903,16 +84918,14 @@ function createTypeChecker(host) {
|
|
|
84903
84918
|
if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
|
|
84904
84919
|
nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
|
|
84905
84920
|
let autoValue = 0;
|
|
84906
|
-
let previous;
|
|
84907
84921
|
for (const member of node.members) {
|
|
84908
|
-
const value = computeMemberValue(member, autoValue
|
|
84922
|
+
const value = computeMemberValue(member, autoValue);
|
|
84909
84923
|
getNodeLinks(member).enumMemberValue = value;
|
|
84910
84924
|
autoValue = typeof value === "number" ? value + 1 : void 0;
|
|
84911
|
-
previous = member;
|
|
84912
84925
|
}
|
|
84913
84926
|
}
|
|
84914
84927
|
}
|
|
84915
|
-
function computeMemberValue(member, autoValue
|
|
84928
|
+
function computeMemberValue(member, autoValue) {
|
|
84916
84929
|
if (isComputedNonLiteralName(member.name)) {
|
|
84917
84930
|
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
84918
84931
|
} else {
|
|
@@ -84927,17 +84940,11 @@ function createTypeChecker(host) {
|
|
|
84927
84940
|
if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) {
|
|
84928
84941
|
return void 0;
|
|
84929
84942
|
}
|
|
84930
|
-
if (autoValue
|
|
84931
|
-
|
|
84932
|
-
return void 0;
|
|
84933
|
-
}
|
|
84934
|
-
if (compilerOptions.isolatedModules && (previous == null ? void 0 : previous.initializer) && !evaluatesToNumericLiteral(previous.initializer)) {
|
|
84935
|
-
error2(
|
|
84936
|
-
member.name,
|
|
84937
|
-
Diagnostics.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled
|
|
84938
|
-
);
|
|
84943
|
+
if (autoValue !== void 0) {
|
|
84944
|
+
return autoValue;
|
|
84939
84945
|
}
|
|
84940
|
-
|
|
84946
|
+
error2(member.name, Diagnostics.Enum_member_must_have_initializer);
|
|
84947
|
+
return void 0;
|
|
84941
84948
|
}
|
|
84942
84949
|
function computeConstantValue(member) {
|
|
84943
84950
|
const isConstEnum = isEnumConst(member.parent);
|
|
@@ -84949,11 +84956,6 @@ function createTypeChecker(host) {
|
|
|
84949
84956
|
initializer,
|
|
84950
84957
|
isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value
|
|
84951
84958
|
);
|
|
84952
|
-
} else if (compilerOptions.isolatedModules && typeof value === "string" && !evaluatesToStringLiteral(initializer)) {
|
|
84953
|
-
error2(
|
|
84954
|
-
initializer,
|
|
84955
|
-
Diagnostics.A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolatedModules_is_enabled
|
|
84956
|
-
);
|
|
84957
84959
|
}
|
|
84958
84960
|
} else if (isConstEnum) {
|
|
84959
84961
|
error2(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions);
|
|
@@ -84964,37 +84966,6 @@ function createTypeChecker(host) {
|
|
|
84964
84966
|
}
|
|
84965
84967
|
return value;
|
|
84966
84968
|
}
|
|
84967
|
-
function evaluatesToNumericLiteral(expr) {
|
|
84968
|
-
switch (expr.kind) {
|
|
84969
|
-
case 224 /* PrefixUnaryExpression */:
|
|
84970
|
-
return evaluatesToNumericLiteral(expr.operand);
|
|
84971
|
-
case 226 /* BinaryExpression */:
|
|
84972
|
-
return evaluatesToNumericLiteral(expr.left) && evaluatesToNumericLiteral(expr.right);
|
|
84973
|
-
case 217 /* ParenthesizedExpression */:
|
|
84974
|
-
return evaluatesToNumericLiteral(expr.expression);
|
|
84975
|
-
case 9 /* NumericLiteral */:
|
|
84976
|
-
return true;
|
|
84977
|
-
}
|
|
84978
|
-
return false;
|
|
84979
|
-
}
|
|
84980
|
-
function evaluatesToStringLiteral(expr) {
|
|
84981
|
-
switch (expr.kind) {
|
|
84982
|
-
case 226 /* BinaryExpression */:
|
|
84983
|
-
const left = expr.left;
|
|
84984
|
-
const right = expr.right;
|
|
84985
|
-
const leftIsNumeric = evaluatesToNumericLiteral(left);
|
|
84986
|
-
const rightIsNumeric = evaluatesToNumericLiteral(right);
|
|
84987
|
-
return !(leftIsNumeric && rightIsNumeric) && (evaluatesToStringLiteral(left) || leftIsNumeric) && (evaluatesToStringLiteral(right) || rightIsNumeric) && expr.operatorToken.kind === 40 /* PlusToken */;
|
|
84988
|
-
case 228 /* TemplateExpression */:
|
|
84989
|
-
return expr.templateSpans.every((span) => evaluatesToStringLiteral(span.expression));
|
|
84990
|
-
case 217 /* ParenthesizedExpression */:
|
|
84991
|
-
return evaluatesToStringLiteral(expr.expression);
|
|
84992
|
-
case 11 /* StringLiteral */:
|
|
84993
|
-
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
84994
|
-
return true;
|
|
84995
|
-
}
|
|
84996
|
-
return false;
|
|
84997
|
-
}
|
|
84998
84969
|
function evaluate(expr, location) {
|
|
84999
84970
|
switch (expr.kind) {
|
|
85000
84971
|
case 224 /* PrefixUnaryExpression */:
|
|
@@ -86493,9 +86464,12 @@ function createTypeChecker(host) {
|
|
|
86493
86464
|
case 1 /* ExportsProperty */:
|
|
86494
86465
|
case 3 /* PrototypeProperty */:
|
|
86495
86466
|
return getSymbolOfNode(entityName.parent);
|
|
86467
|
+
case 5 /* Property */:
|
|
86468
|
+
if (isPropertyAccessExpression(entityName.parent) && getLeftmostAccessExpression(entityName.parent) === entityName) {
|
|
86469
|
+
return void 0;
|
|
86470
|
+
}
|
|
86496
86471
|
case 4 /* ThisProperty */:
|
|
86497
86472
|
case 2 /* ModuleExports */:
|
|
86498
|
-
case 5 /* Property */:
|
|
86499
86473
|
return getSymbolOfDeclaration(entityName.parent.parent);
|
|
86500
86474
|
}
|
|
86501
86475
|
}
|
|
@@ -113208,6 +113182,9 @@ function transformDeclarations(context) {
|
|
|
113208
113182
|
}
|
|
113209
113183
|
function mapReferencesIntoArray(references2, outputFilePath2) {
|
|
113210
113184
|
return (file) => {
|
|
113185
|
+
if (exportedModulesFromDeclarationEmit == null ? void 0 : exportedModulesFromDeclarationEmit.includes(file.symbol)) {
|
|
113186
|
+
return;
|
|
113187
|
+
}
|
|
113211
113188
|
let declFileName;
|
|
113212
113189
|
if (file.isDeclarationFile) {
|
|
113213
113190
|
declFileName = file.fileName;
|
|
@@ -160340,7 +160317,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
|
|
|
160340
160317
|
case 59 /* ColonToken */:
|
|
160341
160318
|
return parentKind === 172 /* PropertyDeclaration */ || parentKind === 171 /* PropertySignature */ || parentKind === 169 /* Parameter */ || parentKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(parentKind);
|
|
160342
160319
|
case 64 /* EqualsToken */:
|
|
160343
|
-
return parentKind === 265 /* TypeAliasDeclaration */;
|
|
160320
|
+
return parentKind === 265 /* TypeAliasDeclaration */ || parentKind === 168 /* TypeParameter */;
|
|
160344
160321
|
case 130 /* AsKeyword */:
|
|
160345
160322
|
return parentKind === 234 /* AsExpression */;
|
|
160346
160323
|
case 30 /* LessThanToken */:
|
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.20231212`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -4438,7 +4438,7 @@ ${lanes.join("\n")}
|
|
|
4438
4438
|
TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
|
|
4439
4439
|
TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
|
|
4440
4440
|
TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
|
|
4441
|
-
TypeFlags2[TypeFlags2["Simplifiable"] =
|
|
4441
|
+
TypeFlags2[TypeFlags2["Simplifiable"] = 29360128] = "Simplifiable";
|
|
4442
4442
|
TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
|
|
4443
4443
|
TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
|
|
4444
4444
|
TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask";
|
|
@@ -9124,9 +9124,7 @@ ${lanes.join("\n")}
|
|
|
9124
9124
|
Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
|
|
9125
9125
|
Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
|
|
9126
9126
|
Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."),
|
|
9127
|
-
await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
|
|
9128
|
-
A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolatedModules_is_enabled: diag(18055, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolated_18055", "A member initializer in a enum declaration for a string value must be a string literal when 'isolatedModules' is enabled."),
|
|
9129
|
-
Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled: diag(18056, 1 /* Error */, "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056", "Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.")
|
|
9127
|
+
await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
|
|
9130
9128
|
};
|
|
9131
9129
|
}
|
|
9132
9130
|
});
|
|
@@ -60292,7 +60290,7 @@ ${lanes.join("\n")}
|
|
|
60292
60290
|
);
|
|
60293
60291
|
}
|
|
60294
60292
|
function shouldDeferIndexType(type, indexFlags = 0 /* None */) {
|
|
60295
|
-
return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */)
|
|
60293
|
+
return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */));
|
|
60296
60294
|
}
|
|
60297
60295
|
function getIndexType(type, indexFlags = defaultIndexFlags) {
|
|
60298
60296
|
type = getReducedType(type);
|
|
@@ -60731,10 +60729,10 @@ ${lanes.join("\n")}
|
|
|
60731
60729
|
return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
|
|
60732
60730
|
}
|
|
60733
60731
|
function getSimplifiedType(type, writing) {
|
|
60734
|
-
return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
|
|
60732
|
+
return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type.flags & 4194304 /* Index */ ? getSimplifiedIndexType(type) : type;
|
|
60735
60733
|
}
|
|
60736
60734
|
function distributeIndexOverObjectType(objectType, indexType, writing) {
|
|
60737
|
-
if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !
|
|
60735
|
+
if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !(maybeTypeOfKind(objectType, 465829888 /* Instantiable */) && some(objectType.types, isEmptyAnonymousObjectType))) {
|
|
60738
60736
|
const types = map(objectType.types, (t) => getSimplifiedType(getIndexedAccessType(t, indexType), writing));
|
|
60739
60737
|
return objectType.flags & 2097152 /* Intersection */ || writing ? getIntersectionType(types) : getUnionType(types);
|
|
60740
60738
|
}
|
|
@@ -60802,6 +60800,10 @@ ${lanes.join("\n")}
|
|
|
60802
60800
|
}
|
|
60803
60801
|
return type;
|
|
60804
60802
|
}
|
|
60803
|
+
function getSimplifiedIndexType(type) {
|
|
60804
|
+
const target = type.type;
|
|
60805
|
+
return target.flags & 2097152 /* Intersection */ && !some(target.types, isEmptyAnonymousObjectType) ? getUnionType(map(target.types, (t) => getIndexType(t, type.indexFlags))) : type;
|
|
60806
|
+
}
|
|
60805
60807
|
function isIntersectionEmpty(type1, type2) {
|
|
60806
60808
|
return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */);
|
|
60807
60809
|
}
|
|
@@ -63062,7 +63064,7 @@ ${lanes.join("\n")}
|
|
|
63062
63064
|
}
|
|
63063
63065
|
function getNormalizedType(type, writing) {
|
|
63064
63066
|
while (true) {
|
|
63065
|
-
const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags &
|
|
63067
|
+
const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
|
|
63066
63068
|
if (t === type)
|
|
63067
63069
|
return t;
|
|
63068
63070
|
type = t;
|
|
@@ -63083,7 +63085,7 @@ ${lanes.join("\n")}
|
|
|
63083
63085
|
}
|
|
63084
63086
|
function getNormalizedTupleType(type, writing) {
|
|
63085
63087
|
const elements = getElementTypes(type);
|
|
63086
|
-
const normalizedElements = sameMap(elements, (t) => t.flags &
|
|
63088
|
+
const normalizedElements = sameMap(elements, (t) => t.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
|
|
63087
63089
|
return elements !== normalizedElements ? createNormalizedTupleType(type.target, normalizedElements) : type;
|
|
63088
63090
|
}
|
|
63089
63091
|
function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) {
|
|
@@ -67106,7 +67108,10 @@ ${lanes.join("\n")}
|
|
|
67106
67108
|
}
|
|
67107
67109
|
}
|
|
67108
67110
|
function inferToMappedType(source, target, constraintType) {
|
|
67109
|
-
if (constraintType.flags &
|
|
67111
|
+
if (constraintType.flags & 4194304 /* Index */) {
|
|
67112
|
+
constraintType = getSimplifiedIndexType(constraintType);
|
|
67113
|
+
}
|
|
67114
|
+
if (constraintType.flags & 3145728 /* UnionOrIntersection */) {
|
|
67110
67115
|
let result = false;
|
|
67111
67116
|
for (const type of constraintType.types) {
|
|
67112
67117
|
result = inferToMappedType(source, target, type) || result;
|
|
@@ -69562,6 +69567,16 @@ ${lanes.join("\n")}
|
|
|
69562
69567
|
}
|
|
69563
69568
|
return symbol.isAssigned || false;
|
|
69564
69569
|
}
|
|
69570
|
+
function isSomeSymbolAssigned(rootDeclaration) {
|
|
69571
|
+
Debug.assert(isVariableDeclaration(rootDeclaration) || isParameter(rootDeclaration));
|
|
69572
|
+
return isSomeSymbolAssignedWorker(rootDeclaration.name);
|
|
69573
|
+
}
|
|
69574
|
+
function isSomeSymbolAssignedWorker(node) {
|
|
69575
|
+
if (node.kind === 80 /* Identifier */) {
|
|
69576
|
+
return isSymbolAssigned(getSymbolOfDeclaration(node.parent));
|
|
69577
|
+
}
|
|
69578
|
+
return some(node.elements, (e) => e.kind !== 232 /* OmittedExpression */ && isSomeSymbolAssignedWorker(e.name));
|
|
69579
|
+
}
|
|
69565
69580
|
function hasParentWithAssignmentsMarked(node) {
|
|
69566
69581
|
return !!findAncestor(node.parent, (node2) => (isFunctionLike(node2) || isCatchClause(node2)) && !!(getNodeLinks(node2).flags & 131072 /* AssignmentsMarked */));
|
|
69567
69582
|
}
|
|
@@ -69675,7 +69690,7 @@ ${lanes.join("\n")}
|
|
|
69675
69690
|
const parentType = getTypeForBindingElementParent(parent2, 0 /* Normal */);
|
|
69676
69691
|
const parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
69677
69692
|
links.flags &= ~4194304 /* InCheckIdentifier */;
|
|
69678
|
-
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(rootDeclaration.kind === 169 /* Parameter */ &&
|
|
69693
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* Union */ && !(rootDeclaration.kind === 169 /* Parameter */ && isSomeSymbolAssigned(rootDeclaration))) {
|
|
69679
69694
|
const pattern = declaration.parent;
|
|
69680
69695
|
const narrowedType = getFlowTypeOfReference(
|
|
69681
69696
|
pattern,
|
|
@@ -69704,7 +69719,7 @@ ${lanes.join("\n")}
|
|
|
69704
69719
|
const contextualSignature = getContextualSignature(func);
|
|
69705
69720
|
if (contextualSignature && contextualSignature.parameters.length === 1 && signatureHasRestParameter(contextualSignature)) {
|
|
69706
69721
|
const restType = getReducedApparentType(instantiateType(getTypeOfSymbol(contextualSignature.parameters[0]), (_a = getInferenceContext(func)) == null ? void 0 : _a.nonFixingMapper));
|
|
69707
|
-
if (restType.flags & 1048576 /* Union */ && everyType(restType, isTupleType) && !
|
|
69722
|
+
if (restType.flags & 1048576 /* Union */ && everyType(restType, isTupleType) && !some(func.parameters, isSomeSymbolAssigned)) {
|
|
69708
69723
|
const narrowedType = getFlowTypeOfReference(
|
|
69709
69724
|
func,
|
|
69710
69725
|
restType,
|
|
@@ -82663,16 +82678,14 @@ ${lanes.join("\n")}
|
|
|
82663
82678
|
if (!(nodeLinks2.flags & 1024 /* EnumValuesComputed */)) {
|
|
82664
82679
|
nodeLinks2.flags |= 1024 /* EnumValuesComputed */;
|
|
82665
82680
|
let autoValue = 0;
|
|
82666
|
-
let previous;
|
|
82667
82681
|
for (const member of node.members) {
|
|
82668
|
-
const value = computeMemberValue(member, autoValue
|
|
82682
|
+
const value = computeMemberValue(member, autoValue);
|
|
82669
82683
|
getNodeLinks(member).enumMemberValue = value;
|
|
82670
82684
|
autoValue = typeof value === "number" ? value + 1 : void 0;
|
|
82671
|
-
previous = member;
|
|
82672
82685
|
}
|
|
82673
82686
|
}
|
|
82674
82687
|
}
|
|
82675
|
-
function computeMemberValue(member, autoValue
|
|
82688
|
+
function computeMemberValue(member, autoValue) {
|
|
82676
82689
|
if (isComputedNonLiteralName(member.name)) {
|
|
82677
82690
|
error2(member.name, Diagnostics.Computed_property_names_are_not_allowed_in_enums);
|
|
82678
82691
|
} else {
|
|
@@ -82687,17 +82700,11 @@ ${lanes.join("\n")}
|
|
|
82687
82700
|
if (member.parent.flags & 33554432 /* Ambient */ && !isEnumConst(member.parent)) {
|
|
82688
82701
|
return void 0;
|
|
82689
82702
|
}
|
|
82690
|
-
if (autoValue
|
|
82691
|
-
|
|
82692
|
-
return void 0;
|
|
82693
|
-
}
|
|
82694
|
-
if (compilerOptions.isolatedModules && (previous == null ? void 0 : previous.initializer) && !evaluatesToNumericLiteral(previous.initializer)) {
|
|
82695
|
-
error2(
|
|
82696
|
-
member.name,
|
|
82697
|
-
Diagnostics.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled
|
|
82698
|
-
);
|
|
82703
|
+
if (autoValue !== void 0) {
|
|
82704
|
+
return autoValue;
|
|
82699
82705
|
}
|
|
82700
|
-
|
|
82706
|
+
error2(member.name, Diagnostics.Enum_member_must_have_initializer);
|
|
82707
|
+
return void 0;
|
|
82701
82708
|
}
|
|
82702
82709
|
function computeConstantValue(member) {
|
|
82703
82710
|
const isConstEnum = isEnumConst(member.parent);
|
|
@@ -82709,11 +82716,6 @@ ${lanes.join("\n")}
|
|
|
82709
82716
|
initializer,
|
|
82710
82717
|
isNaN(value) ? Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN : Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value
|
|
82711
82718
|
);
|
|
82712
|
-
} else if (compilerOptions.isolatedModules && typeof value === "string" && !evaluatesToStringLiteral(initializer)) {
|
|
82713
|
-
error2(
|
|
82714
|
-
initializer,
|
|
82715
|
-
Diagnostics.A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolatedModules_is_enabled
|
|
82716
|
-
);
|
|
82717
82719
|
}
|
|
82718
82720
|
} else if (isConstEnum) {
|
|
82719
82721
|
error2(initializer, Diagnostics.const_enum_member_initializers_must_be_constant_expressions);
|
|
@@ -82724,37 +82726,6 @@ ${lanes.join("\n")}
|
|
|
82724
82726
|
}
|
|
82725
82727
|
return value;
|
|
82726
82728
|
}
|
|
82727
|
-
function evaluatesToNumericLiteral(expr) {
|
|
82728
|
-
switch (expr.kind) {
|
|
82729
|
-
case 224 /* PrefixUnaryExpression */:
|
|
82730
|
-
return evaluatesToNumericLiteral(expr.operand);
|
|
82731
|
-
case 226 /* BinaryExpression */:
|
|
82732
|
-
return evaluatesToNumericLiteral(expr.left) && evaluatesToNumericLiteral(expr.right);
|
|
82733
|
-
case 217 /* ParenthesizedExpression */:
|
|
82734
|
-
return evaluatesToNumericLiteral(expr.expression);
|
|
82735
|
-
case 9 /* NumericLiteral */:
|
|
82736
|
-
return true;
|
|
82737
|
-
}
|
|
82738
|
-
return false;
|
|
82739
|
-
}
|
|
82740
|
-
function evaluatesToStringLiteral(expr) {
|
|
82741
|
-
switch (expr.kind) {
|
|
82742
|
-
case 226 /* BinaryExpression */:
|
|
82743
|
-
const left = expr.left;
|
|
82744
|
-
const right = expr.right;
|
|
82745
|
-
const leftIsNumeric = evaluatesToNumericLiteral(left);
|
|
82746
|
-
const rightIsNumeric = evaluatesToNumericLiteral(right);
|
|
82747
|
-
return !(leftIsNumeric && rightIsNumeric) && (evaluatesToStringLiteral(left) || leftIsNumeric) && (evaluatesToStringLiteral(right) || rightIsNumeric) && expr.operatorToken.kind === 40 /* PlusToken */;
|
|
82748
|
-
case 228 /* TemplateExpression */:
|
|
82749
|
-
return expr.templateSpans.every((span) => evaluatesToStringLiteral(span.expression));
|
|
82750
|
-
case 217 /* ParenthesizedExpression */:
|
|
82751
|
-
return evaluatesToStringLiteral(expr.expression);
|
|
82752
|
-
case 11 /* StringLiteral */:
|
|
82753
|
-
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
82754
|
-
return true;
|
|
82755
|
-
}
|
|
82756
|
-
return false;
|
|
82757
|
-
}
|
|
82758
82729
|
function evaluate(expr, location) {
|
|
82759
82730
|
switch (expr.kind) {
|
|
82760
82731
|
case 224 /* PrefixUnaryExpression */:
|
|
@@ -84253,9 +84224,12 @@ ${lanes.join("\n")}
|
|
|
84253
84224
|
case 1 /* ExportsProperty */:
|
|
84254
84225
|
case 3 /* PrototypeProperty */:
|
|
84255
84226
|
return getSymbolOfNode(entityName.parent);
|
|
84227
|
+
case 5 /* Property */:
|
|
84228
|
+
if (isPropertyAccessExpression(entityName.parent) && getLeftmostAccessExpression(entityName.parent) === entityName) {
|
|
84229
|
+
return void 0;
|
|
84230
|
+
}
|
|
84256
84231
|
case 4 /* ThisProperty */:
|
|
84257
84232
|
case 2 /* ModuleExports */:
|
|
84258
|
-
case 5 /* Property */:
|
|
84259
84233
|
return getSymbolOfDeclaration(entityName.parent.parent);
|
|
84260
84234
|
}
|
|
84261
84235
|
}
|
|
@@ -111277,6 +111251,9 @@ ${lanes.join("\n")}
|
|
|
111277
111251
|
}
|
|
111278
111252
|
function mapReferencesIntoArray(references2, outputFilePath2) {
|
|
111279
111253
|
return (file) => {
|
|
111254
|
+
if (exportedModulesFromDeclarationEmit == null ? void 0 : exportedModulesFromDeclarationEmit.includes(file.symbol)) {
|
|
111255
|
+
return;
|
|
111256
|
+
}
|
|
111280
111257
|
let declFileName;
|
|
111281
111258
|
if (file.isDeclarationFile) {
|
|
111282
111259
|
declFileName = file.fileName;
|
|
@@ -159549,7 +159526,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
159549
159526
|
case 59 /* ColonToken */:
|
|
159550
159527
|
return parentKind === 172 /* PropertyDeclaration */ || parentKind === 171 /* PropertySignature */ || parentKind === 169 /* Parameter */ || parentKind === 260 /* VariableDeclaration */ || isFunctionLikeKind(parentKind);
|
|
159551
159528
|
case 64 /* EqualsToken */:
|
|
159552
|
-
return parentKind === 265 /* TypeAliasDeclaration */;
|
|
159529
|
+
return parentKind === 265 /* TypeAliasDeclaration */ || parentKind === 168 /* TypeParameter */;
|
|
159553
159530
|
case 130 /* AsKeyword */:
|
|
159554
159531
|
return parentKind === 234 /* AsExpression */;
|
|
159555
159532
|
case 30 /* LessThanToken */:
|
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.20231212`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -3096,7 +3096,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
|
|
|
3096
3096
|
TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
|
|
3097
3097
|
TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
|
|
3098
3098
|
TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
|
|
3099
|
-
TypeFlags2[TypeFlags2["Simplifiable"] =
|
|
3099
|
+
TypeFlags2[TypeFlags2["Simplifiable"] = 29360128] = "Simplifiable";
|
|
3100
3100
|
TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
|
|
3101
3101
|
TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
|
|
3102
3102
|
TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask";
|
|
@@ -7171,9 +7171,7 @@ var Diagnostics = {
|
|
|
7171
7171
|
Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
|
|
7172
7172
|
Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
|
|
7173
7173
|
Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."),
|
|
7174
|
-
await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
|
|
7175
|
-
A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolatedModules_is_enabled: diag(18055, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_for_a_string_value_must_be_a_string_literal_when_isolated_18055", "A member initializer in a enum declaration for a string value must be a string literal when 'isolatedModules' is enabled."),
|
|
7176
|
-
Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled: diag(18056, 1 /* Error */, "Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is__18056", "Enum member following a non-literal numeric member must have an initializer when 'isolatedModules' is enabled.")
|
|
7174
|
+
await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
|
|
7177
7175
|
};
|
|
7178
7176
|
|
|
7179
7177
|
// src/compiler/scanner.ts
|
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-56652-11",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -91,7 +91,6 @@
|
|
|
91
91
|
"build:compiler": "hereby local",
|
|
92
92
|
"build:tests": "hereby tests",
|
|
93
93
|
"build:tests:notypecheck": "hereby tests --no-typecheck",
|
|
94
|
-
"start": "node lib/tsc",
|
|
95
94
|
"clean": "hereby clean",
|
|
96
95
|
"gulp": "hereby",
|
|
97
96
|
"lint": "hereby lint",
|
|
@@ -115,5 +114,5 @@
|
|
|
115
114
|
"node": "20.1.0",
|
|
116
115
|
"npm": "8.19.4"
|
|
117
116
|
},
|
|
118
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "7a3beaa6e739ed337d66db66784a79f776193654"
|
|
119
118
|
}
|