typescript 4.8.0-dev.20220511 → 4.8.0-dev.20220514

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.
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = ts.versionMajorMinor + ".0-dev.20220511";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220514";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -8131,6 +8131,7 @@ var ts;
8131
8131
  String_literal_expected: diag(1141, ts.DiagnosticCategory.Error, "String_literal_expected_1141", "String literal expected."),
8132
8132
  Line_break_not_permitted_here: diag(1142, ts.DiagnosticCategory.Error, "Line_break_not_permitted_here_1142", "Line break not permitted here."),
8133
8133
  or_expected: diag(1144, ts.DiagnosticCategory.Error, "or_expected_1144", "'{' or ';' expected."),
8134
+ or_JSX_element_expected: diag(1145, ts.DiagnosticCategory.Error, "or_JSX_element_expected_1145", "'{' or JSX element expected."),
8134
8135
  Declaration_expected: diag(1146, ts.DiagnosticCategory.Error, "Declaration_expected_1146", "Declaration expected."),
8135
8136
  Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, ts.DiagnosticCategory.Error, "Import_declarations_in_a_namespace_cannot_reference_a_module_1147", "Import declarations in a namespace cannot reference a module."),
8136
8137
  Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, ts.DiagnosticCategory.Error, "Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148", "Cannot use imports, exports, or module augmentations when '--module' is 'none'."),
@@ -8276,6 +8277,7 @@ var ts;
8276
8277
  infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, ts.DiagnosticCategory.Error, "infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338", "'infer' declarations are only permitted in the 'extends' clause of a conditional type."),
8277
8278
  Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339", "Module '{0}' does not refer to a value, but is used as a value here."),
8278
8279
  Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, ts.DiagnosticCategory.Error, "Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340", "Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),
8280
+ Class_constructor_may_not_be_an_accessor: diag(1341, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_an_accessor_1341", "Class constructor may not be an accessor."),
8279
8281
  Type_arguments_cannot_be_used_here: diag(1342, ts.DiagnosticCategory.Error, "Type_arguments_cannot_be_used_here_1342", "Type arguments cannot be used here."),
8280
8282
  The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext: diag(1343, ts.DiagnosticCategory.Error, "The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343", "The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),
8281
8283
  A_label_is_not_allowed_here: diag(1344, ts.DiagnosticCategory.Error, "A_label_is_not_allowed_here_1344", "'A label is not allowed here."),
@@ -8294,6 +8296,7 @@ var ts;
8294
8296
  An_enum_member_name_must_be_followed_by_a_or: diag(1357, ts.DiagnosticCategory.Error, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."),
8295
8297
  Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, ts.DiagnosticCategory.Error, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."),
8296
8298
  Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, ts.DiagnosticCategory.Error, "Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359", "Identifier expected. '{0}' is a reserved word that cannot be used here."),
8299
+ Class_constructor_may_not_be_a_generator: diag(1360, ts.DiagnosticCategory.Error, "Class_constructor_may_not_be_a_generator_1360", "Class constructor may not be a generator."),
8297
8300
  _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361", "'{0}' cannot be used as a value because it was imported using 'import type'."),
8298
8301
  _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, ts.DiagnosticCategory.Error, "_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362", "'{0}' cannot be used as a value because it was exported using 'export type'."),
8299
8302
  A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, ts.DiagnosticCategory.Error, "A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363", "A type-only import can specify a default import or named bindings, but not both."),
@@ -8883,6 +8886,7 @@ var ts;
8883
8886
  Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls: diag(2836, ts.DiagnosticCategory.Error, "Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836", "Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),
8884
8887
  Import_assertion_values_must_be_string_literal_expressions: diag(2837, ts.DiagnosticCategory.Error, "Import_assertion_values_must_be_string_literal_expressions_2837", "Import assertion values must be string literal expressions."),
8885
8888
  All_declarations_of_0_must_have_identical_constraints: diag(2838, ts.DiagnosticCategory.Error, "All_declarations_of_0_must_have_identical_constraints_2838", "All declarations of '{0}' must have identical constraints."),
8889
+ This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value: diag(2839, ts.DiagnosticCategory.Error, "This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839", "This condition will always return '{0}' since JavaScript compares objects by reference, not value."),
8886
8890
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
8887
8891
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
8888
8892
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -13193,6 +13197,19 @@ var ts;
13193
13197
  return isLiteralKind(node.kind);
13194
13198
  }
13195
13199
  ts.isLiteralExpression = isLiteralExpression;
13200
+ /** @internal */
13201
+ function isLiteralExpressionOfObject(node) {
13202
+ switch (node.kind) {
13203
+ case 205 /* ObjectLiteralExpression */:
13204
+ case 204 /* ArrayLiteralExpression */:
13205
+ case 13 /* RegularExpressionLiteral */:
13206
+ case 213 /* FunctionExpression */:
13207
+ case 226 /* ClassExpression */:
13208
+ return true;
13209
+ }
13210
+ return false;
13211
+ }
13212
+ ts.isLiteralExpressionOfObject = isLiteralExpressionOfObject;
13196
13213
  // Pseudo-literals
13197
13214
  /* @internal */
13198
13215
  function isTemplateLiteralKind(kind) {
@@ -35191,9 +35208,22 @@ var ts;
35191
35208
  }
35192
35209
  scanJsxIdentifier();
35193
35210
  var pos = getNodePos();
35194
- return finishNode(factory.createJsxAttribute(parseIdentifierName(), token() !== 63 /* EqualsToken */ ? undefined :
35195
- scanJsxAttributeValue() === 10 /* StringLiteral */ ? parseLiteralNode() :
35196
- parseJsxExpression(/*inExpressionContext*/ true)), pos);
35211
+ return finishNode(factory.createJsxAttribute(parseIdentifierName(), parseJsxAttributeValue()), pos);
35212
+ }
35213
+ function parseJsxAttributeValue() {
35214
+ if (token() === 63 /* EqualsToken */) {
35215
+ if (scanJsxAttributeValue() === 10 /* StringLiteral */) {
35216
+ return parseLiteralNode();
35217
+ }
35218
+ if (token() === 18 /* OpenBraceToken */) {
35219
+ return parseJsxExpression(/*inExpressionContext*/ true);
35220
+ }
35221
+ if (token() === 29 /* LessThanToken */) {
35222
+ return parseJsxElementOrSelfClosingElementOrFragment(/*inExpressionContext*/ true);
35223
+ }
35224
+ parseErrorAtCurrentToken(ts.Diagnostics.or_JSX_element_expected);
35225
+ }
35226
+ return undefined;
35197
35227
  }
35198
35228
  function parseJsxSpreadAttribute() {
35199
35229
  var pos = getNodePos();
@@ -51466,8 +51496,9 @@ var ts;
51466
51496
  function getExportSymbolOfValueSymbolIfExported(symbol) {
51467
51497
  return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol);
51468
51498
  }
51469
- function symbolIsValue(symbol) {
51470
- return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && resolveAlias(symbol).flags & 111551 /* Value */ && !getTypeOnlyAliasDeclaration(symbol));
51499
+ function symbolIsValue(symbol, includeTypeOnlyMembers) {
51500
+ return !!(symbol.flags & 111551 /* Value */ ||
51501
+ symbol.flags & 2097152 /* Alias */ && resolveAlias(symbol).flags & 111551 /* Value */ && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol)));
51471
51502
  }
51472
51503
  function findConstructorDeclaration(node) {
51473
51504
  var members = node.members;
@@ -59157,12 +59188,12 @@ var ts;
59157
59188
  * @param type a type to look up property from
59158
59189
  * @param name a name of property to look up in a given type
59159
59190
  */
59160
- function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment) {
59191
+ function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) {
59161
59192
  type = getReducedApparentType(type);
59162
59193
  if (type.flags & 524288 /* Object */) {
59163
59194
  var resolved = resolveStructuredTypeMembers(type);
59164
59195
  var symbol = resolved.members.get(name);
59165
- if (symbol && symbolIsValue(symbol)) {
59196
+ if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) {
59166
59197
  return symbol;
59167
59198
  }
59168
59199
  if (skipObjectFunctionPropertyAugment)
@@ -62542,7 +62573,7 @@ var ts;
62542
62573
  // the `exports` lookup process that only looks up namespace members which is used for most type references
62543
62574
  var mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace));
