typescript 4.6.0-dev.20211107 → 4.6.0-dev.20211111

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.
@@ -111,7 +111,7 @@ interface BigInt64Array {
111
111
  * Returns the item located at the specified index.
112
112
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
113
113
  */
114
- at(index: number): number | undefined;
114
+ at(index: number): bigint | undefined;
115
115
  }
116
116
 
117
117
  interface BigUint64Array {
@@ -119,5 +119,5 @@ interface BigUint64Array {
119
119
  * Returns the item located at the specified index.
120
120
  * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
121
121
  */
122
- at(index: number): number | undefined;
122
+ at(index: number): bigint | undefined;
123
123
  }
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.6";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20211107";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20211111";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  function tryGetNativeMap() {
package/lib/tsserver.js CHANGED
@@ -100,7 +100,7 @@ var ts;
100
100
  // The following is baselined as a literal template type without intervention
101
101
  /** The version of the TypeScript compiler release */
102
102
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103
- ts.version = ts.versionMajorMinor + ".0-dev.20211107";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20211111";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -85908,8 +85908,7 @@ var ts;
85908
85908
  }
85909
85909
  // Modifiers are never allowed on properties except for 'async' on a method declaration
85910
85910
  if (prop.modifiers) {
85911
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
85912
- for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
85911
+ for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
85913
85912
  var mod = _c[_b];
85914
85913
  if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
85915
85914
  grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
@@ -128726,9 +128725,6 @@ var ts;
128726
128725
  insertText = ts.escapeSnippetText(name) + "={$1}";
128727
128726
  isSnippet = true;
128728
128727
  }
128729
- if (isSnippet) {
128730
- replacementSpan = ts.createTextSpanFromNode(location, sourceFile);
128731
- }
128732
128728
  }
128733
128729
  if (insertText !== undefined && !preferences.includeCompletionsWithInsertText) {
128734
128730
  return undefined;
@@ -128813,7 +128809,7 @@ var ts;
128813
128809
  removeComments: true,
128814
128810
  module: options.module,
128815
128811
  target: options.target,
128816
- omitTrailingSemicolon: true,
128812
+ omitTrailingSemicolon: false,
128817
128813
  newLine: ts.getNewLineKind(ts.getNewLineCharacter(options, ts.maybeBind(host, host.getNewLine))),
128818
128814
  });
128819
128815
  var importAdder = ts.codefix.createImportAdder(sourceFile, program, preferences, host);
@@ -128871,7 +128867,7 @@ var ts;
128871
128867
  completionNodes.push(node);
128872
128868
  }, body, 2 /* Property */, isAbstract);
128873
128869
  if (completionNodes.length) {
128874
- insertText = printer.printSnippetList(1 /* MultiLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
128870
+ insertText = printer.printSnippetList(1 /* MultiLine */ | 131072 /* NoTrailingNewLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
128875
128871
  }
128876
128872
  return { insertText: insertText, isSnippet: isSnippet, importAdder: importAdder };
128877
128873
  }
@@ -131065,6 +131061,8 @@ var ts;
131065
131061
  // function f<T>(x: T) {}
131066
131062
  // f({ abc/**/: "" }) // `abc` is a member of `T` but only because it declares itself
131067
131063
  function hasDeclarationOtherThanSelf(member) {
131064
+ if (!ts.length(member.declarations))
131065
+ return true;
131068
131066
  return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });
131069
131067
  }
131070
131068
  }
@@ -133781,7 +133779,7 @@ var ts;
133781
133779
  var token = _a[_i];
133782
133780
  if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)
133783
133781
  continue;
133784
- var referenceSymbol = checker.getSymbolAtLocation(token); // See GH#19955 for why the type annotation is necessary
133782
+ var referenceSymbol = checker.getSymbolAtLocation(token);
133785
133783
  if (referenceSymbol === symbol
133786
133784
  || checker.getShorthandAssignmentValueSymbol(token.parent) === symbol
133787
133785
  || ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {
@@ -147839,8 +147837,6 @@ var ts;
147839
147837
  var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {
147840
147838
  return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)
147841
147839
  ? undefined
147842
- // (TODO: GH#18217)
147843
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
147844
147840
  : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);
147845
147841
  });
147846
147842
  if (importSpecifiers) {
@@ -155216,8 +155212,7 @@ var ts;
155216
155212
  return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };
155217
155213
  }
155218
155214
  var statements = [];
155219
- var start2 = start; // TODO: GH#18217 Need to alias `start` to get this to compile. See https://github.com/Microsoft/TypeScript/issues/19955#issuecomment-344118248
155220
- for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {
155215
+ for (var _i = 0, _a = start.parent.statements; _i < _a.length; _i++) {
155221
155216
  var statement = _a[_i];
155222
155217
  if (statement === start || statements.length) {
155223
155218
  var errors_1 = checkNode(statement);
@@ -159353,10 +159348,11 @@ var ts;
159353
159348
  }
159354
159349
  function findBaseOfDeclaration(checker, declaration, cb) {
159355
159350
  var _a;
159351
+ if (ts.hasStaticModifier(declaration))
159352
+ return;
159356
159353
  var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 170 /* Constructor */ ? declaration.parent.parent : declaration.parent;
159357
- if (!classOrInterfaceDeclaration) {
159354
+ if (!classOrInterfaceDeclaration)
159358
159355
  return;
159359
- }
159360
159356
  return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {
159361
159357
  var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);
159362
159358
  return symbol ? cb(symbol) : undefined;
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20211107";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20211111";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -86102,8 +86102,7 @@ var ts;
86102
86102
  }
86103
86103
  // Modifiers are never allowed on properties except for 'async' on a method declaration
86104
86104
  if (prop.modifiers) {
86105
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
86106
- for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
86105
+ for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
86107
86106
  var mod = _c[_b];
86108
86107
  if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
86109
86108
  grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
@@ -129308,9 +129307,6 @@ var ts;
129308
129307
  insertText = ts.escapeSnippetText(name) + "={$1}";
129309
129308
  isSnippet = true;
129310
129309
  }
129311
- if (isSnippet) {
129312
- replacementSpan = ts.createTextSpanFromNode(location, sourceFile);
129313
- }
129314
129310
  }
129315
129311
  if (insertText !== undefined && !preferences.includeCompletionsWithInsertText) {
129316
129312
  return undefined;
@@ -129395,7 +129391,7 @@ var ts;
129395
129391
  removeComments: true,
129396
129392
  module: options.module,
129397
129393
  target: options.target,
129398
- omitTrailingSemicolon: true,
129394
+ omitTrailingSemicolon: false,
129399
129395
  newLine: ts.getNewLineKind(ts.getNewLineCharacter(options, ts.maybeBind(host, host.getNewLine))),
129400
129396
  });
129401
129397
  var importAdder = ts.codefix.createImportAdder(sourceFile, program, preferences, host);
@@ -129453,7 +129449,7 @@ var ts;
129453
129449
  completionNodes.push(node);
129454
129450
  }, body, 2 /* Property */, isAbstract);
129455
129451
  if (completionNodes.length) {
129456
- insertText = printer.printSnippetList(1 /* MultiLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
129452
+ insertText = printer.printSnippetList(1 /* MultiLine */ | 131072 /* NoTrailingNewLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
129457
129453
  }
129458
129454
  return { insertText: insertText, isSnippet: isSnippet, importAdder: importAdder };
129459
129455
  }
@@ -131647,6 +131643,8 @@ var ts;
131647
131643
  // function f<T>(x: T) {}
131648
131644
  // f({ abc/**/: "" }) // `abc` is a member of `T` but only because it declares itself
131649
131645
  function hasDeclarationOtherThanSelf(member) {
131646
+ if (!ts.length(member.declarations))
131647
+ return true;
131650
131648
  return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });
131651
131649
  }
131652
131650
  }
@@ -134363,7 +134361,7 @@ var ts;
134363
134361
  var token = _a[_i];
134364
134362
  if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)
134365
134363
  continue;
134366
- var referenceSymbol = checker.getSymbolAtLocation(token); // See GH#19955 for why the type annotation is necessary
134364
+ var referenceSymbol = checker.getSymbolAtLocation(token);
134367
134365
  if (referenceSymbol === symbol
134368
134366
  || checker.getShorthandAssignmentValueSymbol(token.parent) === symbol
134369
134367
  || ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {
@@ -148421,8 +148419,6 @@ var ts;
148421
148419
  var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {
148422
148420
  return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)
148423
148421
  ? undefined
148424
- // (TODO: GH#18217)
148425
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
148426
148422
  : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);
148427
148423
  });
148428
148424
  if (importSpecifiers) {
@@ -155798,8 +155794,7 @@ var ts;
155798
155794
  return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };
155799
155795
  }
155800
155796
  var statements = [];
155801
- var start2 = start; // TODO: GH#18217 Need to alias `start` to get this to compile. See https://github.com/Microsoft/TypeScript/issues/19955#issuecomment-344118248
155802
- for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {
155797
+ for (var _i = 0, _a = start.parent.statements; _i < _a.length; _i++) {
155803
155798
  var statement = _a[_i];
155804
155799
  if (statement === start || statements.length) {
155805
155800
  var errors_1 = checkNode(statement);
@@ -159935,10 +159930,11 @@ var ts;
159935
159930
  }
159936
159931
  function findBaseOfDeclaration(checker, declaration, cb) {
159937
159932
  var _a;
159933
+ if (ts.hasStaticModifier(declaration))
159934
+ return;
159938
159935
  var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 170 /* Constructor */ ? declaration.parent.parent : declaration.parent;
159939
- if (!classOrInterfaceDeclaration) {
159936
+ if (!classOrInterfaceDeclaration)
159940
159937
  return;
159941
- }
159942
159938
  return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {
159943
159939
  var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);
159944
159940
  return symbol ? cb(symbol) : undefined;
package/lib/typescript.js CHANGED
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20211107";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20211111";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -86102,8 +86102,7 @@ var ts;
86102
86102
  }
86103
86103
  // Modifiers are never allowed on properties except for 'async' on a method declaration
86104
86104
  if (prop.modifiers) {
86105
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
86106
- for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
86105
+ for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
86107
86106
  var mod = _c[_b];
86108
86107
  if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
86109
86108
  grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
@@ -129308,9 +129307,6 @@ var ts;
129308
129307
  insertText = ts.escapeSnippetText(name) + "={$1}";
129309
129308
  isSnippet = true;
129310
129309
  }
129311
- if (isSnippet) {
129312
- replacementSpan = ts.createTextSpanFromNode(location, sourceFile);
129313
- }
129314
129310
  }
129315
129311
  if (insertText !== undefined && !preferences.includeCompletionsWithInsertText) {
129316
129312
  return undefined;
@@ -129395,7 +129391,7 @@ var ts;
129395
129391
  removeComments: true,
129396
129392
  module: options.module,
129397
129393
  target: options.target,
129398
- omitTrailingSemicolon: true,
129394
+ omitTrailingSemicolon: false,
129399
129395
  newLine: ts.getNewLineKind(ts.getNewLineCharacter(options, ts.maybeBind(host, host.getNewLine))),
129400
129396
  });
129401
129397
  var importAdder = ts.codefix.createImportAdder(sourceFile, program, preferences, host);
@@ -129453,7 +129449,7 @@ var ts;
129453
129449
  completionNodes.push(node);
129454
129450
  }, body, 2 /* Property */, isAbstract);
129455
129451
  if (completionNodes.length) {
129456
- insertText = printer.printSnippetList(1 /* MultiLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
129452
+ insertText = printer.printSnippetList(1 /* MultiLine */ | 131072 /* NoTrailingNewLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
129457
129453
  }
129458
129454
  return { insertText: insertText, isSnippet: isSnippet, importAdder: importAdder };
129459
129455
  }
@@ -131647,6 +131643,8 @@ var ts;
131647
131643
  // function f<T>(x: T) {}
131648
131644
  // f({ abc/**/: "" }) // `abc` is a member of `T` but only because it declares itself
131649
131645
  function hasDeclarationOtherThanSelf(member) {
131646
+ if (!ts.length(member.declarations))
131647
+ return true;
131650
131648
  return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });
131651
131649
  }
131652
131650
  }
@@ -134363,7 +134361,7 @@ var ts;
134363
134361
  var token = _a[_i];
134364
134362
  if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)
134365
134363
  continue;
134366
- var referenceSymbol = checker.getSymbolAtLocation(token); // See GH#19955 for why the type annotation is necessary
134364
+ var referenceSymbol = checker.getSymbolAtLocation(token);
134367
134365
  if (referenceSymbol === symbol
134368
134366
  || checker.getShorthandAssignmentValueSymbol(token.parent) === symbol
134369
134367
  || ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {
@@ -148421,8 +148419,6 @@ var ts;
148421
148419
  var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {
148422
148420
  return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)
148423
148421
  ? undefined
148424
- // (TODO: GH#18217)
148425
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
148426
148422
  : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);
148427
148423
  });
148428
148424
  if (importSpecifiers) {
@@ -155798,8 +155794,7 @@ var ts;
155798
155794
  return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };
155799
155795
  }
155800
155796
  var statements = [];
155801
- var start2 = start; // TODO: GH#18217 Need to alias `start` to get this to compile. See https://github.com/Microsoft/TypeScript/issues/19955#issuecomment-344118248
155802
- for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {
155797
+ for (var _i = 0, _a = start.parent.statements; _i < _a.length; _i++) {
155803
155798
  var statement = _a[_i];
155804
155799
  if (statement === start || statements.length) {
155805
155800
  var errors_1 = checkNode(statement);
@@ -159935,10 +159930,11 @@ var ts;
159935
159930
  }
159936
159931
  function findBaseOfDeclaration(checker, declaration, cb) {
159937
159932
  var _a;
159933
+ if (ts.hasStaticModifier(declaration))
159934
+ return;
159938
159935
  var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 170 /* Constructor */ ? declaration.parent.parent : declaration.parent;
159939
- if (!classOrInterfaceDeclaration) {
159936
+ if (!classOrInterfaceDeclaration)
159940
159937
  return;
159941
- }
159942
159938
  return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {
159943
159939
  var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);
159944
159940
  return symbol ? cb(symbol) : undefined;
@@ -294,7 +294,7 @@ var ts;
294
294
  // The following is baselined as a literal template type without intervention
295
295
  /** The version of the TypeScript compiler release */
296
296
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
297
- ts.version = ts.versionMajorMinor + ".0-dev.20211107";
297
+ ts.version = ts.versionMajorMinor + ".0-dev.20211111";
298
298
  /* @internal */
299
299
  var Comparison;
300
300
  (function (Comparison) {
@@ -86102,8 +86102,7 @@ var ts;
86102
86102
  }
86103
86103
  // Modifiers are never allowed on properties except for 'async' on a method declaration
86104
86104
  if (prop.modifiers) {
86105
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
86106
- for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
86105
+ for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
86107
86106
  var mod = _c[_b];
86108
86107
  if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
86109
86108
  grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
@@ -129308,9 +129307,6 @@ var ts;
129308
129307
  insertText = ts.escapeSnippetText(name) + "={$1}";
129309
129308
  isSnippet = true;
129310
129309
  }
129311
- if (isSnippet) {
129312
- replacementSpan = ts.createTextSpanFromNode(location, sourceFile);
129313
- }
129314
129310
  }
129315
129311
  if (insertText !== undefined && !preferences.includeCompletionsWithInsertText) {
129316
129312
  return undefined;
@@ -129395,7 +129391,7 @@ var ts;
129395
129391
  removeComments: true,
129396
129392
  module: options.module,
129397
129393
  target: options.target,
129398
- omitTrailingSemicolon: true,
129394
+ omitTrailingSemicolon: false,
129399
129395
  newLine: ts.getNewLineKind(ts.getNewLineCharacter(options, ts.maybeBind(host, host.getNewLine))),
129400
129396
  });
129401
129397
  var importAdder = ts.codefix.createImportAdder(sourceFile, program, preferences, host);
@@ -129453,7 +129449,7 @@ var ts;
129453
129449
  completionNodes.push(node);
129454
129450
  }, body, 2 /* Property */, isAbstract);
129455
129451
  if (completionNodes.length) {
129456
- insertText = printer.printSnippetList(1 /* MultiLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
129452
+ insertText = printer.printSnippetList(1 /* MultiLine */ | 131072 /* NoTrailingNewLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
129457
129453
  }
129458
129454
  return { insertText: insertText, isSnippet: isSnippet, importAdder: importAdder };
129459
129455
  }
@@ -131647,6 +131643,8 @@ var ts;
131647
131643
  // function f<T>(x: T) {}
131648
131644
  // f({ abc/**/: "" }) // `abc` is a member of `T` but only because it declares itself
131649
131645
  function hasDeclarationOtherThanSelf(member) {
131646
+ if (!ts.length(member.declarations))
131647
+ return true;
131650
131648
  return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });
131651
131649
  }
131652
131650
  }
@@ -134363,7 +134361,7 @@ var ts;
134363
134361
  var token = _a[_i];
134364
134362
  if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)
134365
134363
  continue;
134366
- var referenceSymbol = checker.getSymbolAtLocation(token); // See GH#19955 for why the type annotation is necessary
134364
+ var referenceSymbol = checker.getSymbolAtLocation(token);
134367
134365
  if (referenceSymbol === symbol
134368
134366
  || checker.getShorthandAssignmentValueSymbol(token.parent) === symbol
134369
134367
  || ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {
@@ -148421,8 +148419,6 @@ var ts;
148421
148419
  var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {
148422
148420
  return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)
148423
148421
  ? undefined
148424
- // (TODO: GH#18217)
148425
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
148426
148422
  : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);
148427
148423
  });
148428
148424
  if (importSpecifiers) {
@@ -155798,8 +155794,7 @@ var ts;
155798
155794
  return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };
155799
155795
  }
155800
155796
  var statements = [];
155801
- var start2 = start; // TODO: GH#18217 Need to alias `start` to get this to compile. See https://github.com/Microsoft/TypeScript/issues/19955#issuecomment-344118248
155802
- for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {
155797
+ for (var _i = 0, _a = start.parent.statements; _i < _a.length; _i++) {
155803
155798
  var statement = _a[_i];
155804
155799
  if (statement === start || statements.length) {
155805
155800
  var errors_1 = checkNode(statement);
@@ -159935,10 +159930,11 @@ var ts;
159935
159930
  }
159936
159931
  function findBaseOfDeclaration(checker, declaration, cb) {
159937
159932
  var _a;
159933
+ if (ts.hasStaticModifier(declaration))
159934
+ return;
159938
159935
  var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 170 /* Constructor */ ? declaration.parent.parent : declaration.parent;
159939
- if (!classOrInterfaceDeclaration) {
159936
+ if (!classOrInterfaceDeclaration)
159940
159937
  return;
159941
- }
159942
159938
  return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {
159943
159939
  var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);
159944
159940
  return symbol ? cb(symbol) : undefined;
@@ -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.20211107";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20211111";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -85897,8 +85897,7 @@ var ts;
85897
85897
  }
85898
85898
  // Modifiers are never allowed on properties except for 'async' on a method declaration
85899
85899
  if (prop.modifiers) {
85900
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
85901
- for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
85900
+ for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
85902
85901
  var mod = _c[_b];
85903
85902
  if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
85904
85903
  grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
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.6.0-dev.20211107",
5
+ "version": "4.6.0-dev.20211111",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [