@typescript-deploys/pr-build 6.0.0-pr-56976-2 → 6.0.0-pr-62661-13
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 +65 -49
- package/lib/es/diagnosticMessages.generated.json +2 -1
- package/lib/ko/diagnosticMessages.generated.json +2 -1
- package/lib/pt-br/diagnosticMessages.generated.json +2 -1
- package/lib/typescript.js +67 -51
- package/lib/zh-tw/diagnosticMessages.generated.json +2 -1
- package/package.json +1 -1
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 = "6.0";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20251024`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -7565,6 +7565,7 @@ var Diagnostics = {
|
|
|
7565
7565
|
Compiles_the_current_project_with_additional_settings: diag(6929, 3 /* Message */, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."),
|
|
7566
7566
|
true_for_ES2022_and_above_including_ESNext: diag(6930, 3 /* Message */, "true_for_ES2022_and_above_including_ESNext_6930", "`true` for ES2022 and above, including ESNext."),
|
|
7567
7567
|
List_of_file_name_suffixes_to_search_when_resolving_a_module: diag(6931, 1 /* Error */, "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931", "List of file name suffixes to search when resolving a module."),
|
|
7568
|
+
false_unless_checkJs_is_set: diag(6932, 3 /* Message */, "false_unless_checkJs_is_set_6932", "`false`, unless `checkJs` is set"),
|
|
7568
7569
|
Variable_0_implicitly_has_an_1_type: diag(7005, 1 /* Error */, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."),
|
|
7569
7570
|
Parameter_0_implicitly_has_an_1_type: diag(7006, 1 /* Error */, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."),
|
|
7570
7571
|
Member_0_implicitly_has_an_1_type: diag(7008, 1 /* Error */, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."),
|
|
@@ -18036,29 +18037,21 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
18036
18037
|
}
|
|
18037
18038
|
},
|
|
18038
18039
|
esModuleInterop: {
|
|
18039
|
-
dependencies: [
|
|
18040
|
+
dependencies: [],
|
|
18040
18041
|
computeValue: (compilerOptions) => {
|
|
18041
18042
|
if (compilerOptions.esModuleInterop !== void 0) {
|
|
18042
18043
|
return compilerOptions.esModuleInterop;
|
|
18043
18044
|
}
|
|
18044
|
-
|
|
18045
|
-
case 100 /* Node16 */:
|
|
18046
|
-
case 101 /* Node18 */:
|
|
18047
|
-
case 102 /* Node20 */:
|
|
18048
|
-
case 199 /* NodeNext */:
|
|
18049
|
-
case 200 /* Preserve */:
|
|
18050
|
-
return true;
|
|
18051
|
-
}
|
|
18052
|
-
return false;
|
|
18045
|
+
return true;
|
|
18053
18046
|
}
|
|
18054
18047
|
},
|
|
18055
18048
|
allowSyntheticDefaultImports: {
|
|
18056
|
-
dependencies: [
|
|
18049
|
+
dependencies: [],
|
|
18057
18050
|
computeValue: (compilerOptions) => {
|
|
18058
18051
|
if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
|
|
18059
18052
|
return compilerOptions.allowSyntheticDefaultImports;
|
|
18060
18053
|
}
|
|
18061
|
-
return
|
|
18054
|
+
return true;
|
|
18062
18055
|
}
|
|
18063
18056
|
},
|
|
18064
18057
|
resolvePackageJsonExports: {
|
|
@@ -33640,7 +33633,11 @@ var Parser;
|
|
|
33640
33633
|
case 121 /* LetKeyword */:
|
|
33641
33634
|
case 87 /* ConstKeyword */:
|
|
33642
33635
|
case 160 /* UsingKeyword */:
|
|
33636
|
+
return parseVariableStatement(pos, hasJSDoc, modifiersIn);
|
|
33643
33637
|
case 135 /* AwaitKeyword */:
|
|
33638
|
+
if (!isAwaitUsingDeclaration()) {
|
|
33639
|
+
break;
|
|
33640
|
+
}
|
|
33644
33641
|
return parseVariableStatement(pos, hasJSDoc, modifiersIn);
|
|
33645
33642
|
case 100 /* FunctionKeyword */:
|
|
33646
33643
|
return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn);
|
|
@@ -33669,20 +33666,19 @@ var Parser;
|
|
|
33669
33666
|
default:
|
|
33670
33667
|
return parseExportDeclaration(pos, hasJSDoc, modifiersIn);
|
|
33671
33668
|
}
|
|
33672
|
-
default:
|
|
33673
|
-
if (modifiersIn) {
|
|
33674
|
-
const missing = createMissingNode(
|
|
33675
|
-
283 /* MissingDeclaration */,
|
|
33676
|
-
/*reportAtCurrentPosition*/
|
|
33677
|
-
true,
|
|
33678
|
-
Diagnostics.Declaration_expected
|
|
33679
|
-
);
|
|
33680
|
-
setTextRangePos(missing, pos);
|
|
33681
|
-
missing.modifiers = modifiersIn;
|
|
33682
|
-
return missing;
|
|
33683
|
-
}
|
|
33684
|
-
return void 0;
|
|
33685
33669
|
}
|
|
33670
|
+
if (modifiersIn) {
|
|
33671
|
+
const missing = createMissingNode(
|
|
33672
|
+
283 /* MissingDeclaration */,
|
|
33673
|
+
/*reportAtCurrentPosition*/
|
|
33674
|
+
true,
|
|
33675
|
+
Diagnostics.Declaration_expected
|
|
33676
|
+
);
|
|
33677
|
+
setTextRangePos(missing, pos);
|
|
33678
|
+
missing.modifiers = modifiersIn;
|
|
33679
|
+
return missing;
|
|
33680
|
+
}
|
|
33681
|
+
return void 0;
|
|
33686
33682
|
}
|
|
33687
33683
|
function nextTokenIsStringLiteral() {
|
|
33688
33684
|
return nextToken() === 11 /* StringLiteral */;
|
|
@@ -33801,7 +33797,9 @@ var Parser;
|
|
|
33801
33797
|
flags |= 4 /* Using */;
|
|
33802
33798
|
break;
|
|
33803
33799
|
case 135 /* AwaitKeyword */:
|
|
33804
|
-
|
|
33800
|
+
if (!isAwaitUsingDeclaration()) {
|
|
33801
|
+
break;
|
|
33802
|
+
}
|
|
33805
33803
|
flags |= 6 /* AwaitUsing */;
|
|
33806
33804
|
nextToken();
|
|
33807
33805
|
break;
|
|
@@ -34421,7 +34419,7 @@ var Parser;
|
|
|
34421
34419
|
}
|
|
34422
34420
|
function tryParseImportAttributes() {
|
|
34423
34421
|
const currentToken2 = token();
|
|
34424
|
-
if (
|
|
34422
|
+
if (currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */ && !scanner.hasPrecedingLineBreak()) {
|
|
34425
34423
|
return parseImportAttributes(currentToken2);
|
|
34426
34424
|
}
|
|
34427
34425
|
}
|
|
@@ -36903,7 +36901,7 @@ var commandOptionsWithoutBuild = [
|
|
|
36903
36901
|
showInSimplifiedHelpView: true,
|
|
36904
36902
|
category: Diagnostics.JavaScript_Support,
|
|
36905
36903
|
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,
|
|
36906
|
-
defaultValueDescription:
|
|
36904
|
+
defaultValueDescription: Diagnostics.false_unless_checkJs_is_set
|
|
36907
36905
|
},
|
|
36908
36906
|
{
|
|
36909
36907
|
name: "checkJs",
|
|
@@ -37351,7 +37349,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37351
37349
|
affectsBuildInfo: true,
|
|
37352
37350
|
category: Diagnostics.Interop_Constraints,
|
|
37353
37351
|
description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,
|
|
37354
|
-
defaultValueDescription:
|
|
37352
|
+
defaultValueDescription: true
|
|
37355
37353
|
},
|
|
37356
37354
|
{
|
|
37357
37355
|
name: "esModuleInterop",
|
|
@@ -37362,7 +37360,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37362
37360
|
showInSimplifiedHelpView: true,
|
|
37363
37361
|
category: Diagnostics.Interop_Constraints,
|
|
37364
37362
|
description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
|
|
37365
|
-
defaultValueDescription:
|
|
37363
|
+
defaultValueDescription: true
|
|
37366
37364
|
},
|
|
37367
37365
|
{
|
|
37368
37366
|
name: "preserveSymlinks",
|
|
@@ -68984,7 +68982,7 @@ function createTypeChecker(host) {
|
|
|
68984
68982
|
if (sourceNameType && targetNameType) inferFromTypes(sourceNameType, targetNameType);
|
|
68985
68983
|
}
|
|
68986
68984
|
function inferFromObjectTypes(source, target) {
|
|
68987
|
-
var _a, _b
|
|
68985
|
+
var _a, _b;
|
|
68988
68986
|
if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) {
|
|
68989
68987
|
inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));
|
|
68990
68988
|
return;
|
|
@@ -69025,16 +69023,13 @@ function createTypeChecker(host) {
|
|
|
69025
69023
|
const middleLength = targetArity - startLength - endLength;
|
|
69026
69024
|
if (middleLength === 2) {
|
|
69027
69025
|
if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
69028
|
-
|
|
69026
|
+
const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
|
|
69029
69027
|
if (targetInfo && targetInfo.impliedArity !== void 0) {
|
|
69030
69028
|
inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
|
|
69031
69029
|
inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
|
|
69032
|
-
} else if (((_a = targetInfo = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _a.impliedArity) !== void 0) {
|
|
69033
|
-
inferFromTypes(sliceTupleType(source, startLength, endLength + targetInfo.impliedArity), elementTypes[startLength]);
|
|
69034
|
-
inferFromTypes(sliceTupleType(source, startLength + sourceArity - endLength - targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
|
|
69035
69030
|
}
|
|
69036
69031
|
} else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) {
|
|
69037
|
-
const param = (
|
|
69032
|
+
const param = (_a = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a.typeParameter;
|
|
69038
69033
|
const constraint = param && getBaseConstraintOfType(param);
|
|
69039
69034
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
69040
69035
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -69042,7 +69037,7 @@ function createTypeChecker(host) {
|
|
|
69042
69037
|
inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
|
|
69043
69038
|
}
|
|
69044
69039
|
} else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
69045
|
-
const param = (
|
|
69040
|
+
const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
|
|
69046
69041
|
const constraint = param && getBaseConstraintOfType(param);
|
|
69047
69042
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
69048
69043
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -74398,7 +74393,7 @@ function createTypeChecker(host) {
|
|
|
74398
74393
|
}
|
|
74399
74394
|
function checkSpreadPropOverrides(type, props, spread) {
|
|
74400
74395
|
for (const right of getPropertiesOfType(type)) {
|
|
74401
|
-
if (!(right.flags & 16777216 /* Optional */)) {
|
|
74396
|
+
if (!(right.flags & 16777216 /* Optional */) && !(getCheckFlags(right) & 48 /* Partial */)) {
|
|
74402
74397
|
const left = props.get(right.escapedName);
|
|
74403
74398
|
if (left) {
|
|
74404
74399
|
const diagnostic = error(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName));
|
|
@@ -83961,18 +83956,19 @@ function createTypeChecker(host) {
|
|
|
83961
83956
|
}
|
|
83962
83957
|
function getIterationTypesOfIterable(type, use, errorNode) {
|
|
83963
83958
|
var _a, _b;
|
|
83964
|
-
|
|
83959
|
+
const reducedType = getReducedType(type);
|
|
83960
|
+
if (reducedType === silentNeverType) {
|
|
83965
83961
|
return silentNeverIterationTypes;
|
|
83966
83962
|
}
|
|
83967
|
-
if (isTypeAny(
|
|
83963
|
+
if (isTypeAny(reducedType)) {
|
|
83968
83964
|
return anyIterationTypes;
|
|
83969
83965
|
}
|
|
83970
|
-
if (!(
|
|
83966
|
+
if (!(reducedType.flags & 1048576 /* Union */)) {
|
|
83971
83967
|
const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0;
|
|
83972
|
-
const iterationTypes2 = getIterationTypesOfIterableWorker(
|
|
83968
|
+
const iterationTypes2 = getIterationTypesOfIterableWorker(reducedType, use, errorNode, errorOutputContainer);
|
|
83973
83969
|
if (iterationTypes2 === noIterationTypes) {
|
|
83974
83970
|
if (errorNode) {
|
|
83975
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
83971
|
+
const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
83976
83972
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
83977
83973
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
83978
83974
|
}
|
|
@@ -83986,20 +83982,20 @@ function createTypeChecker(host) {
|
|
|
83986
83982
|
return iterationTypes2;
|
|
83987
83983
|
}
|
|
83988
83984
|
const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable";
|
|
83989
|
-
const cachedTypes2 = getCachedIterationTypes(
|
|
83985
|
+
const cachedTypes2 = getCachedIterationTypes(reducedType, cacheKey);
|
|
83990
83986
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
83991
83987
|
let allIterationTypes;
|
|
83992
|
-
for (const constituent of
|
|
83988
|
+
for (const constituent of reducedType.types) {
|
|
83993
83989
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
83994
83990
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
83995
83991
|
if (iterationTypes2 === noIterationTypes) {
|
|
83996
83992
|
if (errorNode) {
|
|
83997
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
83993
|
+
const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
83998
83994
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
83999
83995
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
84000
83996
|
}
|
|
84001
83997
|
}
|
|
84002
|
-
setCachedIterationTypes(
|
|
83998
|
+
setCachedIterationTypes(reducedType, cacheKey, noIterationTypes);
|
|
84003
83999
|
return void 0;
|
|
84004
84000
|
} else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {
|
|
84005
84001
|
for (const diag2 of errorOutputContainer.errors) {
|
|
@@ -84009,7 +84005,7 @@ function createTypeChecker(host) {
|
|
|
84009
84005
|
allIterationTypes = append(allIterationTypes, iterationTypes2);
|
|
84010
84006
|
}
|
|
84011
84007
|
const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;
|
|
84012
|
-
setCachedIterationTypes(
|
|
84008
|
+
setCachedIterationTypes(reducedType, cacheKey, iterationTypes);
|
|
84013
84009
|
return iterationTypes === noIterationTypes ? void 0 : iterationTypes;
|
|
84014
84010
|
}
|
|
84015
84011
|
function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {
|
|
@@ -124721,6 +124717,26 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124721
124717
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
124722
124718
|
);
|
|
124723
124719
|
}
|
|
124720
|
+
if (options.esModuleInterop === false) {
|
|
124721
|
+
createDeprecatedDiagnostic(
|
|
124722
|
+
"esModuleInterop",
|
|
124723
|
+
"false",
|
|
124724
|
+
/*useInstead*/
|
|
124725
|
+
void 0,
|
|
124726
|
+
/*related*/
|
|
124727
|
+
void 0
|
|
124728
|
+
);
|
|
124729
|
+
}
|
|
124730
|
+
if (options.allowSyntheticDefaultImports === false) {
|
|
124731
|
+
createDeprecatedDiagnostic(
|
|
124732
|
+
"allowSyntheticDefaultImports",
|
|
124733
|
+
"false",
|
|
124734
|
+
/*useInstead*/
|
|
124735
|
+
void 0,
|
|
124736
|
+
/*related*/
|
|
124737
|
+
void 0
|
|
124738
|
+
);
|
|
124739
|
+
}
|
|
124724
124740
|
});
|
|
124725
124741
|
}
|
|
124726
124742
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "Un nombre de propiedad calculada en un contexto de ambiente debe hacer referencia a una expresión que sea de tipo literal o \"unique symbol\".",
|
|
27
27
|
"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "Un nombre de propiedad calculada en una interfaz debe hacer referencia a una expresión que sea de tipo literal o \"unique symbol\".",
|
|
28
28
|
"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "Un nombre de propiedad calculada debe ser de tipo \"string\", \"number\", \"symbol\" o \"any\".",
|
|
29
|
-
"
|
|
29
|
+
"A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_o_1355": "Las aserciones \"const\" solo pueden aplicarse a las referencias a miembros de enumeración o a literales de cadena, numéricos, booleanos, de matriz o de objeto.",
|
|
30
30
|
"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "Solo se puede acceder a un miembro de enumeración const mediante un literal de cadena.",
|
|
31
31
|
"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "Un inicializador \"const\" en un contexto de ambiente debe ser un literal de cadena o numérico o bien una referencia de enumeración de literal.",
|
|
32
32
|
"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "Un constructor no puede contener una llamada a \"super\" si su clase extiende \"null\".",
|
|
@@ -365,6 +365,7 @@
|
|
|
365
365
|
"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "No se encuentra el módulo \"{0}\". Considere la posibilidad de usar \"--resolveJsonModule\" para importar el módulo con la extensión \".json\".",
|
|
366
366
|
"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "No se encuentra el módulo “{0}”. ¿Pretendía establecer la opción “moduleResolution” en “nodenext” o agregar alias a la opción “paths”?",
|
|
367
367
|
"Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "No se encuentra el módulo \"{0}\" ni sus declaraciones de tipos correspondientes.",
|
|
368
|
+
"Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882": "No se pueden encontrar declaraciones de módulo o tipo para la importación de efectos secundarios de ''{0}\".",
|
|
368
369
|
"Cannot_find_name_0_2304": "No se encuentra el nombre '{0}'.",
|
|
369
370
|
"Cannot_find_name_0_Did_you_mean_1_2552": "No se encuentra el nombre \"{0}\". ¿Quería decir \"{1}\"?",
|
|
370
371
|
"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "No se encuentra el nombre '{0}'. ¿Quería decir el miembro de instancia 'this.{0}'?",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "앰비언트 컨텍스트의 계산된 속성 이름은 형식이 리터럴 형식이거나 'unique symbol' 형식인 식을 참조해야 합니다.",
|
|
27
27
|
"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "인터페이스의 계산된 속성 이름은 형식이 리터럴 형식이거나 'unique symbol' 형식인 식을 참조해야 합니다.",
|
|
28
28
|
"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "계산된 속성 이름은 'string', 'number', 'symbol' 또는 'any' 형식이어야 합니다.",
|
|
29
|
-
"
|
|
29
|
+
"A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_o_1355": "'const' 어설션은 열거형 멤버나 문자열, 숫자, 부울, 배열 또는 객체 리터럴에 대한 참조에만 적용할 수 있습니다.",
|
|
30
30
|
"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "const 열거형 멤버는 문자열 리터럴을 통해서만 액세스할 수 있습니다.",
|
|
31
31
|
"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "앰비언트 컨텍스트의 'const' 이니셜라이저는 문자열, 숫자 리터럴 또는 리터럴 열거형 참조여야 합니다.",
|
|
32
32
|
"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "생성자는 해당 클래스가 'null'을 확장하는 경우 'super' 호출을 포함할 수 없습니다.",
|
|
@@ -365,6 +365,7 @@
|
|
|
365
365
|
"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "'{0}' 모듈을 찾을 수 없습니다. '--resolveJsonModule'을 사용하여 '. json' 확장명이 포함된 모듈을 가져오는 것이 좋습니다.",
|
|
366
366
|
"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "'{0}' 모듈을 찾을 수 없습니다. 'moduleResolution' 옵션을 'nodenext'로 설정하거나 'paths' 옵션에 별칭을 추가하려고 하셨나요?",
|
|
367
367
|
"Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "'{0}' 모듈 또는 해당 형식 선언을 찾을 수 없습니다.",
|
|
368
|
+
"Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882": "'{0}' 부수 효과 가져오기에 대한 모듈 또는 형식 선언을 찾을 수 없습니다.",
|
|
368
369
|
"Cannot_find_name_0_2304": "'{0}' 이름을 찾을 수 없습니다.",
|
|
369
370
|
"Cannot_find_name_0_Did_you_mean_1_2552": "'{0}' 이름을 찾을 수 없습니다. '{1}'을(를) 사용하시겠습니까?",
|
|
370
371
|
"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "'{0}' 이름을 찾을 수 없습니다. 인스턴스 멤버 'this.{0}'을(를) 사용하시겠습니까?",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "Um nome de propriedade computado em um contexto de ambiente deve se referir a uma expressão cujo tipo é um tipo literal ou um 'unique symbol'.",
|
|
27
27
|
"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "Um nome de propriedade computado em uma interface deve se referir a uma expressão cujo tipo é um tipo literal ou um 'unique symbol'.",
|
|
28
28
|
"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "Um nome de propriedade calculado deve ser do tipo 'string', 'number', 'symbol' ou 'any'.",
|
|
29
|
-
"
|
|
29
|
+
"A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_o_1355": "Uma declaração ''const'' só pode ser aplicada a referências a membros de enumeração ou literais de cadeia de caracteres, número, booliano, matriz ou objeto.",
|
|
30
30
|
"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "Um membro const enum só pode ser acessado usando um literal de cadeia de caracteres.",
|
|
31
31
|
"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "Um inicializador 'const' em um contexto de ambiente deve ser uma cadeia de caracteres ou um literal numérico ou uma referência de enumeração literal.",
|
|
32
32
|
"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "Um construtor não pode conter uma chamada 'super' quando sua classe estende 'null'.",
|
|
@@ -365,6 +365,7 @@
|
|
|
365
365
|
"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "Não é possível localizar o módulo '{0}'. Considere usar '--resolveJsonModule' para importar o módulo com a extensão '.json'.",
|
|
366
366
|
"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "Não é possível localizar o módulo '{0}'. Você quis definir a opção 'moduleResolution' como 'nodenext' ou adicionar aliases à opção 'paths'?",
|
|
367
367
|
"Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "Não é possível localizar o módulo '{0}' ou suas declarações de tipo correspondentes.",
|
|
368
|
+
"Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882": "Não é possível encontrar as declarações de módulo ou tipo para a importação com efeito colateral de ''{0}''.",
|
|
368
369
|
"Cannot_find_name_0_2304": "Não é possível encontrar o nome '{0}'.",
|
|
369
370
|
"Cannot_find_name_0_Did_you_mean_1_2552": "Não é possível localizar o nome '{0}'. Você quis dizer '{1}'?",
|
|
370
371
|
"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "Não foi possível localizar o nome '{0}'. Você quis dizer o membro de instância 'this.{0}'?",
|
package/lib/typescript.js
CHANGED
|
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2286
2286
|
|
|
2287
2287
|
// src/compiler/corePublic.ts
|
|
2288
2288
|
var versionMajorMinor = "6.0";
|
|
2289
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2289
|
+
var version = `${versionMajorMinor}.0-insiders.20251024`;
|
|
2290
2290
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2291
2291
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2292
2292
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10952,6 +10952,7 @@ var Diagnostics = {
|
|
|
10952
10952
|
Compiles_the_current_project_with_additional_settings: diag(6929, 3 /* Message */, "Compiles_the_current_project_with_additional_settings_6929", "Compiles the current project, with additional settings."),
|
|
10953
10953
|
true_for_ES2022_and_above_including_ESNext: diag(6930, 3 /* Message */, "true_for_ES2022_and_above_including_ESNext_6930", "`true` for ES2022 and above, including ESNext."),
|
|
10954
10954
|
List_of_file_name_suffixes_to_search_when_resolving_a_module: diag(6931, 1 /* Error */, "List_of_file_name_suffixes_to_search_when_resolving_a_module_6931", "List of file name suffixes to search when resolving a module."),
|
|
10955
|
+
false_unless_checkJs_is_set: diag(6932, 3 /* Message */, "false_unless_checkJs_is_set_6932", "`false`, unless `checkJs` is set"),
|
|
10955
10956
|
Variable_0_implicitly_has_an_1_type: diag(7005, 1 /* Error */, "Variable_0_implicitly_has_an_1_type_7005", "Variable '{0}' implicitly has an '{1}' type."),
|
|
10956
10957
|
Parameter_0_implicitly_has_an_1_type: diag(7006, 1 /* Error */, "Parameter_0_implicitly_has_an_1_type_7006", "Parameter '{0}' implicitly has an '{1}' type."),
|
|
10957
10958
|
Member_0_implicitly_has_an_1_type: diag(7008, 1 /* Error */, "Member_0_implicitly_has_an_1_type_7008", "Member '{0}' implicitly has an '{1}' type."),
|
|
@@ -21989,29 +21990,21 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
21989
21990
|
}
|
|
21990
21991
|
},
|
|
21991
21992
|
esModuleInterop: {
|
|
21992
|
-
dependencies: [
|
|
21993
|
+
dependencies: [],
|
|
21993
21994
|
computeValue: (compilerOptions) => {
|
|
21994
21995
|
if (compilerOptions.esModuleInterop !== void 0) {
|
|
21995
21996
|
return compilerOptions.esModuleInterop;
|
|
21996
21997
|
}
|
|
21997
|
-
|
|
21998
|
-
case 100 /* Node16 */:
|
|
21999
|
-
case 101 /* Node18 */:
|
|
22000
|
-
case 102 /* Node20 */:
|
|
22001
|
-
case 199 /* NodeNext */:
|
|
22002
|
-
case 200 /* Preserve */:
|
|
22003
|
-
return true;
|
|
22004
|
-
}
|
|
22005
|
-
return false;
|
|
21998
|
+
return true;
|
|
22006
21999
|
}
|
|
22007
22000
|
},
|
|
22008
22001
|
allowSyntheticDefaultImports: {
|
|
22009
|
-
dependencies: [
|
|
22002
|
+
dependencies: [],
|
|
22010
22003
|
computeValue: (compilerOptions) => {
|
|
22011
22004
|
if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
|
|
22012
22005
|
return compilerOptions.allowSyntheticDefaultImports;
|
|
22013
22006
|
}
|
|
22014
|
-
return
|
|
22007
|
+
return true;
|
|
22015
22008
|
}
|
|
22016
22009
|
},
|
|
22017
22010
|
resolvePackageJsonExports: {
|
|
@@ -37896,7 +37889,11 @@ var Parser;
|
|
|
37896
37889
|
case 121 /* LetKeyword */:
|
|
37897
37890
|
case 87 /* ConstKeyword */:
|
|
37898
37891
|
case 160 /* UsingKeyword */:
|
|
37892
|
+
return parseVariableStatement(pos, hasJSDoc, modifiersIn);
|
|
37899
37893
|
case 135 /* AwaitKeyword */:
|
|
37894
|
+
if (!isAwaitUsingDeclaration()) {
|
|
37895
|
+
break;
|
|
37896
|
+
}
|
|
37900
37897
|
return parseVariableStatement(pos, hasJSDoc, modifiersIn);
|
|
37901
37898
|
case 100 /* FunctionKeyword */:
|
|
37902
37899
|
return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn);
|
|
@@ -37925,20 +37922,19 @@ var Parser;
|
|
|
37925
37922
|
default:
|
|
37926
37923
|
return parseExportDeclaration(pos, hasJSDoc, modifiersIn);
|
|
37927
37924
|
}
|
|
37928
|
-
default:
|
|
37929
|
-
if (modifiersIn) {
|
|
37930
|
-
const missing = createMissingNode(
|
|
37931
|
-
283 /* MissingDeclaration */,
|
|
37932
|
-
/*reportAtCurrentPosition*/
|
|
37933
|
-
true,
|
|
37934
|
-
Diagnostics.Declaration_expected
|
|
37935
|
-
);
|
|
37936
|
-
setTextRangePos(missing, pos);
|
|
37937
|
-
missing.modifiers = modifiersIn;
|
|
37938
|
-
return missing;
|
|
37939
|
-
}
|
|
37940
|
-
return void 0;
|
|
37941
37925
|
}
|
|
37926
|
+
if (modifiersIn) {
|
|
37927
|
+
const missing = createMissingNode(
|
|
37928
|
+
283 /* MissingDeclaration */,
|
|
37929
|
+
/*reportAtCurrentPosition*/
|
|
37930
|
+
true,
|
|
37931
|
+
Diagnostics.Declaration_expected
|
|
37932
|
+
);
|
|
37933
|
+
setTextRangePos(missing, pos);
|
|
37934
|
+
missing.modifiers = modifiersIn;
|
|
37935
|
+
return missing;
|
|
37936
|
+
}
|
|
37937
|
+
return void 0;
|
|
37942
37938
|
}
|
|
37943
37939
|
function nextTokenIsStringLiteral() {
|
|
37944
37940
|
return nextToken() === 11 /* StringLiteral */;
|
|
@@ -38057,7 +38053,9 @@ var Parser;
|
|
|
38057
38053
|
flags |= 4 /* Using */;
|
|
38058
38054
|
break;
|
|
38059
38055
|
case 135 /* AwaitKeyword */:
|
|
38060
|
-
|
|
38056
|
+
if (!isAwaitUsingDeclaration()) {
|
|
38057
|
+
break;
|
|
38058
|
+
}
|
|
38061
38059
|
flags |= 6 /* AwaitUsing */;
|
|
38062
38060
|
nextToken();
|
|
38063
38061
|
break;
|
|
@@ -38677,7 +38675,7 @@ var Parser;
|
|
|
38677
38675
|
}
|
|
38678
38676
|
function tryParseImportAttributes() {
|
|
38679
38677
|
const currentToken2 = token();
|
|
38680
|
-
if (
|
|
38678
|
+
if (currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */ && !scanner2.hasPrecedingLineBreak()) {
|
|
38681
38679
|
return parseImportAttributes(currentToken2);
|
|
38682
38680
|
}
|
|
38683
38681
|
}
|
|
@@ -41159,7 +41157,7 @@ var commandOptionsWithoutBuild = [
|
|
|
41159
41157
|
showInSimplifiedHelpView: true,
|
|
41160
41158
|
category: Diagnostics.JavaScript_Support,
|
|
41161
41159
|
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,
|
|
41162
|
-
defaultValueDescription:
|
|
41160
|
+
defaultValueDescription: Diagnostics.false_unless_checkJs_is_set
|
|
41163
41161
|
},
|
|
41164
41162
|
{
|
|
41165
41163
|
name: "checkJs",
|
|
@@ -41607,7 +41605,7 @@ var commandOptionsWithoutBuild = [
|
|
|
41607
41605
|
affectsBuildInfo: true,
|
|
41608
41606
|
category: Diagnostics.Interop_Constraints,
|
|
41609
41607
|
description: Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,
|
|
41610
|
-
defaultValueDescription:
|
|
41608
|
+
defaultValueDescription: true
|
|
41611
41609
|
},
|
|
41612
41610
|
{
|
|
41613
41611
|
name: "esModuleInterop",
|
|
@@ -41618,7 +41616,7 @@ var commandOptionsWithoutBuild = [
|
|
|
41618
41616
|
showInSimplifiedHelpView: true,
|
|
41619
41617
|
category: Diagnostics.Interop_Constraints,
|
|
41620
41618
|
description: Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,
|
|
41621
|
-
defaultValueDescription:
|
|
41619
|
+
defaultValueDescription: true
|
|
41622
41620
|
},
|
|
41623
41621
|
{
|
|
41624
41622
|
name: "preserveSymlinks",
|
|
@@ -73590,7 +73588,7 @@ function createTypeChecker(host) {
|
|
|
73590
73588
|
if (sourceNameType && targetNameType) inferFromTypes(sourceNameType, targetNameType);
|
|
73591
73589
|
}
|
|
73592
73590
|
function inferFromObjectTypes(source, target) {
|
|
73593
|
-
var _a, _b
|
|
73591
|
+
var _a, _b;
|
|
73594
73592
|
if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) {
|
|
73595
73593
|
inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));
|
|
73596
73594
|
return;
|
|
@@ -73631,16 +73629,13 @@ function createTypeChecker(host) {
|
|
|
73631
73629
|
const middleLength = targetArity - startLength - endLength;
|
|
73632
73630
|
if (middleLength === 2) {
|
|
73633
73631
|
if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
73634
|
-
|
|
73632
|
+
const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
|
|
73635
73633
|
if (targetInfo && targetInfo.impliedArity !== void 0) {
|
|
73636
73634
|
inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
|
|
73637
73635
|
inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
|
|
73638
|
-
} else if (((_a = targetInfo = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _a.impliedArity) !== void 0) {
|
|
73639
|
-
inferFromTypes(sliceTupleType(source, startLength, endLength + targetInfo.impliedArity), elementTypes[startLength]);
|
|
73640
|
-
inferFromTypes(sliceTupleType(source, startLength + sourceArity - endLength - targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);
|
|
73641
73636
|
}
|
|
73642
73637
|
} else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) {
|
|
73643
|
-
const param = (
|
|
73638
|
+
const param = (_a = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a.typeParameter;
|
|
73644
73639
|
const constraint = param && getBaseConstraintOfType(param);
|
|
73645
73640
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
73646
73641
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -73648,7 +73643,7 @@ function createTypeChecker(host) {
|
|
|
73648
73643
|
inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
|
|
73649
73644
|
}
|
|
73650
73645
|
} else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
73651
|
-
const param = (
|
|
73646
|
+
const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
|
|
73652
73647
|
const constraint = param && getBaseConstraintOfType(param);
|
|
73653
73648
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
73654
73649
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -79004,7 +78999,7 @@ function createTypeChecker(host) {
|
|
|
79004
78999
|
}
|
|
79005
79000
|
function checkSpreadPropOverrides(type, props, spread) {
|
|
79006
79001
|
for (const right of getPropertiesOfType(type)) {
|
|
79007
|
-
if (!(right.flags & 16777216 /* Optional */)) {
|
|
79002
|
+
if (!(right.flags & 16777216 /* Optional */) && !(getCheckFlags(right) & 48 /* Partial */)) {
|
|
79008
79003
|
const left = props.get(right.escapedName);
|
|
79009
79004
|
if (left) {
|
|
79010
79005
|
const diagnostic = error2(left.valueDeclaration, Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, unescapeLeadingUnderscores(left.escapedName));
|
|
@@ -88567,18 +88562,19 @@ function createTypeChecker(host) {
|
|
|
88567
88562
|
}
|
|
88568
88563
|
function getIterationTypesOfIterable(type, use, errorNode) {
|
|
88569
88564
|
var _a, _b;
|
|
88570
|
-
|
|
88565
|
+
const reducedType = getReducedType(type);
|
|
88566
|
+
if (reducedType === silentNeverType) {
|
|
88571
88567
|
return silentNeverIterationTypes;
|
|
88572
88568
|
}
|
|
88573
|
-
if (isTypeAny(
|
|
88569
|
+
if (isTypeAny(reducedType)) {
|
|
88574
88570
|
return anyIterationTypes;
|
|
88575
88571
|
}
|
|
88576
|
-
if (!(
|
|
88572
|
+
if (!(reducedType.flags & 1048576 /* Union */)) {
|
|
88577
88573
|
const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0;
|
|
88578
|
-
const iterationTypes2 = getIterationTypesOfIterableWorker(
|
|
88574
|
+
const iterationTypes2 = getIterationTypesOfIterableWorker(reducedType, use, errorNode, errorOutputContainer);
|
|
88579
88575
|
if (iterationTypes2 === noIterationTypes) {
|
|
88580
88576
|
if (errorNode) {
|
|
88581
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
88577
|
+
const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
88582
88578
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
88583
88579
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
88584
88580
|
}
|
|
@@ -88592,20 +88588,20 @@ function createTypeChecker(host) {
|
|
|
88592
88588
|
return iterationTypes2;
|
|
88593
88589
|
}
|
|
88594
88590
|
const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable";
|
|
88595
|
-
const cachedTypes2 = getCachedIterationTypes(
|
|
88591
|
+
const cachedTypes2 = getCachedIterationTypes(reducedType, cacheKey);
|
|
88596
88592
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
88597
88593
|
let allIterationTypes;
|
|
88598
|
-
for (const constituent of
|
|
88594
|
+
for (const constituent of reducedType.types) {
|
|
88599
88595
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
88600
88596
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
88601
88597
|
if (iterationTypes2 === noIterationTypes) {
|
|
88602
88598
|
if (errorNode) {
|
|
88603
|
-
const rootDiag = reportTypeNotIterableError(errorNode,
|
|
88599
|
+
const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
|
|
88604
88600
|
if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
|
|
88605
88601
|
addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
|
|
88606
88602
|
}
|
|
88607
88603
|
}
|
|
88608
|
-
setCachedIterationTypes(
|
|
88604
|
+
setCachedIterationTypes(reducedType, cacheKey, noIterationTypes);
|
|
88609
88605
|
return void 0;
|
|
88610
88606
|
} else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {
|
|
88611
88607
|
for (const diag2 of errorOutputContainer.errors) {
|
|
@@ -88615,7 +88611,7 @@ function createTypeChecker(host) {
|
|
|
88615
88611
|
allIterationTypes = append(allIterationTypes, iterationTypes2);
|
|
88616
88612
|
}
|
|
88617
88613
|
const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;
|
|
88618
|
-
setCachedIterationTypes(
|
|
88614
|
+
setCachedIterationTypes(reducedType, cacheKey, iterationTypes);
|
|
88619
88615
|
return iterationTypes === noIterationTypes ? void 0 : iterationTypes;
|
|
88620
88616
|
}
|
|
88621
88617
|
function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {
|
|
@@ -129566,6 +129562,26 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129566
129562
|
Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
|
|
129567
129563
|
);
|
|
129568
129564
|
}
|
|
129565
|
+
if (options.esModuleInterop === false) {
|
|
129566
|
+
createDeprecatedDiagnostic(
|
|
129567
|
+
"esModuleInterop",
|
|
129568
|
+
"false",
|
|
129569
|
+
/*useInstead*/
|
|
129570
|
+
void 0,
|
|
129571
|
+
/*related*/
|
|
129572
|
+
void 0
|
|
129573
|
+
);
|
|
129574
|
+
}
|
|
129575
|
+
if (options.allowSyntheticDefaultImports === false) {
|
|
129576
|
+
createDeprecatedDiagnostic(
|
|
129577
|
+
"allowSyntheticDefaultImports",
|
|
129578
|
+
"false",
|
|
129579
|
+
/*useInstead*/
|
|
129580
|
+
void 0,
|
|
129581
|
+
/*related*/
|
|
129582
|
+
void 0
|
|
129583
|
+
);
|
|
129584
|
+
}
|
|
129569
129585
|
});
|
|
129570
129586
|
}
|
|
129571
129587
|
function verifyDeprecatedProjectReference(ref, parentFile, index) {
|
|
@@ -145929,8 +145945,8 @@ function addChildrenRecursively(node) {
|
|
|
145929
145945
|
addNodeWithRecursiveChild(node, getInteriorModule(node).body);
|
|
145930
145946
|
break;
|
|
145931
145947
|
case 278 /* ExportAssignment */: {
|
|
145932
|
-
const expression2 = node.expression;
|
|
145933
|
-
const child = isObjectLiteralExpression(expression2) || isCallExpression(expression2) ? expression2 : isArrowFunction(expression2) || isFunctionExpression(expression2) ? expression2.body : void 0;
|
|
145948
|
+
const expression2 = skipOuterExpressions(node.expression);
|
|
145949
|
+
const child = isObjectLiteralExpression(expression2) || isCallExpression(expression2) || isClassExpression(expression2) ? expression2 : isArrowFunction(expression2) || isFunctionExpression(expression2) ? expression2.body : void 0;
|
|
145934
145950
|
if (child) {
|
|
145935
145951
|
startNode(node);
|
|
145936
145952
|
addChildrenRecursively(child);
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165": "環境內容中的計算屬性名稱必須參考型別為常值型別或 'unique symbol' 型別的運算式。",
|
|
27
27
|
"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169": "介面中的計算屬性名稱必須參考型別為常值型別或 'unique symbol' 型別的運算式。",
|
|
28
28
|
"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464": "計算的屬性名稱必須是 'string'、'number'、'symbol' 或 'any' 類型。",
|
|
29
|
-
"
|
|
29
|
+
"A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_o_1355": "'const' 判斷提示只可套用至列舉成員、字串、數字、布林值、陣列或物件常值的參考。",
|
|
30
30
|
"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476": "若要存取常數列舉成員,必須透過字串常值。",
|
|
31
31
|
"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254": "環境內容中的 'const' 初始設定式必須為字串、數字常值或常值列舉參考。",
|
|
32
32
|
"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005": "當建構函式的類別擴充為 'null' 時,不得包含 'super' 呼叫。",
|
|
@@ -365,6 +365,7 @@
|
|
|
365
365
|
"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732": "找不到模組 '{0}'。建議使用 '--resolveJsonModule',匯入副檔名為 '.json' 的模組。",
|
|
366
366
|
"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792": "找不到模組 '{0}'。您是要將 'moduleResolution' 選項設為 'nodenext',或是要將別名新增至 'paths' 選項?",
|
|
367
367
|
"Cannot_find_module_0_or_its_corresponding_type_declarations_2307": "找不到模組 '{0}' 或其對應的型別宣告。",
|
|
368
|
+
"Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882": "找不到 '{0}' 副作用匯入的模組或類型宣告。",
|
|
368
369
|
"Cannot_find_name_0_2304": "找不到名稱 '{0}'。",
|
|
369
370
|
"Cannot_find_name_0_Did_you_mean_1_2552": "找不到名稱 '{0}'。您指的是 '{1}' 嗎?",
|
|
370
371
|
"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663": "找不到名稱 '{0}'。您要找的是此執行個體成員 'this.{0}' 嗎?",
|
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": "6.0.0-pr-
|
|
5
|
+
"version": "6.0.0-pr-62661-13",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|