typescript 4.8.1-rc → 4.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 = "4.8.1-rc";
92
+ ts.version = "4.8.2";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -2469,6 +2469,7 @@ var ts;
2469
2469
  var currentAssertionLevel = 0 /* AssertionLevel.None */;
2470
2470
  Debug.currentLogLevel = LogLevel.Warning;
2471
2471
  Debug.isDebugging = false;
2472
+ Debug.enableDeprecationWarnings = true;
2472
2473
  function getTypeScriptVersion() {
2473
2474
  return typeScriptVersion !== null && typeScriptVersion !== void 0 ? typeScriptVersion : (typeScriptVersion = new ts.Version(ts.version));
2474
2475
  }
@@ -3092,7 +3093,7 @@ var ts;
3092
3093
  function createWarningDeprecation(name, errorAfter, since, message) {
3093
3094
  var hasWrittenDeprecation = false;
3094
3095
  return function () {
3095
- if (!hasWrittenDeprecation) {
3096
+ if (Debug.enableDeprecationWarnings && !hasWrittenDeprecation) {
3096
3097
  log.warn(formatDeprecationMessage(name, /*error*/ false, errorAfter, since, message));
3097
3098
  hasWrittenDeprecation = true;
3098
3099
  }
@@ -6980,7 +6981,6 @@ var ts;
6980
6981
  // not actually work.
6981
6982
  var byteOrderMarkIndicator = "\uFEFF";
6982
6983
  function getNodeSystem() {
6983
- var _a;
6984
6984
  var nativePattern = /^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/;
6985
6985
  var _fs = require("fs");
6986
6986
  var _path = require("path");
@@ -6990,7 +6990,7 @@ var ts;
6990
6990
  try {
6991
6991
  _crypto = require("crypto");
6992
6992
  }
6993
- catch (_b) {
6993
+ catch (_a) {
6994
6994
  _crypto = undefined;
6995
6995
  }
6996
6996
  var activeSession;
@@ -7001,10 +7001,10 @@ var ts;
7001
7001
  var isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
7002
7002
  var platform = _os.platform();
7003
7003
  var useCaseSensitiveFileNames = isFileSystemCaseSensitive();
7004
- var realpathSync = (_a = _fs.realpathSync.native) !== null && _a !== void 0 ? _a : _fs.realpathSync;
7004
+ var fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
7005
7005
  var fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
7006
7006
  var getCurrentDirectory = ts.memoize(function () { return process.cwd(); });
7007
- var _c = createSystemWatchFunctions({
7007
+ var _b = createSystemWatchFunctions({
7008
7008
  pollingWatchFile: createSingleFileWatcherPerName(fsWatchFileWorker, useCaseSensitiveFileNames),
7009
7009
  getModifiedTime: getModifiedTime,
7010
7010
  setTimeout: setTimeout,
@@ -7024,7 +7024,7 @@ var ts;
7024
7024
  defaultWatchFileKind: function () { var _a, _b; return (_b = (_a = sys).defaultWatchFileKind) === null || _b === void 0 ? void 0 : _b.call(_a); },
7025
7025
  inodeWatching: isLinuxOrMacOs,
7026
7026
  sysLog: sysLog,
7027
- }), watchFile = _c.watchFile, watchDirectory = _c.watchDirectory;
7027
+ }), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory;
7028
7028
  var nodeSystem = {
7029
7029
  args: process.argv.slice(2),
7030
7030
  newLine: _os.EOL,
@@ -7417,9 +7417,12 @@ var ts;
7417
7417
  function getDirectories(path) {
7418
7418
  return getAccessibleFileSystemEntries(path).directories.slice();
7419
7419
  }
7420
+ function fsRealPathHandlingLongPath(path) {
7421
+ return path.length < 260 ? _fs.realpathSync.native(path) : _fs.realpathSync(path);
7422
+ }
7420
7423
  function realpath(path) {
7421
7424
  try {
7422
- return realpathSync(path);
7425
+ return fsRealpath(path);
7423
7426
  }
7424
7427
  catch (_a) {
7425
7428
  return path;
@@ -21347,7 +21350,7 @@ var ts;
21347
21350
  case 165 /* SyntaxKind.Decorator */: {
21348
21351
  var parent_2 = node.parent;
21349
21352
  return ts.canHaveDecorators(parent_2) ? parent_2.modifiers :
21350
- ts.canHaveIllegalDecorators(parent_2) ? parent_2.decorators :
21353
+ ts.canHaveIllegalDecorators(parent_2) ? parent_2.illegalDecorators :
21351
21354
  undefined;
21352
21355
  }
21353
21356
  case 291 /* SyntaxKind.HeritageClause */:
@@ -23424,7 +23427,7 @@ var ts;
23424
23427
  node.body = body;
23425
23428
  node.transformFlags = propagateChildFlags(body) | 16777216 /* TransformFlags.ContainsClassFields */;
23426
23429
  // The following properties are used only to report grammar errors
23427
- node.decorators = undefined;
23430
+ node.illegalDecorators = undefined;
23428
23431
  node.modifiers = undefined;
23429
23432
  return node;
23430
23433
  }
@@ -23436,7 +23439,7 @@ var ts;
23436
23439
  }
23437
23440
  function finishUpdateClassStaticBlockDeclaration(updated, original) {
23438
23441
  if (updated !== original) {
23439
- updated.decorators = original.decorators;
23442
+ updated.illegalDecorators = original.illegalDecorators;
23440
23443
  updated.modifiers = original.modifiers;
23441
23444
  }
23442
23445
  return update(updated, original);
@@ -23449,7 +23452,7 @@ var ts;
23449
23452
  /*type*/ undefined, body);
23450
23453
  node.transformFlags |= 1024 /* TransformFlags.ContainsES2015 */;
23451
23454
  // The following properties are used only to report grammar errors
23452
- node.decorators = undefined;
23455
+ node.illegalDecorators = undefined;
23453
23456
  node.typeParameters = undefined;
23454
23457
  node.type = undefined;
23455
23458
  return node;
@@ -23464,7 +23467,7 @@ var ts;
23464
23467
  }
23465
23468
  function finishUpdateConstructorDeclaration(updated, original) {
23466
23469
  if (updated !== original) {
23467
- updated.decorators = original.decorators;
23470
+ updated.illegalDecorators = original.illegalDecorators;
23468
23471
  updated.typeParameters = original.typeParameters;
23469
23472
  updated.type = original.type;
23470
23473
  }
@@ -25212,7 +25215,7 @@ var ts;
25212
25215
  }
25213
25216
  }
25214
25217
  // The following properties are used only to report grammar errors
25215
- node.decorators = undefined;
25218
+ node.illegalDecorators = undefined;
25216
25219
  return node;
25217
25220
  }
25218
25221
  // @api
@@ -25230,7 +25233,7 @@ var ts;
25230
25233
  function finishUpdateFunctionDeclaration(updated, original) {
25231
25234
  if (updated !== original) {
25232
25235
  // copy children used only for error reporting
25233
- updated.decorators = original.decorators;
25236
+ updated.illegalDecorators = original.illegalDecorators;
25234
25237
  }
25235
25238
  return finishUpdateBaseSignatureDeclaration(updated, original);
25236
25239
  }
@@ -25264,7 +25267,7 @@ var ts;
25264
25267
  node.members = createNodeArray(members);
25265
25268
  node.transformFlags = 1 /* TransformFlags.ContainsTypeScript */;
25266
25269
  // The following properties are used only to report grammar errors
25267
- node.decorators = undefined;
25270
+ node.illegalDecorators = undefined;
25268
25271
  return node;
25269
25272
  }
25270
25273
  // @api
@@ -25279,7 +25282,7 @@ var ts;
25279
25282
  }
25280
25283
  function finishUpdateInterfaceDeclaration(updated, original) {
25281
25284
  if (updated !== original) {
25282
- updated.decorators = original.decorators;
25285
+ updated.illegalDecorators = original.illegalDecorators;
25283
25286
  }
25284
25287
  return update(updated, original);
25285
25288
  }
@@ -25289,7 +25292,7 @@ var ts;
25289
25292
  node.type = type;
25290
25293
  node.transformFlags = 1 /* TransformFlags.ContainsTypeScript */;
25291
25294
  // The following properties are used only to report grammar errors
25292
- node.decorators = undefined;
25295
+ node.illegalDecorators = undefined;
25293
25296
  return node;
25294
25297
  }
