@typescript-deploys/pr-build 5.2.0-pr-52095-16 → 5.2.0-pr-54753-25
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 +94 -103
- package/lib/tsserver.js +94 -103
- package/lib/tsserverlibrary.js +94 -103
- package/lib/typescript.js +94 -103
- package/lib/typingsInstaller.js +2 -1
- package/package.json +2 -2
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.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230726`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7068,6 +7068,7 @@ ${lanes.join("\n")}
|
|
|
7068
7068
|
Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),
|
|
7069
7069
|
An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."),
|
|
7070
7070
|
The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064", "The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),
|
|
7071
|
+
The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type: diag(1065, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065", "The return type of an async function or method must be the global Promise<T> type."),
|
|
7071
7072
|
In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."),
|
|
7072
7073
|
Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."),
|
|
7073
7074
|
Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."),
|
|
@@ -56387,7 +56388,12 @@ ${lanes.join("\n")}
|
|
|
56387
56388
|
for (const current of type.types) {
|
|
56388
56389
|
for (const prop of getPropertiesOfType(current)) {
|
|
56389
56390
|
if (!members.has(prop.escapedName)) {
|
|
56390
|
-
const combinedProp = getPropertyOfUnionOrIntersectionType(
|
|
56391
|
+
const combinedProp = getPropertyOfUnionOrIntersectionType(
|
|
56392
|
+
type,
|
|
56393
|
+
prop.escapedName,
|
|
56394
|
+
/*skipObjectFunctionPropertyAugment*/
|
|
56395
|
+
!!(type.flags & 2097152 /* Intersection */)
|
|
56396
|
+
);
|
|
56391
56397
|
if (combinedProp) {
|
|
56392
56398
|
members.set(prop.escapedName, combinedProp);
|
|
56393
56399
|
}
|
|
@@ -56867,13 +56873,17 @@ ${lanes.join("\n")}
|
|
|
56867
56873
|
return result;
|
|
56868
56874
|
}
|
|
56869
56875
|
function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {
|
|
56870
|
-
var _a, _b;
|
|
56876
|
+
var _a, _b, _c;
|
|
56871
56877
|
let property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) == null ? void 0 : _a.get(name)) || !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) == null ? void 0 : _b.get(name) : void 0;
|
|
56872
56878
|
if (!property) {
|
|
56873
56879
|
property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
|
|
56874
56880
|
if (property) {
|
|
56875
56881
|
const properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = createSymbolTable()) : type.propertyCache || (type.propertyCache = createSymbolTable());
|
|
56876
56882
|
properties.set(name, property);
|
|
56883
|
+
if (skipObjectFunctionPropertyAugment && !((_c = type.propertyCache) == null ? void 0 : _c.get(name))) {
|
|
56884
|
+
const properties2 = type.propertyCache || (type.propertyCache = createSymbolTable());
|
|
56885
|
+
properties2.set(name, property);
|
|
56886
|
+
}
|
|
56877
56887
|
}
|
|
56878
56888
|
}
|
|
56879
56889
|
return property;
|
|
@@ -56993,7 +57003,22 @@ ${lanes.join("\n")}
|
|
|
56993
57003
|
}
|
|
56994
57004
|
return getPropertyOfObjectType(globalObjectType, name);
|
|
56995
57005
|
}
|
|
56996
|
-
if (type.flags &
|
|
57006
|
+
if (type.flags & 2097152 /* Intersection */) {
|
|
57007
|
+
const prop = getPropertyOfUnionOrIntersectionType(
|
|
57008
|
+
type,
|
|
57009
|
+
name,
|
|
57010
|
+
/*skipObjectFunctionPropertyAugment*/
|
|
57011
|
+
true
|
|
57012
|
+
);
|
|
57013
|
+
if (prop) {
|
|
57014
|
+
return prop;
|
|
57015
|
+
}
|
|
57016
|
+
if (!skipObjectFunctionPropertyAugment) {
|
|
57017
|
+
return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
|
|
57018
|
+
}
|
|
57019
|
+
return void 0;
|
|
57020
|
+
}
|
|
57021
|
+
if (type.flags & 1048576 /* Union */) {
|
|
56997
57022
|
return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);
|
|
56998
57023
|
}
|
|
56999
57024
|
return void 0;
|
|
@@ -63632,26 +63657,6 @@ ${lanes.join("\n")}
|
|
|
63632
63657
|
)) {
|
|
63633
63658
|
return result2;
|
|
63634
63659
|
}
|
|
63635
|
-
if (sourceFlags & 8388608 /* IndexedAccess */) {
|
|
63636
|
-
const indexType = source2.indexType;
|
|
63637
|
-
if (indexType.flags & 4194304 /* Index */) {
|
|
63638
|
-
const unresolvedIndexConstraint = getBaseConstraintOfType(indexType.type);
|
|
63639
|
-
const indexConstraint = unresolvedIndexConstraint && unresolvedIndexConstraint !== noConstraintType ? getIndexType(unresolvedIndexConstraint) : keyofConstraintType;
|
|
63640
|
-
const constraint2 = getIndexedAccessType(source2.objectType, indexConstraint);
|
|
63641
|
-
if (result2 = isRelatedTo(
|
|
63642
|
-
constraint2,
|
|
63643
|
-
target2,
|
|
63644
|
-
1 /* Source */,
|
|
63645
|
-
/*reportErrors*/
|
|
63646
|
-
false,
|
|
63647
|
-
/*headMessage*/
|
|
63648
|
-
void 0,
|
|
63649
|
-
intersectionState
|
|
63650
|
-
)) {
|
|
63651
|
-
return result2;
|
|
63652
|
-
}
|
|
63653
|
-
}
|
|
63654
|
-
}
|
|
63655
63660
|
if (isMappedTypeGenericIndexedAccess(source2)) {
|
|
63656
63661
|
const indexConstraint = getConstraintOfType(source2.indexType);
|
|
63657
63662
|
if (indexConstraint) {
|
|
@@ -69746,75 +69751,41 @@ ${lanes.join("\n")}
|
|
|
69746
69751
|
return mapType(
|
|
69747
69752
|
type,
|
|
69748
69753
|
(t) => {
|
|
69749
|
-
|
|
69750
|
-
|
|
69751
|
-
|
|
69752
|
-
|
|
69753
|
-
const
|
|
69754
|
-
|
|
69755
|
-
|
|
69756
|
-
|
|
69757
|
-
|
|
69758
|
-
|
|
69759
|
-
|
|
69760
|
-
|
|
69761
|
-
}
|
|
69762
|
-
const typeOfConcreteProperty = getTypeOfConcretePropertyOfContextualType(t2);
|
|
69763
|
-
if (typeOfConcreteProperty) {
|
|
69764
|
-
concretePropertyTypes = append(concretePropertyTypes, typeOfConcreteProperty);
|
|
69765
|
-
continue;
|
|
69766
|
-
}
|
|
69767
|
-
applicableIndexInfoCandidates = append(applicableIndexInfoCandidates, t2);
|
|
69768
|
-
}
|
|
69769
|
-
if (concretePropertyTypes) {
|
|
69770
|
-
return getIntersectionType(concatenate(concretePropertyTypes, applicableIndexedMappedTypeSubstitions));
|
|
69754
|
+
var _a;
|
|
69755
|
+
if (isGenericMappedType(t) && !t.declaration.nameType) {
|
|
69756
|
+
const constraint = getConstraintTypeFromMappedType(t);
|
|
69757
|
+
const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
|
|
69758
|
+
const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
|
|
69759
|
+
if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
|
|
69760
|
+
return substituteIndexedMappedType(t, propertyNameType);
|
|
69761
|
+
}
|
|
69762
|
+
} else if (t.flags & 3670016 /* StructuredType */) {
|
|
69763
|
+
const prop = getPropertyOfType(t, name);
|
|
69764
|
+
if (prop) {
|
|
69765
|
+
return isCircularMappedProperty(prop) ? void 0 : getTypeOfSymbol(prop);
|
|
69771
69766
|
}
|
|
69772
|
-
|
|
69773
|
-
|
|
69774
|
-
|
|
69767
|
+
if (isTupleType(t) && isNumericLiteralName(name) && +name >= 0) {
|
|
69768
|
+
const restType = getElementTypeOfSliceOfTupleType(
|
|
69769
|
+
t,
|
|
69770
|
+
t.target.fixedLength,
|
|
69771
|
+
/*endSkipCount*/
|
|
69772
|
+
0,
|
|
69773
|
+
/*writing*/
|
|
69774
|
+
false,
|
|
69775
|
+
/*noReductions*/
|
|
69776
|
+
true
|
|
69777
|
+
);
|
|
69778
|
+
if (restType) {
|
|
69779
|
+
return restType;
|
|
69780
|
+
}
|
|
69775
69781
|
}
|
|
69776
|
-
return void 0;
|
|
69782
|
+
return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type;
|
|
69777
69783
|
}
|
|
69778
|
-
return
|
|
69784
|
+
return void 0;
|
|
69779
69785
|
},
|
|
69780
69786
|
/*noReductions*/
|
|
69781
69787
|
true
|
|
69782
69788
|
);
|
|
69783
|
-
function getTypeOfApplicableIndexedMappedTypeSubstitutionOfContextualType(t) {
|
|
69784
|
-
const constraint = getConstraintTypeFromMappedType(t);
|
|
69785
|
-
const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
|
|
69786
|
-
const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
|
|
69787
|
-
if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
|
|
69788
|
-
return substituteIndexedMappedType(t, propertyNameType);
|
|
69789
|
-
}
|
|
69790
|
-
return void 0;
|
|
69791
|
-
}
|
|
69792
|
-
function getTypeOfConcretePropertyOfContextualType(t) {
|
|
69793
|
-
const prop = getPropertyOfType(t, name);
|
|
69794
|
-
if (prop) {
|
|
69795
|
-
return isCircularMappedProperty(prop) ? void 0 : getTypeOfSymbol(prop);
|
|
69796
|
-
}
|
|
69797
|
-
if (isTupleType(t) && isNumericLiteralName(name) && +name >= 0) {
|
|
69798
|
-
const restType = getElementTypeOfSliceOfTupleType(
|
|
69799
|
-
t,
|
|
69800
|
-
t.target.fixedLength,
|
|
69801
|
-
/*endSkipCount*/
|
|
69802
|
-
0,
|
|
69803
|
-
/*writing*/
|
|
69804
|
-
false,
|
|
69805
|
-
/*noReductions*/
|
|
69806
|
-
true
|
|
69807
|
-
);
|
|
69808
|
-
if (restType) {
|
|
69809
|
-
return restType;
|
|
69810
|
-
}
|
|
69811
|
-
}
|
|
69812
|
-
return void 0;
|
|
69813
|
-
}
|
|
69814
|
-
function getTypeOfApplicableIndexInfoOfContextualType(t) {
|
|
69815
|
-
var _a;
|
|
69816
|
-
return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)))) == null ? void 0 : _a.type;
|
|
69817
|
-
}
|
|
69818
69789
|
}
|
|
69819
69790
|
function getContextualTypeForObjectLiteralMethod(node, contextFlags) {
|
|
69820
69791
|
Debug.assert(isObjectLiteralMethod(node));
|
|
@@ -77494,7 +77465,18 @@ ${lanes.join("\n")}
|
|
|
77494
77465
|
addLazyDiagnostic(checkSignatureDeclarationDiagnostics);
|
|
77495
77466
|
function checkSignatureDeclarationDiagnostics() {
|
|
77496
77467
|
checkCollisionWithArgumentsInGeneratedCode(node);
|
|
77497
|
-
|
|
77468
|
+
let returnTypeNode = getEffectiveReturnTypeNode(node);
|
|
77469
|
+
let returnTypeErrorLocation = returnTypeNode;
|
|
77470
|
+
if (isInJSFile(node)) {
|
|
77471
|
+
const typeTag = getJSDocTypeTag(node);
|
|
77472
|
+
if (typeTag && typeTag.typeExpression && isTypeReferenceNode(typeTag.typeExpression.type)) {
|
|
77473
|
+
const signature = getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression));
|
|
77474
|
+
if (signature && signature.declaration) {
|
|
77475
|
+
returnTypeNode = getEffectiveReturnTypeNode(signature.declaration);
|
|
77476
|
+
returnTypeErrorLocation = typeTag.typeExpression.type;
|
|
77477
|
+
}
|
|
77478
|
+
}
|
|
77479
|
+
}
|
|
77498
77480
|
if (noImplicitAny && !returnTypeNode) {
|
|
77499
77481
|
switch (node.kind) {
|
|
77500
77482
|
case 180 /* ConstructSignature */:
|
|
@@ -77505,21 +77487,21 @@ ${lanes.join("\n")}
|
|
|
77505
77487
|
break;
|
|
77506
77488
|
}
|
|
77507
77489
|
}
|
|
77508
|
-
if (returnTypeNode) {
|
|
77490
|
+
if (returnTypeNode && returnTypeErrorLocation) {
|
|
77509
77491
|
const functionFlags2 = getFunctionFlags(node);
|
|
77510
77492
|
if ((functionFlags2 & (4 /* Invalid */ | 1 /* Generator */)) === 1 /* Generator */) {
|
|
77511
77493
|
const returnType = getTypeFromTypeNode(returnTypeNode);
|
|
77512
77494
|
if (returnType === voidType) {
|
|
77513
|
-
error2(
|
|
77495
|
+
error2(returnTypeErrorLocation, Diagnostics.A_generator_cannot_have_a_void_type_annotation);
|
|
77514
77496
|
} else {
|
|
77515
77497
|
const generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || anyType;
|
|
77516
77498
|
const generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || generatorYieldType;
|
|
77517
77499
|
const generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, (functionFlags2 & 2 /* Async */) !== 0) || unknownType;
|
|
77518
77500
|
const generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags2 & 2 /* Async */));
|
|
77519
|
-
checkTypeAssignableTo(generatorInstantiation, returnType,
|
|
77501
|
+
checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeErrorLocation);
|
|
77520
77502
|
}
|
|
77521
77503
|
} else if ((functionFlags2 & 3 /* AsyncGenerator */) === 2 /* Async */) {
|
|
77522
|
-
checkAsyncFunctionReturnType(node, returnTypeNode);
|
|
77504
|
+
checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation);
|
|
77523
77505
|
}
|
|
77524
77506
|
}
|
|
77525
77507
|
if (node.kind !== 181 /* IndexSignature */ && node.kind !== 324 /* JSDocFunctionType */) {
|
|
@@ -78601,7 +78583,7 @@ ${lanes.join("\n")}
|
|
|
78601
78583
|
}
|
|
78602
78584
|
return typeAsAwaitable.awaitedTypeOfType = type;
|
|
78603
78585
|
}
|
|
78604
|
-
function checkAsyncFunctionReturnType(node, returnTypeNode) {
|
|
78586
|
+
function checkAsyncFunctionReturnType(node, returnTypeNode, returnTypeErrorLocation) {
|
|
78605
78587
|
const returnType = getTypeFromTypeNode(returnTypeNode);
|
|
78606
78588
|
if (languageVersion >= 2 /* ES2015 */) {
|
|
78607
78589
|
if (isErrorType(returnType)) {
|
|
@@ -78612,7 +78594,7 @@ ${lanes.join("\n")}
|
|
|
78612
78594
|
true
|
|
78613
78595
|
);
|
|
78614
78596
|
if (globalPromiseType !== emptyGenericType && !isReferenceToType2(returnType, globalPromiseType)) {
|
|
78615
|
-
|
|
78597
|
+
reportErrorForInvalidReturnType(Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, returnTypeNode, returnTypeErrorLocation, typeToString(getAwaitedTypeNoAlias(returnType) || voidType));
|
|
78616
78598
|
return;
|
|
78617
78599
|
}
|
|
78618
78600
|
} else {
|
|
@@ -78622,7 +78604,7 @@ ${lanes.join("\n")}
|
|
|
78622
78604
|
}
|
|
78623
78605
|
const promiseConstructorName = getEntityNameFromTypeNode(returnTypeNode);
|
|
78624
78606
|
if (promiseConstructorName === void 0) {
|
|
78625
|
-
|
|
78607
|
+
reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, typeToString(returnType));
|
|
78626
78608
|
return;
|
|
78627
78609
|
}
|
|
78628
78610
|
const promiseConstructorSymbol = resolveEntityName(
|
|
@@ -78637,9 +78619,9 @@ ${lanes.join("\n")}
|
|
|
78637
78619
|
/*reportErrors*/
|
|
78638
78620
|
false
|
|
78639
78621
|
)) {
|
|
78640
|
-
error2(
|
|
78622
|
+
error2(returnTypeErrorLocation, Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option);
|
|
78641
78623
|
} else {
|
|
78642
|
-
|
|
78624
|
+
reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName));
|
|
78643
78625
|
}
|
|
78644
78626
|
return;
|
|
78645
78627
|
}
|
|
@@ -78648,15 +78630,16 @@ ${lanes.join("\n")}
|
|
|
78648
78630
|
true
|
|
78649
78631
|
);
|
|
78650
78632
|
if (globalPromiseConstructorLikeType === emptyObjectType) {
|
|
78651
|
-
|
|
78633
|
+
reportErrorForInvalidReturnType(Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, returnTypeNode, returnTypeErrorLocation, entityNameToString(promiseConstructorName));
|
|
78652
78634
|
return;
|
|
78653
78635
|
}
|
|
78654
|
-
|
|
78655
|
-
|
|
78656
|
-
|
|
78657
|
-
|
|
78658
|
-
Diagnostics.
|
|
78659
|
-
)
|
|
78636
|
+
const headMessage = Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;
|
|
78637
|
+
const errorInfo = () => returnTypeNode === returnTypeErrorLocation ? void 0 : chainDiagnosticMessages(
|
|
78638
|
+
/*details*/
|
|
78639
|
+
void 0,
|
|
78640
|
+
Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type
|
|
78641
|
+
);
|
|
78642
|
+
if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeErrorLocation, headMessage, errorInfo)) {
|
|
78660
78643
|
return;
|
|
78661
78644
|
}
|
|
78662
78645
|
const rootName = promiseConstructorName && getFirstIdentifier(promiseConstructorName);
|
|
@@ -78678,6 +78661,14 @@ ${lanes.join("\n")}
|
|
|
78678
78661
|
node,
|
|
78679
78662
|
Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member
|
|
78680
78663
|
);
|
|
78664
|
+
function reportErrorForInvalidReturnType(message, returnTypeNode2, returnTypeErrorLocation2, typeName) {
|
|
78665
|
+
if (returnTypeNode2 === returnTypeErrorLocation2) {
|
|
78666
|
+
error2(returnTypeErrorLocation2, message, typeName);
|
|
78667
|
+
} else {
|
|
78668
|
+
const diag2 = error2(returnTypeErrorLocation2, Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);
|
|
78669
|
+
addRelatedInfo(diag2, createDiagnosticForNode(returnTypeNode2, message, typeName));
|
|
78670
|
+
}
|
|
78671
|
+
}
|
|
78681
78672
|
}
|
|
78682
78673
|
function checkDecorator(node) {
|
|
78683
78674
|
const signature = getResolvedSignature(node);
|
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.2";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230726`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -5138,6 +5138,7 @@ var Diagnostics = {
|
|
|
5138
5138
|
Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, 1 /* Error */, "Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062", "Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),
|
|
5139
5139
|
An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, 1 /* Error */, "An_export_assignment_cannot_be_used_in_a_namespace_1063", "An export assignment cannot be used in a namespace."),
|
|
5140
5140
|
The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064", "The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<{0}>'?"),
|
|
5141
|
+
The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type: diag(1065, 1 /* Error */, "The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065", "The return type of an async function or method must be the global Promise<T> type."),
|
|
5141
5142
|
In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, 1 /* Error */, "In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066", "In ambient enum declarations member initializer must be constant expression."),
|
|
5142
5143
|
Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, 1 /* Error */, "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068", "Unexpected token. A constructor, method, accessor, or property was expected."),
|
|
5143
5144
|
Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, 1 /* Error */, "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069", "Unexpected token. A type parameter name was expected without curly braces."),
|
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.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-54753-25",
|
|
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": "c0de1c1946fa712793c87b058898fb22d4a474d1"
|
|
118
118
|
}
|