@typescript-deploys/pr-build 5.6.0-pr-58296-32 → 5.6.0-pr-59352-2
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/lib.dom.d.ts +356 -865
- package/lib/lib.dom.iterable.d.ts +2 -6
- package/lib/lib.es2015.collection.d.ts +4 -4
- package/lib/lib.es2015.core.d.ts +1 -1
- package/lib/lib.es2015.generator.d.ts +2 -2
- package/lib/lib.es2015.promise.d.ts +1 -1
- package/lib/lib.es2015.symbol.d.ts +1 -1
- package/lib/lib.es2017.object.d.ts +2 -2
- package/lib/lib.es2017.sharedmemory.d.ts +1 -1
- package/lib/lib.es2018.asyncgenerator.d.ts +2 -2
- package/lib/lib.es2018.intl.d.ts +1 -1
- package/lib/lib.es2020.bigint.d.ts +3 -3
- package/lib/lib.es2020.intl.d.ts +1 -1
- package/lib/lib.es2021.promise.d.ts +1 -1
- package/lib/lib.es2021.weakref.d.ts +2 -2
- package/lib/lib.es5.d.ts +31 -31
- package/lib/lib.esnext.disposable.d.ts +3 -3
- package/lib/lib.webworker.d.ts +85 -106
- package/lib/lib.webworker.iterable.d.ts +1 -5
- package/lib/tsc.js +42 -71
- package/lib/typescript.d.ts +18 -19
- package/lib/typescript.js +45 -73
- package/package.json +1 -1
package/lib/typescript.js
CHANGED
|
@@ -2256,7 +2256,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2256
2256
|
|
|
2257
2257
|
// src/compiler/corePublic.ts
|
|
2258
2258
|
var versionMajorMinor = "5.6";
|
|
2259
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2259
|
+
var version = `${versionMajorMinor}.0-insiders.20240719`;
|
|
2260
2260
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2261
2261
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2262
2262
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10185,8 +10185,6 @@ var Diagnostics = {
|
|
|
10185
10185
|
Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next: diag(4124, 1 /* Error */, "Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124", "Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),
|
|
10186
10186
|
Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given: diag(4125, 1 /* Error */, "Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125", "Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),
|
|
10187
10187
|
One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1 /* Error */, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
|
|
10188
|
-
Property_0_is_readonly_in_the_source_but_not_in_the_target: diag(4127, 1 /* Error */, "Property_0_is_readonly_in_the_source_but_not_in_the_target_4127", "Property '{0}' is 'readonly' in the source but not in the target."),
|
|
10189
|
-
_0_index_signature_is_readonly_in_the_source_but_not_in_the_target: diag(4128, 1 /* Error */, "_0_index_signature_is_readonly_in_the_source_but_not_in_the_target_4128", "'{0}' index signature is 'readonly' in the source but not in the target."),
|
|
10190
10188
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
10191
10189
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
10192
10190
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
@@ -10753,7 +10751,6 @@ var Diagnostics = {
|
|
|
10753
10751
|
Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, 3 /* Message */, "Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717", "Require undeclared properties from index signatures to use element accesses."),
|
|
10754
10752
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
10755
10753
|
Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files: diag(6719, 3 /* Message */, "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719", "Require sufficient annotation on exports so other tools can trivially generate declaration files."),
|
|
10756
|
-
Ensure_that_readonly_properties_remain_read_only_in_type_relationships: diag(6720, 3 /* Message */, "Ensure_that_readonly_properties_remain_read_only_in_type_relationships_6720", "Ensure that 'readonly' properties remain read-only in type relationships."),
|
|
10757
10754
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
10758
10755
|
Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
|
|
10759
10756
|
Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported: diag(6805, 3 /* Message */, "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805", "Disable full type checking (only critical parse and emit errors will be reported)."),
|
|
@@ -40623,15 +40620,6 @@ var commandOptionsWithoutBuild = [
|
|
|
40623
40620
|
description: Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,
|
|
40624
40621
|
defaultValueDescription: false
|
|
40625
40622
|
},
|
|
40626
|
-
{
|
|
40627
|
-
name: "enforceReadonly",
|
|
40628
|
-
type: "boolean",
|
|
40629
|
-
affectsSemanticDiagnostics: true,
|
|
40630
|
-
affectsBuildInfo: true,
|
|
40631
|
-
category: Diagnostics.Type_Checking,
|
|
40632
|
-
description: Diagnostics.Ensure_that_readonly_properties_remain_read_only_in_type_relationships,
|
|
40633
|
-
defaultValueDescription: false
|
|
40634
|
-
},
|
|
40635
40623
|
// Module Resolution
|
|
40636
40624
|
{
|
|
40637
40625
|
name: "moduleResolution",
|
|
@@ -49906,7 +49894,6 @@ function createTypeChecker(host) {
|
|
|
49906
49894
|
var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
|
|
49907
49895
|
var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
|
49908
49896
|
var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;
|
|
49909
|
-
var enforceReadonly = compilerOptions.enforceReadonly;
|
|
49910
49897
|
var checkBinaryExpression = createCheckBinaryExpression();
|
|
49911
49898
|
var emitResolver = createResolver();
|
|
49912
49899
|
var nodeBuilder = createNodeBuilder();
|
|
@@ -61441,20 +61428,20 @@ function createTypeChecker(host) {
|
|
|
61441
61428
|
const declaration = type.declaration;
|
|
61442
61429
|
return (declaration.readonlyToken ? declaration.readonlyToken.kind === 41 /* MinusToken */ ? 2 /* ExcludeReadonly */ : 1 /* IncludeReadonly */ : 0) | (declaration.questionToken ? declaration.questionToken.kind === 41 /* MinusToken */ ? 8 /* ExcludeOptional */ : 4 /* IncludeOptional */ : 0);
|
|
61443
61430
|
}
|
|
61444
|
-
function
|
|
61431
|
+
function getMappedTypeOptionality(type) {
|
|
61432
|
+
const modifiers = getMappedTypeModifiers(type);
|
|
61433
|
+
return modifiers & 8 /* ExcludeOptional */ ? -1 : modifiers & 4 /* IncludeOptional */ ? 1 : 0;
|
|
61434
|
+
}
|
|
61435
|
+
function getCombinedMappedTypeOptionality(type) {
|
|
61445
61436
|
if (getObjectFlags(type) & 32 /* Mapped */) {
|
|
61446
|
-
return
|
|
61437
|
+
return getMappedTypeOptionality(type) || getCombinedMappedTypeOptionality(getModifiersTypeFromMappedType(type));
|
|
61447
61438
|
}
|
|
61448
61439
|
if (type.flags & 2097152 /* Intersection */) {
|
|
61449
|
-
const
|
|
61450
|
-
return every(type.types, (t, i) => i === 0 ||
|
|
61440
|
+
const optionality = getCombinedMappedTypeOptionality(type.types[0]);
|
|
61441
|
+
return every(type.types, (t, i) => i === 0 || getCombinedMappedTypeOptionality(t) === optionality) ? optionality : 0;
|
|
61451
61442
|
}
|
|
61452
61443
|
return 0;
|
|
61453
61444
|
}
|
|
61454
|
-
function getMappedTypeModifiersRank(type, mask2) {
|
|
61455
|
-
const modifiers = getEffectiveMappedTypeModifiers(type, mask2);
|
|
61456
|
-
return modifiers & 10 /* Exclude */ ? -1 : modifiers & 5 /* Include */ ? 1 : 0;
|
|
61457
|
-
}
|
|
61458
61445
|
function isPartialMappedType(type) {
|
|
61459
61446
|
return !!(getObjectFlags(type) & 32 /* Mapped */ && getMappedTypeModifiers(type) & 4 /* IncludeOptional */);
|
|
61460
61447
|
}
|
|
@@ -65260,12 +65247,12 @@ function createTypeChecker(host) {
|
|
|
65260
65247
|
const mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]);
|
|
65261
65248
|
const templateMapper = combineTypeMappers(objectType.mapper, mapper);
|
|
65262
65249
|
const instantiatedTemplateType = instantiateType(getTemplateTypeFromMappedType(objectType.target || objectType), templateMapper);
|
|
65263
|
-
const isOptional =
|
|
65250
|
+
const isOptional = getMappedTypeOptionality(objectType) > 0 || (isGenericType(objectType) ? getCombinedMappedTypeOptionality(getModifiersTypeFromMappedType(objectType)) > 0 : couldAccessOptionalProperty(objectType, index));
|
|
65264
65251
|
return addOptionality(
|
|
65265
65252
|
instantiatedTemplateType,
|
|
65266
65253
|
/*isProperty*/
|
|
65267
65254
|
true,
|
|
65268
|
-
|
|
65255
|
+
isOptional
|
|
65269
65256
|
);
|
|
65270
65257
|
}
|
|
65271
65258
|
function couldAccessOptionalProperty(objectType, indexType) {
|
|
@@ -68763,7 +68750,7 @@ function createTypeChecker(host) {
|
|
|
68763
68750
|
}
|
|
68764
68751
|
if (targetFlags & 262144 /* TypeParameter */) {
|
|
68765
68752
|
if (getObjectFlags(source2) & 32 /* Mapped */ && !source2.declaration.nameType && isRelatedTo(getIndexType(target2), getConstraintTypeFromMappedType(source2), 3 /* Both */)) {
|
|
68766
|
-
if (!(getMappedTypeModifiers(source2) & 4 /* IncludeOptional */)
|
|
68753
|
+
if (!(getMappedTypeModifiers(source2) & 4 /* IncludeOptional */)) {
|
|
68767
68754
|
const templateType = getTemplateTypeFromMappedType(source2);
|
|
68768
68755
|
const indexedAccessType = getIndexedAccessType(target2, getTypeParameterFromMappedType(source2));
|
|
68769
68756
|
if (result2 = isRelatedTo(templateType, indexedAccessType, 3 /* Both */, reportErrors2)) {
|
|
@@ -68875,7 +68862,7 @@ function createTypeChecker(host) {
|
|
|
68875
68862
|
const keysRemapped = !!target2.declaration.nameType;
|
|
68876
68863
|
const templateType = getTemplateTypeFromMappedType(target2);
|
|
68877
68864
|
const modifiers = getMappedTypeModifiers(target2);
|
|
68878
|
-
if (!(modifiers & 8 /* ExcludeOptional */)
|
|
68865
|
+
if (!(modifiers & 8 /* ExcludeOptional */)) {
|
|
68879
68866
|
if (!keysRemapped && templateType.flags & 8388608 /* IndexedAccess */ && templateType.objectType === source2 && templateType.indexType === getTypeParameterFromMappedType(target2)) {
|
|
68880
68867
|
return -1 /* True */;
|
|
68881
68868
|
}
|
|
@@ -69172,11 +69159,11 @@ function createTypeChecker(host) {
|
|
|
69172
69159
|
}
|
|
69173
69160
|
}
|
|
69174
69161
|
function mappedTypeRelatedTo(source2, target2, reportErrors2) {
|
|
69175
|
-
const modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source2) === getMappedTypeModifiers(target2) :
|
|
69162
|
+
const modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source2) === getMappedTypeModifiers(target2) : getCombinedMappedTypeOptionality(source2) <= getCombinedMappedTypeOptionality(target2));
|
|
69176
69163
|
if (modifiersRelated) {
|
|
69177
69164
|
let result2;
|
|
69178
69165
|
const targetConstraint = getConstraintTypeFromMappedType(target2);
|
|
69179
|
-
const sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source2),
|
|
69166
|
+
const sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source2), getCombinedMappedTypeOptionality(source2) < 0 ? reportUnmeasurableMapper : reportUnreliableMapper);
|
|
69180
69167
|
if (result2 = isRelatedTo(targetConstraint, sourceConstraint, 3 /* Both */, reportErrors2)) {
|
|
69181
69168
|
const mapper = createTypeMapper([getTypeParameterFromMappedType(source2)], [getTypeParameterFromMappedType(target2)]);
|
|
69182
69169
|
if (instantiateType(getNameTypeFromMappedType(source2), mapper) === instantiateType(getNameTypeFromMappedType(target2), mapper)) {
|
|
@@ -69350,10 +69337,7 @@ function createTypeChecker(host) {
|
|
|
69350
69337
|
}
|
|
69351
69338
|
return 0 /* False */;
|
|
69352
69339
|
}
|
|
69353
|
-
if (
|
|
69354
|
-
if (reportErrors2) {
|
|
69355
|
-
reportError(Diagnostics.Property_0_is_readonly_in_the_source_but_not_in_the_target, symbolToString(targetProp));
|
|
69356
|
-
}
|
|
69340
|
+
if (relation === strictSubtypeRelation && isReadonlySymbol(sourceProp) && !isReadonlySymbol(targetProp)) {
|
|
69357
69341
|
return 0 /* False */;
|
|
69358
69342
|
}
|
|
69359
69343
|
const related = isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors2, intersectionState);
|
|
@@ -69821,21 +69805,12 @@ function createTypeChecker(host) {
|
|
|
69821
69805
|
void 0,
|
|
69822
69806
|
intersectionState
|
|
69823
69807
|
);
|
|
69824
|
-
if (!related) {
|
|
69825
|
-
if (
|
|
69826
|
-
|
|
69827
|
-
|
|
69828
|
-
|
|
69829
|
-
reportError(Diagnostics._0_and_1_index_signatures_are_incompatible, typeToString(sourceInfo.keyType), typeToString(targetInfo.keyType));
|
|
69830
|
-
}
|
|
69831
|
-
}
|
|
69832
|
-
return 0 /* False */;
|
|
69833
|
-
}
|
|
69834
|
-
if (enforceReadonly && relation !== comparableRelation && sourceInfo.isReadonly && !targetInfo.isReadonly) {
|
|
69835
|
-
if (reportErrors2) {
|
|
69836
|
-
reportError(Diagnostics._0_index_signature_is_readonly_in_the_source_but_not_in_the_target, typeToString(sourceInfo.keyType));
|
|
69808
|
+
if (!related && reportErrors2) {
|
|
69809
|
+
if (sourceInfo.keyType === targetInfo.keyType) {
|
|
69810
|
+
reportError(Diagnostics._0_index_signatures_are_incompatible, typeToString(sourceInfo.keyType));
|
|
69811
|
+
} else {
|
|
69812
|
+
reportError(Diagnostics._0_and_1_index_signatures_are_incompatible, typeToString(sourceInfo.keyType), typeToString(targetInfo.keyType));
|
|
69837
69813
|
}
|
|
69838
|
-
return 0 /* False */;
|
|
69839
69814
|
}
|
|
69840
69815
|
return related;
|
|
69841
69816
|
}
|
|
@@ -72429,6 +72404,9 @@ function createTypeChecker(host) {
|
|
|
72429
72404
|
function recombineUnknownType(type) {
|
|
72430
72405
|
return type === unknownUnionType ? unknownType : type;
|
|
72431
72406
|
}
|
|
72407
|
+
function getUnknownIfMaybeUnknown(type) {
|
|
72408
|
+
return strictNullChecks && type.flags & 465829888 /* Instantiable */ ? getBaseConstraintOfType(type) || unknownType : type;
|
|
72409
|
+
}
|
|
72432
72410
|
function getTypeWithDefault(type, defaultExpression) {
|
|
72433
72411
|
return defaultExpression ? getUnionType([getNonUndefinedType(type), getTypeOfExpression(defaultExpression)]) : type;
|
|
72434
72412
|
}
|
|
@@ -75691,9 +75669,10 @@ function createTypeChecker(host) {
|
|
|
75691
75669
|
(t) => {
|
|
75692
75670
|
var _a;
|
|
75693
75671
|
if (isGenericMappedType(t) && !t.declaration.nameType) {
|
|
75694
|
-
const constraint =
|
|
75672
|
+
const constraint = getConstraintTypeFromMappedType(t);
|
|
75673
|
+
const constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
|
|
75695
75674
|
const propertyNameType = nameType || getStringLiteralType(unescapeLeadingUnderscores(name));
|
|
75696
|
-
if (isTypeAssignableTo(propertyNameType,
|
|
75675
|
+
if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
|
|
75697
75676
|
return substituteIndexedMappedType(t, propertyNameType);
|
|
75698
75677
|
}
|
|
75699
75678
|
} else if (t.flags & 3670016 /* StructuredType */) {
|
|
@@ -75743,17 +75722,23 @@ function createTypeChecker(host) {
|
|
|
75743
75722
|
const symbol = getSymbolOfDeclaration(element);
|
|
75744
75723
|
return getTypeOfPropertyOfContextualType(type, symbol.escapedName, getSymbolLinks(symbol).nameType);
|
|
75745
75724
|
}
|
|
75746
|
-
|
|
75747
|
-
|
|
75748
|
-
|
|
75749
|
-
|
|
75750
|
-
|
|
75725
|
+
if (hasDynamicName(element)) {
|
|
75726
|
+
const name = getNameOfDeclaration(element);
|
|
75727
|
+
if (name && isComputedPropertyName(name)) {
|
|
75728
|
+
const exprType = checkExpression(name.expression);
|
|
75729
|
+
const propType = isTypeUsableAsPropertyName(exprType) && getTypeOfPropertyOfContextualType(type, getPropertyNameFromType(exprType));
|
|
75730
|
+
if (propType) {
|
|
75731
|
+
return propType;
|
|
75732
|
+
}
|
|
75751
75733
|
}
|
|
75734
|
+
}
|
|
75735
|
+
if (element.name) {
|
|
75736
|
+
const nameType = getLiteralTypeFromPropertyName(element.name);
|
|
75752
75737
|
return mapType(
|
|
75753
75738
|
type,
|
|
75754
75739
|
(t) => {
|
|
75755
75740
|
var _a;
|
|
75756
|
-
return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t),
|
|
75741
|
+
return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType)) == null ? void 0 : _a.type;
|
|
75757
75742
|
},
|
|
75758
75743
|
/*noReductions*/
|
|
75759
75744
|
true
|
|
@@ -75762,20 +75747,6 @@ function createTypeChecker(host) {
|
|
|
75762
75747
|
}
|
|
75763
75748
|
return void 0;
|
|
75764
75749
|
}
|
|
75765
|
-
function isContextualPropertyMutable(type, name, nameType) {
|
|
75766
|
-
return someType(type, (t) => {
|
|
75767
|
-
const propName = nameType ? isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : void 0 : name;
|
|
75768
|
-
const prop = propName && getPropertyOfType(t, propName);
|
|
75769
|
-
if (prop) {
|
|
75770
|
-
return !isReadonlySymbol(prop);
|
|
75771
|
-
}
|
|
75772
|
-
const indexInfo = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(unescapeLeadingUnderscores(name)));
|
|
75773
|
-
if (indexInfo) {
|
|
75774
|
-
return !indexInfo.isReadonly;
|
|
75775
|
-
}
|
|
75776
|
-
return false;
|
|
75777
|
-
});
|
|
75778
|
-
}
|
|
75779
75750
|
function getSpreadIndices(elements) {
|
|
75780
75751
|
let first2, last2;
|
|
75781
75752
|
for (let i = 0; i < elements.length; i++) {
|
|
@@ -76621,6 +76592,7 @@ function createTypeChecker(host) {
|
|
|
76621
76592
|
);
|
|
76622
76593
|
const contextualTypeHasPattern = contextualType && contextualType.pattern && (contextualType.pattern.kind === 206 /* ObjectBindingPattern */ || contextualType.pattern.kind === 210 /* ObjectLiteralExpression */);
|
|
76623
76594
|
const inConstContext = isConstContext(node);
|
|
76595
|
+
const checkFlags = inConstContext ? 8 /* Readonly */ : 0;
|
|
76624
76596
|
const isInJavascript = isInJSFile(node) && !isInJsonFile(node);
|
|
76625
76597
|
const enumTag = isInJavascript ? getJSDocEnumTag(node) : void 0;
|
|
76626
76598
|
const isJSObjectLiteral = !contextualType && isInJavascript && !enumTag;
|
|
@@ -76656,7 +76628,6 @@ function createTypeChecker(host) {
|
|
|
76656
76628
|
}
|
|
76657
76629
|
objectFlags |= getObjectFlags(type) & 458752 /* PropagatingFlags */;
|
|
76658
76630
|
const nameType = computedNameType && isTypeUsableAsPropertyName(computedNameType) ? computedNameType : void 0;
|
|
76659
|
-
const checkFlags = inConstContext && !(enforceReadonly && contextualType && isContextualPropertyMutable(contextualType, member.escapedName, nameType)) ? 8 /* Readonly */ : 0;
|
|
76660
76631
|
const prop = nameType ? createSymbol(4 /* Property */ | member.flags, getPropertyNameFromType(nameType), checkFlags | 4096 /* Late */) : createSymbol(4 /* Property */ | member.flags, member.escapedName, checkFlags);
|
|
76661
76632
|
if (nameType) {
|
|
76662
76633
|
prop.links.nameType = nameType;
|
|
@@ -82504,8 +82475,8 @@ function createTypeChecker(host) {
|
|
|
82504
82475
|
case 33 /* LessThanEqualsToken */:
|
|
82505
82476
|
case 34 /* GreaterThanEqualsToken */:
|
|
82506
82477
|
if (checkForDisallowedESSymbolOperand(operator)) {
|
|
82507
|
-
leftType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(leftType, left));
|
|
82508
|
-
rightType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(rightType, right));
|
|
82478
|
+
leftType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(getUnknownIfMaybeUnknown(leftType), left));
|
|
82479
|
+
rightType = getBaseTypeOfLiteralTypeForComparison(checkNonNullType(getUnknownIfMaybeUnknown(rightType), right));
|
|
82509
82480
|
reportOperatorErrorUnless((left2, right2) => {
|
|
82510
82481
|
if (isTypeAny(left2) || isTypeAny(right2)) {
|
|
82511
82482
|
return true;
|
|
@@ -183099,7 +183070,7 @@ var Project2 = class _Project {
|
|
|
183099
183070
|
return this.projectName;
|
|
183100
183071
|
}
|
|
183101
183072
|
removeLocalTypingsFromTypeAcquisition(newTypeAcquisition) {
|
|
183102
|
-
if (!newTypeAcquisition || !newTypeAcquisition.include) {
|
|
183073
|
+
if (!newTypeAcquisition.enable || !newTypeAcquisition.include) {
|
|
183103
183074
|
return newTypeAcquisition;
|
|
183104
183075
|
}
|
|
183105
183076
|
return { ...newTypeAcquisition, include: this.removeExistingTypings(newTypeAcquisition.include) };
|
|
@@ -183537,8 +183508,9 @@ var Project2 = class _Project {
|
|
|
183537
183508
|
return this.program;
|
|
183538
183509
|
}
|
|
183539
183510
|
removeExistingTypings(include) {
|
|
183511
|
+
if (!include.length) return include;
|
|
183540
183512
|
const existing = getAutomaticTypeDirectiveNames(this.getCompilerOptions(), this.directoryStructureHost);
|
|
183541
|
-
return
|
|
183513
|
+
return filter(include, (i) => !existing.includes(i));
|
|
183542
183514
|
}
|
|
183543
183515
|
updateGraphWorker() {
|
|
183544
183516
|
var _a, _b;
|
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.6.0-pr-
|
|
5
|
+
"version": "5.6.0-pr-59352-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|