25295
25298
  // @api
@@ -25303,7 +25306,7 @@ var ts;
25303
25306
  }
25304
25307
  function finishUpdateTypeAliasDeclaration(updated, original) {
25305
25308
  if (updated !== original) {
25306
- updated.decorators = original.decorators;
25309
+ updated.illegalDecorators = original.illegalDecorators;
25307
25310
  }
25308
25311
  return update(updated, original);
25309
25312
  }
@@ -25316,7 +25319,7 @@ var ts;
25316
25319
  1 /* TransformFlags.ContainsTypeScript */;
25317
25320
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // Enum declarations cannot contain `await`
25318
25321
  // The following properties are used only to report grammar errors
25319
- node.decorators = undefined;
25322
+ node.illegalDecorators = undefined;
25320
25323
  return node;
25321
25324
  }
25322
25325
  // @api
@@ -25329,7 +25332,7 @@ var ts;
25329
25332
  }
25330
25333
  function finishUpdateEnumDeclaration(updated, original) {
25331
25334
  if (updated !== original) {
25332
- updated.decorators = original.decorators;
25335
+ updated.illegalDecorators = original.illegalDecorators;
25333
25336
  }
25334
25337
  return update(updated, original);
25335
25338
  }
@@ -25353,7 +25356,7 @@ var ts;
25353
25356
  }
25354
25357
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // Module declarations cannot contain `await`.
25355
25358
  // The following properties are used only to report grammar errors
25356
- node.decorators = undefined;
25359
+ node.illegalDecorators = undefined;
25357
25360
  return node;
25358
25361
  }
25359
25362
  // @api
@@ -25366,7 +25369,7 @@ var ts;
25366
25369
  }
25367
25370
  function finishUpdateModuleDeclaration(updated, original) {
25368
25371
  if (updated !== original) {
25369
- updated.decorators = original.decorators;
25372
+ updated.illegalDecorators = original.illegalDecorators;
25370
25373
  }
25371
25374
  return update(updated, original);
25372
25375
  }
@@ -25402,7 +25405,7 @@ var ts;
25402
25405
  /*modifiers*/ undefined, name);
25403
25406
  node.transformFlags = 1 /* TransformFlags.ContainsTypeScript */;
25404
25407
  // The following properties are used only to report grammar errors
25405
- node.decorators = undefined;
25408
+ node.illegalDecorators = undefined;
25406
25409
  node.modifiers = undefined;
25407
25410
  return node;
25408
25411
  }
@@ -25414,7 +25417,7 @@ var ts;
25414
25417
  }