62544
62575
  var next = node.isTypeOf
62545
- ? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText)
62576
+ ? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText, /*skipObjectFunctionPropertyAugment*/ false, /*includeTypeOnlyMembers*/ true)
62546
62577
  : getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning);
62547
62578
  if (!next) {
62548
62579
  error(current, ts.Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), ts.declarationNameToString(current));
@@ -74458,9 +74489,8 @@ var ts;
74458
74489
  markAliasReferenced(parentSymbol, node);
74459
74490
  }
74460
74491
  return isErrorType(apparentType) ? errorType : apparentType;
74461
- ;
74462
74492
  }
74463
- prop = getPropertyOfType(apparentType, right.escapedText);
74493
+ prop = getPropertyOfType(apparentType, right.escapedText, /*skipObjectFunctionPropertyAugment*/ false, /*includeTypeOnlyMembers*/ node.kind === 161 /* QualifiedName */);
74464
74494
  }
74465
74495
  // In `Foo.Bar.Baz`, 'Foo' is not referenced if 'Bar' is a const enum or a module containing only const enums.
74466
74496
  // `Foo` is also not referenced in `enum FooCopy { Bar = Foo.Bar }`, because the enum member value gets inlined
@@ -78952,6 +78982,10 @@ var ts;
78952
78982
  case 35 /* ExclamationEqualsToken */:
78953
78983
  case 36 /* EqualsEqualsEqualsToken */:
78954
78984
  case 37 /* ExclamationEqualsEqualsToken */:
78985
+ if (ts.isLiteralExpressionOfObject(left) || ts.isLiteralExpressionOfObject(right)) {
78986
+ var eqType = operator === 34 /* EqualsEqualsToken */ || operator === 36 /* EqualsEqualsEqualsToken */;
78987
+ error(errorNode, ts.Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value, eqType ? "false" : "true");
78988
+ }
78955
78989
  reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });
78956
78990
  return booleanType;
78957
78991
  case 102 /* InstanceOfKeyword */:
@@ -80243,6 +80277,9 @@ var ts;
80243
80277
  // Grammar checking
80244
80278
  if (!checkGrammarMethod(node))
80245
80279
  checkGrammarComputedPropertyName(node.name);
80280
+ if (ts.isMethodDeclaration(node) && node.asteriskToken && ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80281
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_a_generator);
80282
+ }
80246
80283
  // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration
80247
80284
  checkFunctionOrMethodDeclaration(node);
80248
80285
  // method signatures already report "implementation not allowed in ambient context" elsewhere
@@ -80370,6 +80407,9 @@ var ts;
80370
80407
  return !!ts.forEachChild(node, nodeImmediatelyReferencesSuperOrThis);
80371
80408
  }
80372
80409
  function checkAccessorDeclaration(node) {
80410
+ if (ts.isIdentifier(node.name) && ts.idText(node.name) === "constructor") {
80411
+ error(node.name, ts.Diagnostics.Class_constructor_may_not_be_an_accessor);
80412
+ }
80373
80413
  addLazyDiagnostic(checkAccessorDeclarationDiagnostics);
80374
80414
  checkSourceElement(node.body);
80375
80415
  setNodeLinksForPrivateIdentifierScope(node);
@@ -97798,22 +97838,29 @@ var ts;
97798
97838
  if (node === undefined) {
97799
97839
  return factory.createTrue();
97800
97840
  }
97801
- else if (node.kind === 10 /* StringLiteral */) {
97841
+ if (node.kind === 10 /* StringLiteral */) {
97802
97842
  // Always recreate the literal to escape any escape sequences or newlines which may be in the original jsx string and which
97803
97843
  // Need to be escaped to be handled correctly in a normal string
97804
97844
  var singleQuote = node.singleQuote !== undefined ? node.singleQuote : !ts.isStringDoubleQuoted(node, currentSourceFile);
97805
97845
  var literal = factory.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote);
97806
97846
  return ts.setTextRange(literal, node);
97807
97847
  }
97808
- else if (node.kind === 288 /* JsxExpression */) {
97848
+ if (node.kind === 288 /* JsxExpression */) {
97809
97849
  if (node.expression === undefined) {
97810
97850
  return factory.createTrue();
97811
97851
  }
97812
97852
  return ts.visitNode(node.expression, visitor, ts.isExpression);
97813
97853
  }
97814
- else {
97815
- return ts.Debug.failBadSyntaxKind(node);
97854
+ if (ts.isJsxElement(node)) {
97855
+ return visitJsxElement(node, /*isChild*/ false);
97856
+ }
97857
+ if (ts.isJsxSelfClosingElement(node)) {
97858
+ return visitJsxSelfClosingElement(node, /*isChild*/ false);
97859
+ }
97860
+ if (ts.isJsxFragment(node)) {
97861
+ return visitJsxFragment(node, /*isChild*/ false);
97816
97862
  }
97863
+ return ts.Debug.failBadSyntaxKind(node);
97817
97864
  }
97818
97865
  function visitJsxText(node) {
97819
97866
  var fixed = fixupWhitespaceAndDecodeEntities(node.text);
@@ -116387,6 +116434,8 @@ var ts;
116387
116434
  ts.Diagnostics.extends_clause_already_seen.code,
116388
116435
  ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block.code,
116389
116436
  ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,
116437
+ ts.Diagnostics.Class_constructor_may_not_be_a_generator.code,
116438
+ ts.Diagnostics.Class_constructor_may_not_be_an_accessor.code,
116390
116439
  ]);
116391
116440
  /**
116392
116441
  * Determine if source file needs to be re-created even if its text hasn't changed
@@ -122914,6 +122963,13 @@ var ts;
122914
122963
  ExtendedConfigOfReferencedProject: "Extended config file of referenced project",
122915
122964
  WildcardDirectoryOfReferencedProject: "Wild card directory of referenced project",
122916
122965
  PackageJson: "package.json file",
122966
+ ClosedScriptInfo: "Closed Script info",
122967
+ ConfigFileForInferredRoot: "Config file for the inferred project root",
122968
+ NodeModules: "node_modules for closed script infos and package.jsons affecting module specifier cache",
122969
+ MissingSourceMapFile: "Missing source map file",
122970
+ NoopConfigFileForInferredRoot: "Noop Config file for the inferred project root",
122971
+ MissingGeneratedFile: "Missing generated file",
122972
+ NodeModulesForModuleSpecifierCache: "node_modules for module specifier cache invalidation",
122917
122973
  };
122918
122974
  function createWatchFactory(host, options) {
122919
122975
  var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "使 keyof 仅返回字符串,而不是字符串、数字或符号。旧版选项。",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "在构造函数中,使 \"super()\" 调用第一个语句",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "映射的对象类型隐式地含有 \"any\" 模板类型。",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "默认情况下匹配包括模式 “**/*”",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "通过在 \"{1}\" 中的包含模式 \"{0}\" 匹配",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "成员“{0}”隐式包含类型“{1}”。",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "成员 \"{0}\" 隐式具有 \"{1}\" 类型,但可以从用法中推断出更好的类型。",
@@ -1199,6 +1200,7 @@
1199
1200
  "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "所需的类型参数可能不遵循可选类型参数。",
1200
1201
  "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "在位置“{1}”的缓存中找到模块“{0}”的解析。",
1201
1202
  "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "在位置“{1}”的缓存中找到类型引用指令“{0}”的解析。",
1203
+ "Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "解决模式断言不稳定。使用夜间 TypeScript 消除此错误。请尝试使用 “npm install -D typescript@next” 进行更新。",
1202
1204
  "Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "仅当 `moduleResolution` 为 `node16` 或 `nodenext` 时才支持解析模式。",
1203
1205
  "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "只将 \"keyof\" 解析为字符串值的属性名称(不含数字或符号)。",
1204
1206
  "Resolving_module_0_from_1_6086": "======== 正在从“{1}”解析模块“{0}”。========",
@@ -1775,6 +1777,7 @@
1775
1777
  "one_of_Colon_6900": "以下其中一个:",
1776
1778
  "one_or_more_Colon_6901": "一个或更多:",
1777
1779
  "options_6024": "选项",
1780
+ "or_JSX_element_expected_1145": "应为 “{” 或 JSX 元素。",
1778
1781
  "or_expected_1144": "应为 \"{\" 或 \";\"。",
1779
1782
  "package_json_does_not_have_a_0_field_6100": "\"package.json\" 没有“{0}”字段。",
1780
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "\"package. json\" 没有与版本 \"{0}\" 匹配的 \"typesVersions\" 项。",
@@ -893,6 +893,7 @@
893
893
  "Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650": "僅讓 keyof 傳回字串,而不是單一字串、數字或符號。舊版選項。",
894
894
  "Make_super_call_the_first_statement_in_the_constructor_90002": "使 'super()' 呼叫成為建構函式中的第一個陳述式",
895
895
  "Mapped_object_type_implicitly_has_an_any_template_type_7039": "對應的物件類型隱含具有 'any' 範本類型。",
896
+ "Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457": "依預設比對包含模式 '**/*'",
896
897
  "Matched_by_include_pattern_0_in_1_1407": "依 '{1}' 中的包含模式 '{0}' 比對",
897
898
  "Member_0_implicitly_has_an_1_type_7008": "成員 '{0}' 隱含了 '{1}' 類型。",
898
899
  "Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045": "成員 '{0}' 隱含 '{1}' 類型,但可從使用方式推斷更適合的類型。",
@@ -1199,6 +1200,7 @@
1199
1200
  "Required_type_parameters_may_not_follow_optional_type_parameters_2706": "必要型別參數可能未遵循選擇性型別參數。",
1200
1201
  "Resolution_for_module_0_was_found_in_cache_from_location_1_6147": "從位置 '{1}' 的快取中找到模組 '{0}' 的解析。",
1201
1202
  "Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241": "從位置 '{0}' 的快取記憶體找到類型參照指示詞 '{1}'。",
1203
+ "Resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125": "解析模式宣告不穩定。使用夜間 TypeScript 將此錯誤設為靜音。請嘗試使用 'npm install -D typescript@next' 更新。",
1202
1204
  "Resolution_modes_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452": "只有當 'moduleResolution' 為 'node16' 或 'nodenext' 時,才支援解析模式。",
1203
1205
  "Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195": "只將 'keyof' 解析為字串值的屬性名稱 (無任何數字或符號)。",
1204
1206
  "Resolving_module_0_from_1_6086": "======== 正在從 '{1}' 解析模組 '{0}'。========",
@@ -1775,6 +1777,7 @@
1775
1777
  "one_of_Colon_6900": "以下其中一個:",
1776
1778
  "one_or_more_Colon_6901": "以下一或多個:",
1777
1779
  "options_6024": "選項",
1780
+ "or_JSX_element_expected_1145": "必須是 '{' 或 JSX 元素。",
1778
1781
  "or_expected_1144": "必須是 '{' 或 ';'。",
1779
1782
  "package_json_does_not_have_a_0_field_6100": "'package.json' 沒有 '{0}' 欄位。",
1780
1783
  "package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207": "'package.json' 沒有任何符合 '{0}' 版本的 'typesVersions' 項目。",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "4.8.0-dev.20220511",
5
+ "version": "4.8.0-dev.20220514",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [