@typescript-deploys/pr-build 4.9.0-pr-50777-7 → 4.9.0-pr-50404-15

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.
@@ -186,6 +186,7 @@
186
186
  "An_abstract_accessor_cannot_have_an_implementation_1318": "Abstraktní přístupový objekt nemůže mít implementaci.",
187
187
  "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Modifikátor přístupnosti se nedá použít spolu s privátním identifikátorem.",
188
188
  "An_accessor_cannot_have_type_parameters_1094": "Přístupový objekt nemůže obsahovat parametry typu.",
189
+ "An_accessor_property_cannot_be_declared_optional_1276": "Vlastnost accessor nejde deklarovat jako volitelnou.",
189
190
  "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Deklarace ambientního modulu je povolená jenom na nejvyšší úrovni v souboru.",
190
191
  "An_argument_for_0_was_not_provided_6210": "Neposkytl se argument pro {0}.",
191
192
  "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Neposkytl se argument, který by odpovídal tomuto vzoru vazby.",
@@ -1112,6 +1113,7 @@
1112
1113
  "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Odkazy projektu nemůžou tvořit cyklický graf. Zjistil se cyklus: {0}",
1113
1114
  "Projects_6255": "Projekty",
1114
1115
  "Projects_in_this_build_Colon_0_6355": "Projekty v tomto sestavení: {0}",
1116
+ "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Vlastnosti s modifikátorem accessor jsou k dispozici jen při cílení na ECMAScript 2015 a vyšší.",
1115
1117
  "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "Vlastnost {0} nemůže mít inicializátor, protože je označená jako abstraktní.",
1116
1118
  "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "Vlastnost {0} pochází ze signatury indexu, proto je zapotřebí k ní přistupovat pomocí ['{0}'].",
1117
1119
  "Property_0_does_not_exist_on_type_1_2339": "Vlastnost {0} v typu {1} neexistuje.",
@@ -1761,6 +1763,7 @@
1761
1763
  "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "{0} s chybějící anotací návratového typu má implicitně návratový typ {1}.",
1762
1764
  "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "{0} s chybějící anotací návratového typu má implicitně typ yield {1}.",
1763
1765
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Modifikátor abstract se může objevit jenom v deklaraci třídy, metody nebo vlastnosti.",
1766
+ "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Modifikátor accessor se může objevit jenom v deklaraci vlastnosti.",
1764
1767
  "and_here_6204": "a tady.",
1765
1768
  "arguments_cannot_be_referenced_in_property_initializers_2815": "Na argumenty nejde odkazovat v inicializátorech vlastností.",
1766
1769
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "auto: Považovat soubory s importy, exporty, import.meta, jsx (s jsx: react-jsx) nebo formátem esm (s modulem node16+) za moduly.",
@@ -186,6 +186,7 @@
186
186
  "An_abstract_accessor_cannot_have_an_implementation_1318": "Ein abstrakter Accessor kann keine Implementierung aufweisen.",
187
187
  "An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010": "Ein Zugriffsmodifizierer kann nicht mit einem privaten Bezeichner verwendet werden.",
188
188
  "An_accessor_cannot_have_type_parameters_1094": "Eine Zugriffsmethode darf keine Typparameter aufweisen.",
189
+ "An_accessor_property_cannot_be_declared_optional_1276": "Eine Accessoreigenschaft kann nicht als optional deklariert werden.",
189
190
  "An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234": "Eine Umgebungsmoduldeklaration ist nur auf der obersten Ebene in einer Datei zulässig.",
190
191
  "An_argument_for_0_was_not_provided_6210": "Für \"{0}\" wurde ein Argument nicht angegeben.",
191
192
  "An_argument_matching_this_binding_pattern_was_not_provided_6211": "Es wurde kein Argument angegeben, das diesem Bindungsmuster entspricht.",
@@ -1112,6 +1113,7 @@
1112
1113
  "Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202": "Projektverweise dürfen keinen kreisförmigen Graphen bilden. Zyklus erkannt: {0}",
1113
1114
  "Projects_6255": "Projekte",
1114
1115
  "Projects_in_this_build_Colon_0_6355": "Projekte in diesem Build: {0}",
1116
+ "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045": "Eigenschaften mit dem Accessormodifizierer sind nur für ECMAScript 2015 und höher verfügbar.",
1115
1117
  "Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267": "Die Eigenschaft \"{0}\" darf keinen Initialisierer aufweisen, weil sie als abstrakt markiert ist.",
1116
1118
  "Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111": "Die Eigenschaft \"{0}\" stammt aus einer Indexsignatur. Der Zugriff muss daher mit [\"{0}\"] erfolgen.",
1117
1119
  "Property_0_does_not_exist_on_type_1_2339": "Die Eigenschaft \"{0}\" ist für den Typ \"{1}\" nicht vorhanden.",
@@ -1761,6 +1763,7 @@
1761
1763
  "_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010": "\"{0}\" ohne Rückgabetypanmerkung weist implizit einen Rückgabetyp \"{1}\" auf.",
1762
1764
  "_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055": "\"{0}\" ohne Rückgabetypanmerkung weist implizit einen yield-Typ \"{1}\" auf.",
1763
1765
  "abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242": "Der Modifizierer \"abstract\" darf nur für eine Klassen-, Methoden- oder Eigenschaftendeklaration verwendet werden.",
1766
+ "accessor_modifier_can_only_appear_on_a_property_declaration_1275": "Der Accessormodifizierer kann nur in einer Eigenschaftendeklaration angezeigt werden.",
1764
1767
  "and_here_6204": "und hier.",
1765
1768
  "arguments_cannot_be_referenced_in_property_initializers_2815": "Auf \"arguments\" kann in Eigenschaftsinitialisierern nicht verwiesen werden.",
1766
1769
  "auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476": "„auto“: Dateien mit imports, exports, import.meta, jsx (mit jsx: respond-jsx) oder esm-Format (mit module: node16+) als Module behandeln.",
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.9";
72
- ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20220914");
72
+ ts.version = "".concat(ts.versionMajorMinor, ".0-insiders.20220916");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -7260,6 +7260,11 @@ var ts;
7260
7260
  Types_cannot_appear_in_export_declarations_in_JavaScript_files: diag(18043, ts.DiagnosticCategory.Error, "Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043", "Types cannot appear in export declarations in JavaScript files."),
7261
7261
  _0_is_automatically_exported_here: diag(18044, ts.DiagnosticCategory.Message, "_0_is_automatically_exported_here_18044", "'{0}' is automatically exported here."),
7262
7262
  Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher: diag(18045, ts.DiagnosticCategory.Error, "Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045", "Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),
7263
+ _0_is_of_type_unknown: diag(18046, ts.DiagnosticCategory.Error, "_0_is_of_type_unknown_18046", "'{0}' is of type 'unknown'."),
7264
+ _0_is_possibly_null: diag(18047, ts.DiagnosticCategory.Error, "_0_is_possibly_null_18047", "'{0}' is possibly 'null'."),
7265
+ _0_is_possibly_undefined: diag(18048, ts.DiagnosticCategory.Error, "_0_is_possibly_undefined_18048", "'{0}' is possibly 'undefined'."),
7266
+ _0_is_possibly_null_or_undefined: diag(18049, ts.DiagnosticCategory.Error, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
7267
+ The_value_0_cannot_be_used_here: diag(18050, ts.DiagnosticCategory.Error, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
7263
7268
  };
7264
7269
  })(ts || (ts = {}));
7265
7270
  var ts;
@@ -41563,10 +41568,10 @@ var ts;
41563
41568
  return (ts.isAssertionExpression(location) && ts.isConstTypeReference(location.type))
41564
41569
  || (ts.isJSDocTypeTag(location) && ts.isConstTypeReference(location.typeExpression));
41565
41570
  }
41566
- function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions) {
41571
+ function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions) {
41567
41572
  if (excludeGlobals === void 0) { excludeGlobals = false; }
41568
- if (getSpellingSuggstions === void 0) { getSpellingSuggstions = true; }
41569
- return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggstions, getSymbol);
41573
+ if (getSpellingSuggestions === void 0) { getSpellingSuggestions = true; }
41574
+ return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, getSymbol);
41570
41575
  }
41571
41576
  function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSpellingSuggestions, lookup) {
41572
41577
  var _a, _b, _c;
@@ -41677,7 +41682,9 @@ var ts;
41677
41682
  break;
41678
41683
  }
41679
41684
  if (lastLocation && ts.isStatic(lastLocation)) {
41680
- error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters);
41685
+ if (nameNotFoundMessage) {
41686
+ error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters);
41687
+ }
41681
41688
  return undefined;
41682
41689
  }
41683
41690
  break loop;
@@ -41705,7 +41712,9 @@ var ts;
41705
41712
  grandparent = location.parent.parent;
41706
41713
  if (ts.isClassLike(grandparent) || grandparent.kind === 261) {
41707
41714
  if (result = lookup(getSymbolOfNode(grandparent).members, name, meaning & 788968)) {
41708
- error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);
41715
+ if (nameNotFoundMessage) {
41716
+ error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);
41717
+ }
41709
41718
  return undefined;
41710
41719
  }
41711
41720
  }
@@ -41865,7 +41874,7 @@ var ts;
41865
41874
  }
41866
41875
  return undefined;
41867
41876
  }
41868
- else if (checkAndReportErrorForInvalidInitializer()) {
41877
+ else if (nameNotFoundMessage && checkAndReportErrorForInvalidInitializer()) {
41869
41878
  return undefined;
41870
41879
  }
41871
41880
  if (nameNotFoundMessage) {
@@ -44984,19 +44993,14 @@ var ts;
44984
44993
  context.approximateLength += ts.symbolName(parameterSymbol).length + 3;
44985
44994
  return parameterNode;
44986
44995
  function cloneBindingName(node) {
44987
- return elideInitializerAndPropertyRenamingAndSetEmitFlags(node);
44988
- function elideInitializerAndPropertyRenamingAndSetEmitFlags(node) {
44996
+ return elideInitializerAndSetEmitFlags(node);
44997
+ function elideInitializerAndSetEmitFlags(node) {
44989
44998
  if (context.tracker.trackSymbol && ts.isComputedPropertyName(node) && isLateBindableName(node)) {
44990
44999
  trackComputedName(node.expression, context.enclosingDeclaration, context);
44991
45000
  }
44992
- var visited = ts.visitEachChild(node, elideInitializerAndPropertyRenamingAndSetEmitFlags, ts.nullTransformationContext, undefined, elideInitializerAndPropertyRenamingAndSetEmitFlags);
45001
+ var visited = ts.visitEachChild(node, elideInitializerAndSetEmitFlags, ts.nullTransformationContext, undefined, elideInitializerAndSetEmitFlags);
44993
45002
  if (ts.isBindingElement(visited)) {
44994
- if (visited.propertyName && ts.isIdentifier(visited.propertyName) && ts.isIdentifier(visited.name) && !ts.isStringAKeyword(ts.idText(visited.propertyName))) {
44995
- visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken, undefined, visited.propertyName, undefined);
44996
- }
44997
- else {
44998
- visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken, visited.propertyName, visited.name, undefined);
44999
- }
45003
+ visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken, visited.propertyName, visited.name, undefined);
45000
45004
  }
45001
45005
  if (!ts.nodeIsSynthesized(visited)) {
45002
45006
  visited = ts.factory.cloneNode(visited);
@@ -49692,10 +49696,6 @@ var ts;
49692
49696
  if (indexedAccess) {
49693
49697
  return indexedAccess;
49694
49698
  }
49695
- var bound = getBoundOfIndexedAccess(type.objectType, indexConstraint);
49696
- if (bound) {
49697
- return bound;
49698
- }
49699
49699
  }
49700
49700
  var objectConstraint = getSimplifiedTypeOrConstraint(type.objectType);
49701
49701
  if (objectConstraint && objectConstraint !== type.objectType) {
@@ -49865,9 +49865,6 @@ var ts;
49865
49865
  var baseObjectType = getBaseConstraint(t.objectType);
49866
49866
  var baseIndexType = getBaseConstraint(t.indexType);
49867
49867
  var baseIndexedAccess = baseObjectType && baseIndexType && getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, t.accessFlags);
49868
- if (!baseIndexedAccess && baseObjectType && baseIndexType) {
49869
- return getBoundOfIndexedAccess(baseObjectType, baseIndexType);
49870
- }
49871
49868
  return baseIndexedAccess && getBaseConstraint(baseIndexedAccess);
49872
49869
  }
49873
49870
  if (t.flags & 16777216) {
@@ -49880,27 +49877,6 @@ var ts;
49880
49877
  return t;
49881
49878
  }
49882
49879
  }
49883
- function getBoundOfIndexedAccess(objectType, indexType) {
49884
- var types;
49885
- var props = objectType.flags & 2097152 ? getPropertiesOfUnionOrIntersectionType(objectType) : getPropertiesOfType(objectType);
49886
- for (var _i = 0, props_1 = props; _i < props_1.length; _i++) {
49887
- var prop = props_1[_i];
49888
- if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576), indexType)) {
49889
- var propType = getNonMissingTypeOfSymbol(prop);
49890
- types = ts.append(types, propType);
49891
- }
49892
- }
49893
- for (var _a = 0, _b = getIndexInfosOfType(objectType); _a < _b.length; _a++) {
49894
- var info = _b[_a];
49895
- if (isApplicableIndexType(info.keyType, indexType)) {
49896
- types = ts.append(types, info.type);
49897
- }
49898
- }
49899
- if (types) {
49900
- return getUnionType(types);
49901
- }
49902
- return undefined;
49903
- }
49904
49880
  function getApparentTypeOfIntersectionType(type) {
49905
49881
  return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(type, type, true));
49906
49882
  }
@@ -50065,8 +50041,8 @@ var ts;
50065
50041
  var writeTypes;
50066
50042
  var firstValueDeclaration;
50067
50043
  var hasNonUniformValueDeclaration = false;
50068
- for (var _d = 0, props_2 = props; _d < props_2.length; _d++) {
50069
- var prop = props_2[_d];
50044
+ for (var _d = 0, props_1 = props; _d < props_1.length; _d++) {
50045
+ var prop = props_1[_d];
50070
50046
  if (!firstValueDeclaration) {
50071
50047
  firstValueDeclaration = prop.valueDeclaration;
50072
50048
  }
@@ -56729,8 +56705,8 @@ var ts;
56729
56705
  var result = -1;
56730
56706
  var keyType = targetInfo.keyType;
56731
56707
  var props = source.flags & 2097152 ? getPropertiesOfUnionOrIntersectionType(source) : getPropertiesOfObjectType(source);
56732
- for (var _i = 0, props_3 = props; _i < props_3.length; _i++) {
56733
- var prop = props_3[_i];
56708
+ for (var _i = 0, props_2 = props; _i < props_2.length; _i++) {
56709
+ var prop = props_2[_i];
56734
56710
  if (isIgnoredJsxProperty(source, prop)) {
56735
56711
  continue;
56736
56712
  }
@@ -63452,10 +63428,27 @@ var ts;
63452
63428
  return isNullableType(type) ? getNonNullableType(type) : type;
63453
63429
  }
63454
63430
  function reportObjectPossiblyNullOrUndefinedError(node, facts) {
63455
- error(node, facts & 16777216 ? facts & 33554432 ?
63456
- ts.Diagnostics.Object_is_possibly_null_or_undefined :
63457
- ts.Diagnostics.Object_is_possibly_undefined :
63458
- ts.Diagnostics.Object_is_possibly_null);
63431
+ var nodeText = ts.isEntityNameExpression(node) ? ts.entityNameToString(node) : undefined;
63432
+ if (node.kind === 104) {
63433
+ error(node, ts.Diagnostics.The_value_0_cannot_be_used_here, "null");
63434
+ return;
63435
+ }
63436
+ if (nodeText !== undefined && nodeText.length < 100) {
63437
+ if (ts.isIdentifier(node) && nodeText === "undefined") {
63438
+ error(node, ts.Diagnostics.The_value_0_cannot_be_used_here, "undefined");
63439
+ return;
63440
+ }
63441
+ error(node, facts & 16777216 ? facts & 33554432 ?
63442
+ ts.Diagnostics._0_is_possibly_null_or_undefined :
63443
+ ts.Diagnostics._0_is_possibly_undefined :
63444
+ ts.Diagnostics._0_is_possibly_null, nodeText);
63445
+ }
63446
+ else {
63447
+ error(node, facts & 16777216 ? facts & 33554432 ?
63448
+ ts.Diagnostics.Object_is_possibly_null_or_undefined :
63449
+ ts.Diagnostics.Object_is_possibly_undefined :
63450
+ ts.Diagnostics.Object_is_possibly_null);
63451
+ }
63459
63452
  }
63460
63453
  function reportCannotInvokePossiblyNullOrUndefinedError(node, facts) {
63461
63454
  error(node, facts & 16777216 ? facts & 33554432 ?
@@ -63465,6 +63458,13 @@ var ts;
63465
63458
  }
63466
63459
  function checkNonNullTypeWithReporter(type, node, reportError) {
63467
63460
  if (strictNullChecks && type.flags & 2) {
63461
+ if (ts.isEntityNameExpression(node)) {
63462
+ var nodeText = ts.entityNameToString(node);
63463
+ if (nodeText.length < 100) {
63464
+ error(node, ts.Diagnostics._0_is_of_type_unknown, nodeText);
63465
+ return errorType;
63466
+ }
63467
+ }
63468
63468
  error(node, ts.Diagnostics.Object_is_of_type_unknown);
63469
63469
  return errorType;
63470
63470
  }
@@ -63482,6 +63482,17 @@ var ts;
63482
63482
  function checkNonNullNonVoidType(type, node) {
63483
63483
  var nonNullType = checkNonNullType(type, node);
63484
63484
  if (nonNullType.flags & 16384) {
63485
+ if (ts.isEntityNameExpression(node)) {
63486
+ var nodeText = ts.entityNameToString(node);
63487
+ if (ts.isIdentifier(node) && nodeText === "undefined") {
63488
+ error(node, ts.Diagnostics.The_value_0_cannot_be_used_here, nodeText);
63489
+ return nonNullType;
63490
+ }
63491
+ if (nodeText.length < 100) {
63492
+ error(node, ts.Diagnostics._0_is_possibly_undefined, nodeText);
63493
+ return nonNullType;
63494
+ }
63495
+ }
63485
63496
  error(node, ts.Diagnostics.Object_is_possibly_undefined);
63486
63497
  }
63487
63498
  return nonNullType;
@@ -68873,7 +68884,7 @@ var ts;
68873
68884
  checkDecorators(node);
68874
68885
  }
68875
68886
  function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
68876
- if (index < typeParameters.length) {
68887
+ if (node.typeArguments && index < node.typeArguments.length) {
68877
68888
  return getTypeFromTypeNode(node.typeArguments[index]);
68878
68889
  }
68879
68890
  return getEffectiveTypeArguments(node, typeParameters)[index];
@@ -74372,7 +74383,7 @@ var ts;
74372
74383
  }
74373
74384
  var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);
74374
74385
  if (node) {
74375
- var symbol = getReferencedValueSymbol(node);
74386
+ var symbol = getReferencedValueOrAliasSymbol(node);
74376
74387
  if (isNonLocalAlias(symbol, 111551) && !getTypeOnlyAliasDeclaration(symbol)) {
74377
74388
  return getDeclarationOfAliasSymbol(symbol);
74378
74389
  }
@@ -74693,6 +74704,13 @@ var ts;
74693
74704
  }
74694
74705
  return resolveName(location, reference.escapedText, 111551 | 1048576 | 2097152, undefined, undefined, true);
74695
74706
  }
74707
+ function getReferencedValueOrAliasSymbol(reference) {
74708
+ var resolvedSymbol = getNodeLinks(reference).resolvedSymbol;
74709
+ if (resolvedSymbol && resolvedSymbol !== unknownSymbol) {
74710
+ return resolvedSymbol;
74711
+ }
74712
+ return resolveName(reference, reference.escapedText, 111551 | 1048576 | 2097152, undefined, undefined, true, undefined, undefined);
74713
+ }
74696
74714
  function getReferencedValueDeclaration(referenceIn) {
74697
74715
  if (!ts.isGeneratedIdentifier(referenceIn)) {
74698
74716
  var reference = ts.getParseTreeNode(referenceIn, ts.isIdentifier);
@@ -79991,9 +80009,11 @@ var ts;
79991
80009
  return ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node) ? resolver.getConstantValue(node) : undefined;
79992
80010
  }
79993
80011
  function shouldEmitAliasDeclaration(node) {
79994
- return compilerOptions.preserveValueImports
79995
- ? resolver.isValueAliasDeclaration(node)
79996
- : resolver.isReferencedAliasDeclaration(node);
80012
+ return ts.isInJSFile(node)
80013
+ ? true
80014
+ : compilerOptions.preserveValueImports
80015
+ ? resolver.isValueAliasDeclaration(node)
80016
+ : resolver.isReferencedAliasDeclaration(node);
79997
80017
  }
79998
80018
  }
79999
80019
  ts.transformTypeScript = transformTypeScript;
@@ -100723,8 +100743,8 @@ var ts;
100723
100743
  }
100724
100744
  function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral, onKey, key1, key2, message, arg0, arg1, arg2) {
100725
100745
  var props = ts.getPropertyAssignment(objectLiteral, key1, key2);
100726
- for (var _i = 0, props_4 = props; _i < props_4.length; _i++) {
100727
- var prop = props_4[_i];
100746
+ for (var _i = 0, props_3 = props; _i < props_3.length; _i++) {
100747
+ var prop = props_3[_i];
100728
100748
  programDiagnostics.add(ts.createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, arg0, arg1, arg2));
100729
100749
  }
100730
100750
  return !!props.length;