25415
25418
  function finishUpdateNamespaceExportDeclaration(updated, original) {
25416
25419
  if (updated !== original) {
25417
- updated.decorators = original.decorators;
25420
+ updated.illegalDecorators = original.illegalDecorators;
25418
25421
  updated.modifiers = original.modifiers;
25419
25422
  }
25420
25423
  return update(updated, original);
@@ -25429,7 +25432,7 @@ var ts;
25429
25432
  node.transformFlags |= 1 /* TransformFlags.ContainsTypeScript */;
25430
25433
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // Import= declaration is always parsed in an Await context
25431
25434
  // The following properties are used only to report grammar errors
25432
- node.decorators = undefined;
25435
+ node.illegalDecorators = undefined;
25433
25436
  return node;
25434
25437
  }
25435
25438
  // @api
@@ -25443,7 +25446,7 @@ var ts;
25443
25446
  }
25444
25447
  function finishUpdateImportEqualsDeclaration(updated, original) {
25445
25448
  if (updated !== original) {
25446
- updated.decorators = original.decorators;
25449
+ updated.illegalDecorators = original.illegalDecorators;
25447
25450
  }
25448
25451
  return update(updated, original);
25449
25452
  }
@@ -25459,7 +25462,7 @@ var ts;
25459
25462
  propagateChildFlags(node.moduleSpecifier);
25460
25463
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // always parsed in an Await context
25461
25464
  // The following properties are used only to report grammar errors
25462
- node.decorators = undefined;
25465
+ node.illegalDecorators = undefined;
25463
25466
  return node;
25464
25467
  }
25465
25468
  // @api
@@ -25473,7 +25476,7 @@ var ts;
25473
25476
  }
25474
25477
  function finishUpdateImportDeclaration(updated, original) {
25475
25478
  if (updated !== original) {
25476
- updated.decorators = original.decorators;
25479
+ updated.illegalDecorators = original.illegalDecorators;
25477
25480
  }
25478
25481
  return update(updated, original);
25479
25482
  }
@@ -25619,7 +25622,7 @@ var ts;
25619
25622
  node.transformFlags |= propagateChildrenFlags(node.modifiers) | propagateChildFlags(node.expression);
25620
25623
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // always parsed in an Await context
25621
25624
  // The following properties are used only to report grammar errors
25622
- node.decorators = undefined;
25625
+ node.illegalDecorators = undefined;
25623
25626
  return node;
25624
25627
  }
25625
25628
  // @api
@@ -25631,7 +25634,7 @@ var ts;
25631
25634
  }
25632
25635
  function finishUpdateExportAssignment(updated, original) {
25633
25636
  if (updated !== original) {
25634
- updated.decorators = original.decorators;
25637
+ updated.illegalDecorators = original.illegalDecorators;
25635
25638
  }
25636
25639
  return update(updated, original);
25637
25640
  }
@@ -25649,7 +25652,7 @@ var ts;
25649
25652
  propagateChildFlags(node.moduleSpecifier);
25650
25653
  node.transformFlags &= ~67108864 /* TransformFlags.ContainsPossibleTopLevelAwait */; // always parsed in an Await context
25651
25654
  // The following properties are used only to report grammar errors
25652
- node.decorators = undefined;
25655
+ node.illegalDecorators = undefined;
25653
25656
  return node;
25654
25657
  }
25655
25658
  // @api
@@ -25664,7 +25667,7 @@ var ts;
25664
25667
  }
25665
25668
  function finishUpdateExportDeclaration(updated, original) {
25666
25669
  if (updated !== original) {
25667
- updated.decorators = original.decorators;
25670
+ updated.illegalDecorators = original.illegalDecorators;
25668
25671
  }
25669
25672
  return update(updated, original);
25670
25673
  }
@@ -26428,7 +26431,7 @@ var ts;
26428
26431
  propagateChildFlags(node.name) |
26429
26432
  propagateChildFlags(node.initializer);
26430
26433
  // The following properties are used only to report grammar errors
26431
- node.decorators = undefined;
26434
+ node.illegalDecorators = undefined;
26432
26435
  node.modifiers = undefined;
26433
26436
  node.questionToken = undefined;
26434
26437
  node.exclamationToken = undefined;
@@ -26444,7 +26447,7 @@ var ts;
26444
26447
  function finishUpdatePropertyAssignment(updated, original) {
26445
26448
  // copy children used only for error reporting
26446
26449
  if (updated !== original) {
26447
- updated.decorators = original.decorators;
26450
+ updated.illegalDecorators = original.illegalDecorators;
26448
26451
  updated.modifiers = original.modifiers;
26449
26452
  updated.questionToken = original.questionToken;
26450
26453
  updated.exclamationToken = original.exclamationToken;
@@ -26461,7 +26464,7 @@ var ts;
26461
26464
  1024 /* TransformFlags.ContainsES2015 */;
26462
26465
  // The following properties are used only to report grammar errors
26463
26466
  node.equalsToken = undefined;
26464
- node.decorators = undefined;
26467
+ node.illegalDecorators = undefined;
26465
26468
  node.modifiers = undefined;
26466
26469
  node.questionToken = undefined;
26467
26470
  node.exclamationToken = undefined;
@@ -26478,7 +26481,7 @@ var ts;
26478
26481
  if (updated !== original) {
26479
26482
  // copy children used only for error reporting
26480
26483
  updated.equalsToken = original.equalsToken;
26481
- updated.decorators = original.decorators;
26484
+ updated.illegalDecorators = original.illegalDecorators;
26482
26485
  updated.modifiers = original.modifiers;
26483
26486
  updated.questionToken = original.questionToken;
26484
26487
  updated.exclamationToken = original.exclamationToken;
@@ -30489,17 +30492,6 @@ var ts;
30489
30492
  || kind === 173 /* SyntaxKind.SetAccessor */;
30490
30493
  }
30491
30494
  ts.canHaveIllegalTypeParameters = canHaveIllegalTypeParameters;
30492
- function canHaveDecorators(node) {
30493
- var kind = node.kind;
30494
- return kind === 164 /* SyntaxKind.Parameter */
30495
- || kind === 167 /* SyntaxKind.PropertyDeclaration */
30496
- || kind === 169 /* SyntaxKind.MethodDeclaration */
30497
- || kind === 172 /* SyntaxKind.GetAccessor */
30498
- || kind === 173 /* SyntaxKind.SetAccessor */
30499
- || kind === 226 /* SyntaxKind.ClassExpression */
30500
- || kind === 257 /* SyntaxKind.ClassDeclaration */;
30501
- }
30502
- ts.canHaveDecorators = canHaveDecorators;
30503
30495
  function canHaveIllegalDecorators(node) {
30504
30496
  var kind = node.kind;
30505
30497
  return kind === 296 /* SyntaxKind.PropertyAssignment */
@@ -30521,35 +30513,6 @@ var ts;
30521
30513
  || kind === 271 /* SyntaxKind.ExportAssignment */;
30522
30514
  }
30523
30515
  ts.canHaveIllegalDecorators = canHaveIllegalDecorators;
30524
- function canHaveModifiers(node) {
30525
- var kind = node.kind;
30526
- return kind === 163 /* SyntaxKind.TypeParameter */
30527
- || kind === 164 /* SyntaxKind.Parameter */
30528
- || kind === 166 /* SyntaxKind.PropertySignature */
30529
- || kind === 167 /* SyntaxKind.PropertyDeclaration */
30530
- || kind === 168 /* SyntaxKind.MethodSignature */
30531
- || kind === 169 /* SyntaxKind.MethodDeclaration */
30532
- || kind === 171 /* SyntaxKind.Constructor */
30533
- || kind === 172 /* SyntaxKind.GetAccessor */
30534
- || kind === 173 /* SyntaxKind.SetAccessor */
30535
- || kind === 176 /* SyntaxKind.IndexSignature */
30536
- || kind === 180 /* SyntaxKind.ConstructorType */
30537
- || kind === 213 /* SyntaxKind.FunctionExpression */
30538
- || kind === 214 /* SyntaxKind.ArrowFunction */
30539
- || kind === 226 /* SyntaxKind.ClassExpression */
30540
- || kind === 237 /* SyntaxKind.VariableStatement */
30541
- || kind === 256 /* SyntaxKind.FunctionDeclaration */
30542
- || kind === 257 /* SyntaxKind.ClassDeclaration */
30543
- || kind === 258 /* SyntaxKind.InterfaceDeclaration */
30544
- || kind === 259 /* SyntaxKind.TypeAliasDeclaration */
30545
- || kind === 260 /* SyntaxKind.EnumDeclaration */
30546
- || kind === 261 /* SyntaxKind.ModuleDeclaration */
30547
- || kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
30548
- || kind === 266 /* SyntaxKind.ImportDeclaration */
30549
- || kind === 271 /* SyntaxKind.ExportAssignment */
30550
- || kind === 272 /* SyntaxKind.ExportDeclaration */;
30551
- }
30552
- ts.canHaveModifiers = canHaveModifiers;
30553
30516
  function canHaveIllegalModifiers(node) {
30554
30517
  var kind = node.kind;
30555
30518
  return kind === 170 /* SyntaxKind.ClassStaticBlockDeclaration */
@@ -30838,6 +30801,46 @@ var ts;
30838
30801
  return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;
30839
30802
  }
30840
30803
  ts.setTextRange = setTextRange;
30804
+ function canHaveModifiers(node) {
30805
+ var kind = node.kind;
30806
+ return kind === 163 /* SyntaxKind.TypeParameter */
30807
+ || kind === 164 /* SyntaxKind.Parameter */
30808
+ || kind === 166 /* SyntaxKind.PropertySignature */
30809
+ || kind === 167 /* SyntaxKind.PropertyDeclaration */
30810
+ || kind === 168 /* SyntaxKind.MethodSignature */
30811
+ || kind === 169 /* SyntaxKind.MethodDeclaration */
30812
+ || kind === 171 /* SyntaxKind.Constructor */
30813
+ || kind === 172 /* SyntaxKind.GetAccessor */
30814
+ || kind === 173 /* SyntaxKind.SetAccessor */
30815
+ || kind === 176 /* SyntaxKind.IndexSignature */
30816
+ || kind === 180 /* SyntaxKind.ConstructorType */
30817
+ || kind === 213 /* SyntaxKind.FunctionExpression */
30818
+ || kind === 214 /* SyntaxKind.ArrowFunction */
30819
+ || kind === 226 /* SyntaxKind.ClassExpression */
30820
+ || kind === 237 /* SyntaxKind.VariableStatement */
30821
+ || kind === 256 /* SyntaxKind.FunctionDeclaration */
30822
+ || kind === 257 /* SyntaxKind.ClassDeclaration */
30823
+ || kind === 258 /* SyntaxKind.InterfaceDeclaration */
30824
+ || kind === 259 /* SyntaxKind.TypeAliasDeclaration */
30825
+ || kind === 260 /* SyntaxKind.EnumDeclaration */
30826
+ || kind === 261 /* SyntaxKind.ModuleDeclaration */
30827
+ || kind === 265 /* SyntaxKind.ImportEqualsDeclaration */
30828
+ || kind === 266 /* SyntaxKind.ImportDeclaration */
30829
+ || kind === 271 /* SyntaxKind.ExportAssignment */
30830
+ || kind === 272 /* SyntaxKind.ExportDeclaration */;
30831
+ }
30832
+ ts.canHaveModifiers = canHaveModifiers;
30833
+ function canHaveDecorators(node) {
30834
+ var kind = node.kind;
30835
+ return kind === 164 /* SyntaxKind.Parameter */
30836
+ || kind === 167 /* SyntaxKind.PropertyDeclaration */
30837
+ || kind === 169 /* SyntaxKind.MethodDeclaration */
30838
+ || kind === 172 /* SyntaxKind.GetAccessor */
30839
+ || kind === 173 /* SyntaxKind.SetAccessor */
30840
+ || kind === 226 /* SyntaxKind.ClassExpression */
30841
+ || kind === 257 /* SyntaxKind.ClassDeclaration */;
30842
+ }
30843
+ ts.canHaveDecorators = canHaveDecorators;
30841
30844
  })(ts || (ts = {}));
30842
30845
  var ts;
30843
30846
  (function (ts) {
@@ -30956,7 +30959,7 @@ var ts;
30956
30959
  visitNode(cbNode, node.default) ||
30957
30960
  visitNode(cbNode, node.expression);
30958
30961
  case 297 /* SyntaxKind.ShorthandPropertyAssignment */:
30959
- return visitNodes(cbNode, cbNodes, node.decorators) ||
30962
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
30960
30963
  visitNodes(cbNode, cbNodes, node.modifiers) ||
30961
30964
  visitNode(cbNode, node.name) ||
30962
30965
  visitNode(cbNode, node.questionToken) ||
@@ -30986,7 +30989,7 @@ var ts;
30986
30989
  visitNode(cbNode, node.type) ||
30987
30990
  visitNode(cbNode, node.initializer);
30988
30991
  case 296 /* SyntaxKind.PropertyAssignment */:
30989
- return visitNodes(cbNode, cbNodes, node.decorators) ||
30992
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
30990
30993
  visitNodes(cbNode, cbNodes, node.modifiers) ||
30991
30994
  visitNode(cbNode, node.name) ||
30992
30995
  visitNode(cbNode, node.questionToken) ||
@@ -31003,7 +31006,7 @@ var ts;
31003
31006
  visitNode(cbNode, node.name) ||
31004
31007
  visitNode(cbNode, node.initializer);
31005
31008
  case 176 /* SyntaxKind.IndexSignature */:
31006
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31009
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31007
31010
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31008
31011
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
31009
31012
  visitNodes(cbNode, cbNodes, node.parameters) ||
@@ -31041,7 +31044,7 @@ var ts;
31041
31044
  visitNodes(cbNode, cbNodes, node.parameters) ||
31042
31045
  visitNode(cbNode, node.type);
31043
31046
  case 171 /* SyntaxKind.Constructor */:
31044
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31047
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31045
31048
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31046
31049
  visitNode(cbNode, node.name) ||
31047
31050
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
@@ -31063,7 +31066,7 @@ var ts;
31063
31066
  visitNode(cbNode, node.type) ||
31064
31067
  visitNode(cbNode, node.body);
31065
31068
  case 256 /* SyntaxKind.FunctionDeclaration */:
31066
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31069
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31067
31070
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31068
31071
  visitNode(cbNode, node.asteriskToken) ||
31069
31072
  visitNode(cbNode, node.name) ||
@@ -31087,7 +31090,7 @@ var ts;
31087
31090
  visitNode(cbNode, node.equalsGreaterThanToken) ||
31088
31091
  visitNode(cbNode, node.body);
31089
31092
  case 170 /* SyntaxKind.ClassStaticBlockDeclaration */:
31090
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31093
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31091
31094
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31092
31095
  visitNode(cbNode, node.body);
31093
31096
  case 178 /* SyntaxKind.TypeReference */:
@@ -31215,7 +31218,7 @@ var ts;
31215
31218
  return visitNodes(cbNode, cbNodes, node.statements) ||
31216
31219
  visitNode(cbNode, node.endOfFileToken);
31217
31220
  case 237 /* SyntaxKind.VariableStatement */:
31218
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31221
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31219
31222
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31220
31223
  visitNode(cbNode, node.declarationList);
31221
31224
  case 255 /* SyntaxKind.VariableDeclarationList */:
@@ -31286,20 +31289,20 @@ var ts;
31286
31289
  visitNodes(cbNode, cbNodes, node.heritageClauses) ||
31287
31290
  visitNodes(cbNode, cbNodes, node.members);
31288
31291
  case 258 /* SyntaxKind.InterfaceDeclaration */:
31289
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31292
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31290
31293
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31291
31294
  visitNode(cbNode, node.name) ||
31292
31295
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
31293
31296
  visitNodes(cbNode, cbNodes, node.heritageClauses) ||
31294
31297
  visitNodes(cbNode, cbNodes, node.members);
31295
31298
  case 259 /* SyntaxKind.TypeAliasDeclaration */:
31296
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31299
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31297
31300
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31298
31301
  visitNode(cbNode, node.name) ||
31299
31302
  visitNodes(cbNode, cbNodes, node.typeParameters) ||
31300
31303
  visitNode(cbNode, node.type);
31301
31304
  case 260 /* SyntaxKind.EnumDeclaration */:
31302
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31305
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31303
31306
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31304
31307
  visitNode(cbNode, node.name) ||
31305
31308
  visitNodes(cbNode, cbNodes, node.members);
@@ -31307,17 +31310,17 @@ var ts;
31307
31310
  return visitNode(cbNode, node.name) ||
31308
31311
  visitNode(cbNode, node.initializer);
31309
31312
  case 261 /* SyntaxKind.ModuleDeclaration */:
31310
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31313
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31311
31314
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31312
31315
  visitNode(cbNode, node.name) ||
31313
31316
  visitNode(cbNode, node.body);
31314
31317
  case 265 /* SyntaxKind.ImportEqualsDeclaration */:
31315
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31318
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31316
31319
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31317
31320
  visitNode(cbNode, node.name) ||
31318
31321
  visitNode(cbNode, node.moduleReference);
31319
31322
  case 266 /* SyntaxKind.ImportDeclaration */:
31320
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31323
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31321
31324
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31322
31325
  visitNode(cbNode, node.importClause) ||
31323
31326
  visitNode(cbNode, node.moduleSpecifier) ||
@@ -31331,7 +31334,7 @@ var ts;
31331
31334
  return visitNode(cbNode, node.name) ||
31332
31335
  visitNode(cbNode, node.value);
31333
31336
  case 264 /* SyntaxKind.NamespaceExportDeclaration */:
31334
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31337
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31335
31338
  visitNode(cbNode, node.name);
31336
31339
  case 268 /* SyntaxKind.NamespaceImport */:
31337
31340
  return visitNode(cbNode, node.name);
@@ -31341,7 +31344,7 @@ var ts;
31341
31344
  case 273 /* SyntaxKind.NamedExports */:
31342
31345
  return visitNodes(cbNode, cbNodes, node.elements);
31343
31346
  case 272 /* SyntaxKind.ExportDeclaration */:
31344
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31347
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31345
31348
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31346
31349
  visitNode(cbNode, node.exportClause) ||
31347
31350
  visitNode(cbNode, node.moduleSpecifier) ||
@@ -31351,7 +31354,7 @@ var ts;
31351
31354
  return visitNode(cbNode, node.propertyName) ||
31352
31355
  visitNode(cbNode, node.name);
31353
31356
  case 271 /* SyntaxKind.ExportAssignment */:
31354
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31357
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31355
31358
  visitNodes(cbNode, cbNodes, node.modifiers) ||
31356
31359
  visitNode(cbNode, node.expression);
31357
31360
  case 223 /* SyntaxKind.TemplateExpression */:
@@ -31376,7 +31379,7 @@ var ts;
31376
31379
  case 277 /* SyntaxKind.ExternalModuleReference */:
31377
31380
  return visitNode(cbNode, node.expression);
31378
31381
  case 276 /* SyntaxKind.MissingDeclaration */:
31379
- return visitNodes(cbNode, cbNodes, node.decorators) ||
31382
+ return visitNodes(cbNode, cbNodes, node.illegalDecorators) ||
31380
31383
  visitNodes(cbNode, cbNodes, node.modifiers);
31381
31384
  case 351 /* SyntaxKind.CommaListExpression */:
31382
31385
  return visitNodes(cbNode, cbNodes, node.elements);
@@ -33927,7 +33930,7 @@ var ts;
33927
33930
  var type = parseTypeAnnotation();
33928
33931
  parseTypeMemberSemicolon();
33929
33932
  var node = factory.createIndexSignature(modifiers, parameters, type);
33930
- node.decorators = decorators;
33933
+ node.illegalDecorators = decorators;
33931
33934
  return withJSDoc(finishNode(node, pos), hasJSDoc);
33932
33935
  }
33933
33936
  function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) {
@@ -36087,7 +36090,7 @@ var ts;
36087
36090
  node = factory.createPropertyAssignment(name, initializer);
36088
36091
  }
36089
36092
  // Decorators, Modifiers, questionToken, and exclamationToken are not supported by property assignments and are reported in the grammar checker
36090
- node.decorators = decorators;
36093
+ node.illegalDecorators = decorators;
36091
36094
  node.modifiers = modifiers;
36092
36095
  node.questionToken = questionToken;
36093
36096
  node.exclamationToken = exclamationToken;
@@ -36735,7 +36738,7 @@ var ts;
36735
36738
  // would follow. For recovery and error reporting purposes, return an incomplete declaration.
36736
36739
  var missing = createMissingNode(276 /* SyntaxKind.MissingDeclaration */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.Declaration_expected);
36737
36740
  ts.setTextRangePos(missing, pos);
36738
- missing.decorators = decorators;
36741
+ missing.illegalDecorators = decorators;
36739
36742
  missing.modifiers = modifiers;
36740
36743
  return missing;
36741
36744
  }
@@ -36878,7 +36881,7 @@ var ts;
36878
36881
  parseSemicolon();
36879
36882
  var node = factory.createVariableStatement(modifiers, declarationList);
36880
36883
  // Decorators are not allowed on a variable statement, so we keep track of them to report them in the grammar checker.
36881
- node.decorators = decorators;
36884
+ node.illegalDecorators = decorators;
36882
36885
  return withJSDoc(finishNode(node, pos), hasJSDoc);
36883
36886
  }
36884
36887
  function parseFunctionDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -36898,7 +36901,7 @@ var ts;
36898
36901
  var body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, ts.Diagnostics.or_expected);
36899
36902
  setAwaitContext(savedAwaitContext);
36900
36903
  var node = factory.createFunctionDeclaration(modifiers, asteriskToken, name, typeParameters, parameters, type, body);
36901
- node.decorators = decorators;
36904
+ node.illegalDecorators = decorators;
36902
36905
  return withJSDoc(finishNode(node, pos), hasJSDoc);
36903
36906
  }
36904
36907
  function parseConstructorName() {
@@ -36921,7 +36924,7 @@ var ts;
36921
36924
  var body = parseFunctionBlockOrSemicolon(0 /* SignatureFlags.None */, ts.Diagnostics.or_expected);
36922
36925
  var node = factory.createConstructorDeclaration(modifiers, parameters, body);
36923
36926
  // Attach invalid nodes if they exist so that we can report them in the grammar checker.
36924
- node.decorators = decorators;
36927
+ node.illegalDecorators = decorators;
36925
36928
  node.typeParameters = typeParameters;
36926
36929
  node.type = type;
36927
36930
  return withJSDoc(finishNode(node, pos), hasJSDoc);
@@ -37037,7 +37040,7 @@ var ts;
37037
37040
  parseExpectedToken(124 /* SyntaxKind.StaticKeyword */);
37038
37041
  var body = parseClassStaticBlockBody();
37039
37042
  var node = withJSDoc(finishNode(factory.createClassStaticBlockDeclaration(body), pos), hasJSDoc);
37040
- node.decorators = decorators;
37043
+ node.illegalDecorators = decorators;
37041
37044
  node.modifiers = modifiers;
37042
37045
  return node;
37043
37046
  }
@@ -37278,7 +37281,7 @@ var ts;
37278
37281
  var heritageClauses = parseHeritageClauses();
37279
37282
  var members = parseObjectTypeMembers();
37280
37283
  var node = factory.createInterfaceDeclaration(modifiers, name, typeParameters, heritageClauses, members);
37281
- node.decorators = decorators;
37284
+ node.illegalDecorators = decorators;
37282
37285
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37283
37286
  }
37284
37287
  function parseTypeAliasDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -37289,7 +37292,7 @@ var ts;
37289
37292
  var type = token() === 138 /* SyntaxKind.IntrinsicKeyword */ && tryParse(parseKeywordAndNoDot) || parseType();
37290
37293
  parseSemicolon();
37291
37294
  var node = factory.createTypeAliasDeclaration(modifiers, name, typeParameters, type);
37292
- node.decorators = decorators;
37295
+ node.illegalDecorators = decorators;
37293
37296
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37294
37297
  }
37295
37298
  // In an ambient declaration, the grammar only allows integer literals as initializers.
@@ -37315,7 +37318,7 @@ var ts;
37315
37318
  members = createMissingList();
37316
37319
  }
37317
37320
  var node = factory.createEnumDeclaration(modifiers, name, members);
37318
- node.decorators = decorators;
37321
+ node.illegalDecorators = decorators;
37319
37322
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37320
37323
  }
37321
37324
  function parseModuleBlock() {
@@ -37339,7 +37342,7 @@ var ts;
37339
37342
  ? parseModuleOrNamespaceDeclaration(getNodePos(), /*hasJSDoc*/ false, /*decorators*/ undefined, /*modifiers*/ undefined, 4 /* NodeFlags.NestedNamespace */ | namespaceFlag)
37340
37343
  : parseModuleBlock();
37341
37344
  var node = factory.createModuleDeclaration(modifiers, name, body, flags);
37342
- node.decorators = decorators;
37345
+ node.illegalDecorators = decorators;
37343
37346
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37344
37347
  }
37345
37348
  function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -37362,7 +37365,7 @@ var ts;
37362
37365
  parseSemicolon();
37363
37366
  }
37364
37367
  var node = factory.createModuleDeclaration(modifiers, name, body, flags);
37365
- node.decorators = decorators;
37368
+ node.illegalDecorators = decorators;
37366
37369
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37367
37370
  }
37368
37371
  function parseModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {
@@ -37402,7 +37405,7 @@ var ts;
37402
37405
  parseSemicolon();
37403
37406
  var node = factory.createNamespaceExportDeclaration(name);
37404
37407
  // NamespaceExportDeclaration nodes cannot have decorators or modifiers, so we attach them here so we can report them in the grammar checker
37405
- node.decorators = decorators;
37408
+ node.illegalDecorators = decorators;
37406
37409
  node.modifiers = modifiers;
37407
37410
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37408
37411
  }
@@ -37442,7 +37445,7 @@ var ts;
37442
37445
  }
37443
37446
  parseSemicolon();
37444
37447
  var node = factory.createImportDeclaration(modifiers, importClause, moduleSpecifier, assertClause);
37445
- node.decorators = decorators;
37448
+ node.illegalDecorators = decorators;
37446
37449
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37447
37450
  }
37448
37451
  function parseAssertEntry() {
@@ -37487,7 +37490,7 @@ var ts;
37487
37490
  var moduleReference = parseModuleReference();
37488
37491
  parseSemicolon();
37489
37492
  var node = factory.createImportEqualsDeclaration(modifiers, isTypeOnly, identifier, moduleReference);
37490
- node.decorators = decorators;
37493
+ node.illegalDecorators = decorators;
37491
37494
  var finished = withJSDoc(finishNode(node, pos), hasJSDoc);
37492
37495
  return finished;
37493
37496
  }
@@ -37677,7 +37680,7 @@ var ts;
37677
37680
  parseSemicolon();
37678
37681
  setAwaitContext(savedAwaitContext);
37679
37682
  var node = factory.createExportDeclaration(modifiers, isTypeOnly, exportClause, moduleSpecifier, assertClause);
37680
- node.decorators = decorators;
37683
+ node.illegalDecorators = decorators;
37681
37684
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37682
37685
  }
37683
37686
  function parseExportAssignment(pos, hasJSDoc, decorators, modifiers) {
@@ -37694,7 +37697,7 @@ var ts;
37694
37697
  parseSemicolon();
37695
37698
  setAwaitContext(savedAwaitContext);
37696
37699
  var node = factory.createExportAssignment(modifiers, isExportEquals, expression);
37697
- node.decorators = decorators;
37700
+ node.illegalDecorators = decorators;
37698
37701
  return withJSDoc(finishNode(node, pos), hasJSDoc);
37699
37702
  }
37700
37703
  var ParsingContext;
@@ -43058,10 +43061,12 @@ var ts;
43058
43061
  if (resolved) {
43059
43062
  var fileName = resolved.fileName, packageId = resolved.packageId;
43060
43063
  var resolvedFileName = options.preserveSymlinks ? fileName : realPath(fileName, host, traceEnabled);
43064
+ var pathsAreEqual = arePathsEqual(fileName, resolvedFileName, host);
43061
43065
  resolvedTypeReferenceDirective = {
43062
43066
  primary: primary,
43063
- resolvedFileName: resolvedFileName,
43064
- originalPath: arePathsEqual(fileName, resolvedFileName, host) ? undefined : fileName,
43067
+ // If the fileName and realpath are differing only in casing prefer fileName so that we can issue correct errors for casing under forceConsistentCasingInFileNames
43068
+ resolvedFileName: pathsAreEqual ? fileName : resolvedFileName,
43069
+ originalPath: pathsAreEqual ? undefined : fileName,
43065
43070
  packageId: packageId,
43066
43071
  isExternalLibraryImport: pathContainsNodeModules(fileName),
43067
43072
  };
@@ -43846,8 +43851,10 @@ var ts;
43846
43851
  var resolvedValue = resolved_1.value;
43847
43852
  if (!compilerOptions.preserveSymlinks && resolvedValue && !resolvedValue.originalPath) {
43848
43853
  var path = realPath(resolvedValue.path, host, traceEnabled);
43849
- var originalPath = arePathsEqual(path, resolvedValue.path, host) ? undefined : resolvedValue.path;
43850
- resolvedValue = __assign(__assign({}, resolvedValue), { path: path, originalPath: originalPath });
43854
+ var pathsAreEqual = arePathsEqual(path, resolvedValue.path, host);
43855
+ var originalPath = pathsAreEqual ? undefined : resolvedValue.path;
43856
+ // If the path and realpath are differing only in casing prefer path so that we can issue correct errors for casing under forceConsistentCasingInFileNames
43857
+ resolvedValue = __assign(__assign({}, resolvedValue), { path: pathsAreEqual ? resolvedValue.path : path, originalPath: originalPath });
43851
43858
  }
43852
43859
  // For node_modules lookups, get the real path so that multiple accesses to an `npm link`-ed module do not create duplicate files.
43853
43860
  return { value: resolvedValue && { resolved: resolvedValue, isExternalLibraryImport: true } };
@@ -73500,25 +73507,7 @@ var ts;
73500
73507
  }
73501
73508
  function getTypeOfPropertyOfContextualType(type, name, nameType) {
73502
73509
  return mapType(type, function (t) {
73503
- if (t.flags & 2097152 /* TypeFlags.Intersection */) {
73504
- var intersection = t;
73505
- var newTypes = ts.mapDefined(intersection.types, getTypeOfConcretePropertyOfContextualType);
73506
- if (newTypes.length > 0) {
73507
- return getIntersectionType(newTypes);
73508
- }
73509
- newTypes = ts.mapDefined(intersection.types, getTypeOfApplicableIndexInfoOfContextualType);
73510
- if (newTypes.length > 0) {
73511
- return getIntersectionType(newTypes);
73512
- }
73513
- return undefined;
73514
- }
73515
- var concretePropertyType = getTypeOfConcretePropertyOfContextualType(t);
73516
- if (concretePropertyType) {
73517
- return concretePropertyType;
73518
- }
73519
- return getTypeOfApplicableIndexInfoOfContextualType(t);
73520
- }, /*noReductions*/ true);
73521
- function getTypeOfConcretePropertyOfContextualType(t) {
73510
+ var _a;
73522
73511
  if (isGenericMappedType(t) && !t.declaration.nameType) {
73523
73512
  var constraint = getConstraintTypeFromMappedType(t);
73524
73513
  var constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;
@@ -73526,9 +73515,8 @@ var ts;
73526
73515
  if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {
73527
73516
  return substituteIndexedMappedType(t, propertyNameType);
73528
73517
  }
73529
- return undefined;
73530
73518
  }
73531
- if (t.flags & 3670016 /* TypeFlags.StructuredType */) {
73519
+ else if (t.flags & 3670016 /* TypeFlags.StructuredType */) {
73532
73520
  var prop = getPropertyOfType(t, name);
73533
73521
  if (prop) {
73534
73522
  return isCircularMappedProperty(prop) ? undefined : getTypeOfSymbol(prop);
@@ -73539,16 +73527,10 @@ var ts;
73539
73527
  return restType;
73540
73528
  }
73541
73529
  }
73530
+ return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;
73542
73531
  }
73543
73532
  return undefined;
73544
- }
73545
- function getTypeOfApplicableIndexInfoOfContextualType(t) {
73546
- var _a;
73547
- if (!(t.flags & 3670016 /* TypeFlags.StructuredType */)) {
73548
- return undefined;
73549
- }
73550
- return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType || getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;
73551
- }
73533
+ }, /*noReductions*/ true);
73552
73534
  }
73553
73535
  // In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of
73554
73536
  // the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one
@@ -88678,7 +88660,7 @@ var ts;
88678
88660
  return checkGrammarDecorators(node) || checkGrammarModifiers(node);
88679
88661
  }
88680
88662
  function checkGrammarDecorators(node) {
88681
- if (ts.canHaveIllegalDecorators(node) && ts.some(node.decorators)) {
88663
+ if (ts.canHaveIllegalDecorators(node) && ts.some(node.illegalDecorators)) {
88682
88664
  return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here);
88683
88665
  }
88684
88666
  if (!ts.canHaveDecorators(node) || !ts.hasDecorators(node)) {