@typescript-deploys/pr-build 6.0.0-pr-56976-2 → 6.0.0-pr-62661-9
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 +30 -24
- 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 +32 -26
- 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.20251022`;
|
|
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."),
|
|
@@ -33640,7 +33641,11 @@ var Parser;
|
|
|
33640
33641
|
case 121 /* LetKeyword */:
|
|
33641
33642
|
case 87 /* ConstKeyword */:
|
|
33642
33643
|
case 160 /* UsingKeyword */:
|
|
33644
|
+
return parseVariableStatement(pos, hasJSDoc, modifiersIn);
|
|
33643
33645
|
case 135 /* AwaitKeyword */:
|
|
33646
|
+
if (!isAwaitUsingDeclaration()) {
|
|
33647
|
+
break;
|
|
33648
|
+
}
|
|
33644
33649
|
return parseVariableStatement(pos, hasJSDoc, modifiersIn);
|
|
33645
33650
|
case 100 /* FunctionKeyword */:
|
|
33646
33651
|
return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn);
|
|
@@ -33669,20 +33674,19 @@ var Parser;
|
|
|
33669
33674
|
default:
|
|
33670
33675
|
return parseExportDeclaration(pos, hasJSDoc, modifiersIn);
|
|
33671
33676
|
}
|
|
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
33677
|
}
|
|
33678
|
+
if (modifiersIn) {
|
|
33679
|
+
const missing = createMissingNode(
|
|
33680
|
+
283 /* MissingDeclaration */,
|
|
33681
|
+
/*reportAtCurrentPosition*/
|
|
33682
|
+
true,
|
|
33683
|
+
Diagnostics.Declaration_expected
|
|
33684
|
+
);
|
|
33685
|
+
setTextRangePos(missing, pos);
|
|
33686
|
+
missing.modifiers = modifiersIn;
|
|
33687
|
+
return missing;
|
|
33688
|
+
}
|
|
33689
|
+
return void 0;
|
|
33686
33690
|
}
|
|
33687
33691
|
function nextTokenIsStringLiteral() {
|
|
33688
33692
|
return nextToken() === 11 /* StringLiteral */;
|
|
@@ -33801,7 +33805,9 @@ var Parser;
|
|
|
33801
33805
|
flags |= 4 /* Using */;
|
|
33802
33806
|
break;
|
|
33803
33807
|
case 135 /* AwaitKeyword */:
|
|
33804
|
-
|
|
33808
|
+
if (!isAwaitUsingDeclaration()) {
|
|
33809
|
+
break;
|
|
33810
|
+
}
|
|
33805
33811
|
flags |= 6 /* AwaitUsing */;
|
|
33806
33812
|
nextToken();
|
|
33807
33813
|
break;
|
|
@@ -34421,7 +34427,7 @@ var Parser;
|
|
|
34421
34427
|
}
|
|
34422
34428
|
function tryParseImportAttributes() {
|
|
34423
34429
|
const currentToken2 = token();
|
|
34424
|
-
if (
|
|
34430
|
+
if (currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */ && !scanner.hasPrecedingLineBreak()) {
|
|
34425
34431
|
return parseImportAttributes(currentToken2);
|
|
34426
34432
|
}
|
|
34427
34433
|
}
|
|
@@ -36903,7 +36909,7 @@ var commandOptionsWithoutBuild = [
|
|
|
36903
36909
|
showInSimplifiedHelpView: true,
|
|
36904
36910
|
category: Diagnostics.JavaScript_Support,
|
|
36905
36911
|
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,
|
|
36906
|
-
defaultValueDescription:
|
|
36912
|
+
defaultValueDescription: Diagnostics.false_unless_checkJs_is_set
|
|
36907
36913
|
},
|
|
36908
36914
|
{
|
|
36909
36915
|
name: "checkJs",
|
|
@@ -68984,7 +68990,7 @@ function createTypeChecker(host) {
|
|
|
68984
68990
|
if (sourceNameType && targetNameType) inferFromTypes(sourceNameType, targetNameType);
|
|
68985
68991
|
}
|
|
68986
68992
|
function inferFromObjectTypes(source, target) {
|
|
68987
|
-
var _a, _b
|
|
68993
|
+
var _a, _b;
|
|
68988
68994
|
if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) {
|
|
68989
68995
|
inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));
|
|
68990
68996
|
return;
|
|
@@ -69025,16 +69031,13 @@ function createTypeChecker(host) {
|
|
|
69025
69031
|
const middleLength = targetArity - startLength - endLength;
|
|
69026
69032
|
if (middleLength === 2) {
|
|
69027
69033
|
if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
69028
|
-
|
|
69034
|
+
const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
|
|
69029
69035
|
if (targetInfo && targetInfo.impliedArity !== void 0) {
|
|
69030
69036
|
inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
|
|
69031
69037
|
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
69038
|
}
|
|
69036
69039
|
} else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) {
|
|
69037
|
-
const param = (
|
|
69040
|
+
const param = (_a = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a.typeParameter;
|
|
69038
69041
|
const constraint = param && getBaseConstraintOfType(param);
|
|
69039
69042
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
69040
69043
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -69042,7 +69045,7 @@ function createTypeChecker(host) {
|
|
|
69042
69045
|
inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
|
|
69043
69046
|
}
|
|
69044
69047
|
} else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
69045
|
-
const param = (
|
|
69048
|
+
const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
|
|
69046
69049
|
const constraint = param && getBaseConstraintOfType(param);
|
|
69047
69050
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
69048
69051
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -83990,6 +83993,9 @@ function createTypeChecker(host) {
|
|
|
83990
83993
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
83991
83994
|
let allIterationTypes;
|
|
83992
83995
|
for (const constituent of type.types) {
|
|
83996
|
+
if (!!(getReducedType(constituent).flags & 131072 /* Never */)) {
|
|
83997
|
+
continue;
|
|
83998
|
+
}
|
|
83993
83999
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
83994
84000
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
83995
84001
|
if (iterationTypes2 === noIterationTypes) {
|
|
@@ -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.20251022`;
|
|
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."),
|
|
@@ -37896,7 +37897,11 @@ var Parser;
|
|
|
37896
37897
|
case 121 /* LetKeyword */:
|
|
37897
37898
|
case 87 /* ConstKeyword */:
|
|
37898
37899
|
case 160 /* UsingKeyword */:
|
|
37900
|
+
return parseVariableStatement(pos, hasJSDoc, modifiersIn);
|
|
37899
37901
|
case 135 /* AwaitKeyword */:
|
|
37902
|
+
if (!isAwaitUsingDeclaration()) {
|
|
37903
|
+
break;
|
|
37904
|
+
}
|
|
37900
37905
|
return parseVariableStatement(pos, hasJSDoc, modifiersIn);
|
|
37901
37906
|
case 100 /* FunctionKeyword */:
|
|
37902
37907
|
return parseFunctionDeclaration(pos, hasJSDoc, modifiersIn);
|
|
@@ -37925,20 +37930,19 @@ var Parser;
|
|
|
37925
37930
|
default:
|
|
37926
37931
|
return parseExportDeclaration(pos, hasJSDoc, modifiersIn);
|
|
37927
37932
|
}
|
|
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
37933
|
}
|
|
37934
|
+
if (modifiersIn) {
|
|
37935
|
+
const missing = createMissingNode(
|
|
37936
|
+
283 /* MissingDeclaration */,
|
|
37937
|
+
/*reportAtCurrentPosition*/
|
|
37938
|
+
true,
|
|
37939
|
+
Diagnostics.Declaration_expected
|
|
37940
|
+
);
|
|
37941
|
+
setTextRangePos(missing, pos);
|
|
37942
|
+
missing.modifiers = modifiersIn;
|
|
37943
|
+
return missing;
|
|
37944
|
+
}
|
|
37945
|
+
return void 0;
|
|
37942
37946
|
}
|
|
37943
37947
|
function nextTokenIsStringLiteral() {
|
|
37944
37948
|
return nextToken() === 11 /* StringLiteral */;
|
|
@@ -38057,7 +38061,9 @@ var Parser;
|
|
|
38057
38061
|
flags |= 4 /* Using */;
|
|
38058
38062
|
break;
|
|
38059
38063
|
case 135 /* AwaitKeyword */:
|
|
38060
|
-
|
|
38064
|
+
if (!isAwaitUsingDeclaration()) {
|
|
38065
|
+
break;
|
|
38066
|
+
}
|
|
38061
38067
|
flags |= 6 /* AwaitUsing */;
|
|
38062
38068
|
nextToken();
|
|
38063
38069
|
break;
|
|
@@ -38677,7 +38683,7 @@ var Parser;
|
|
|
38677
38683
|
}
|
|
38678
38684
|
function tryParseImportAttributes() {
|
|
38679
38685
|
const currentToken2 = token();
|
|
38680
|
-
if (
|
|
38686
|
+
if (currentToken2 === 118 /* WithKeyword */ || currentToken2 === 132 /* AssertKeyword */ && !scanner2.hasPrecedingLineBreak()) {
|
|
38681
38687
|
return parseImportAttributes(currentToken2);
|
|
38682
38688
|
}
|
|
38683
38689
|
}
|
|
@@ -41159,7 +41165,7 @@ var commandOptionsWithoutBuild = [
|
|
|
41159
41165
|
showInSimplifiedHelpView: true,
|
|
41160
41166
|
category: Diagnostics.JavaScript_Support,
|
|
41161
41167
|
description: Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJs_option_to_get_errors_from_these_files,
|
|
41162
|
-
defaultValueDescription:
|
|
41168
|
+
defaultValueDescription: Diagnostics.false_unless_checkJs_is_set
|
|
41163
41169
|
},
|
|
41164
41170
|
{
|
|
41165
41171
|
name: "checkJs",
|
|
@@ -73590,7 +73596,7 @@ function createTypeChecker(host) {
|
|
|
73590
73596
|
if (sourceNameType && targetNameType) inferFromTypes(sourceNameType, targetNameType);
|
|
73591
73597
|
}
|
|
73592
73598
|
function inferFromObjectTypes(source, target) {
|
|
73593
|
-
var _a, _b
|
|
73599
|
+
var _a, _b;
|
|
73594
73600
|
if (getObjectFlags(source) & 4 /* Reference */ && getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) {
|
|
73595
73601
|
inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));
|
|
73596
73602
|
return;
|
|
@@ -73631,16 +73637,13 @@ function createTypeChecker(host) {
|
|
|
73631
73637
|
const middleLength = targetArity - startLength - endLength;
|
|
73632
73638
|
if (middleLength === 2) {
|
|
73633
73639
|
if (elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
73634
|
-
|
|
73640
|
+
const targetInfo = getInferenceInfoForType(elementTypes[startLength]);
|
|
73635
73641
|
if (targetInfo && targetInfo.impliedArity !== void 0) {
|
|
73636
73642
|
inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);
|
|
73637
73643
|
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
73644
|
}
|
|
73642
73645
|
} else if (elementFlags[startLength] & 8 /* Variadic */ && elementFlags[startLength + 1] & 4 /* Rest */) {
|
|
73643
|
-
const param = (
|
|
73646
|
+
const param = (_a = getInferenceInfoForType(elementTypes[startLength])) == null ? void 0 : _a.typeParameter;
|
|
73644
73647
|
const constraint = param && getBaseConstraintOfType(param);
|
|
73645
73648
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
73646
73649
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -73648,7 +73651,7 @@ function createTypeChecker(host) {
|
|
|
73648
73651
|
inferFromTypes(getElementTypeOfSliceOfTupleType(source, startLength + impliedArity, endLength), elementTypes[startLength + 1]);
|
|
73649
73652
|
}
|
|
73650
73653
|
} else if (elementFlags[startLength] & 4 /* Rest */ && elementFlags[startLength + 1] & 8 /* Variadic */) {
|
|
73651
|
-
const param = (
|
|
73654
|
+
const param = (_b = getInferenceInfoForType(elementTypes[startLength + 1])) == null ? void 0 : _b.typeParameter;
|
|
73652
73655
|
const constraint = param && getBaseConstraintOfType(param);
|
|
73653
73656
|
if (constraint && isTupleType(constraint) && !(constraint.target.combinedFlags & 12 /* Variable */)) {
|
|
73654
73657
|
const impliedArity = constraint.target.fixedLength;
|
|
@@ -88596,6 +88599,9 @@ function createTypeChecker(host) {
|
|
|
88596
88599
|
if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
|
|
88597
88600
|
let allIterationTypes;
|
|
88598
88601
|
for (const constituent of type.types) {
|
|
88602
|
+
if (!!(getReducedType(constituent).flags & 131072 /* Never */)) {
|
|
88603
|
+
continue;
|
|
88604
|
+
}
|
|
88599
88605
|
const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
|
|
88600
88606
|
const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
|
|
88601
88607
|
if (iterationTypes2 === noIterationTypes) {
|
|
@@ -145929,8 +145935,8 @@ function addChildrenRecursively(node) {
|
|
|
145929
145935
|
addNodeWithRecursiveChild(node, getInteriorModule(node).body);
|
|
145930
145936
|
break;
|
|
145931
145937
|
case 278 /* ExportAssignment */: {
|
|
145932
|
-
const expression2 = node.expression;
|
|
145933
|
-
const child = isObjectLiteralExpression(expression2) || isCallExpression(expression2) ? expression2 : isArrowFunction(expression2) || isFunctionExpression(expression2) ? expression2.body : void 0;
|
|
145938
|
+
const expression2 = skipOuterExpressions(node.expression);
|
|
145939
|
+
const child = isObjectLiteralExpression(expression2) || isCallExpression(expression2) || isClassExpression(expression2) ? expression2 : isArrowFunction(expression2) || isFunctionExpression(expression2) ? expression2.body : void 0;
|
|
145934
145940
|
if (child) {
|
|
145935
145941
|
startNode(node);
|
|
145936
145942
|
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-9",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|