typescript 4.9.0-dev.20221020 → 4.9.0-dev.20221021

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/tsc.js 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-dev.20221020");
72
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221021");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -34525,12 +34525,22 @@ var ts;
34525
34525
  return !isCommandLineOnly && category !== undefined && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));
34526
34526
  }
34527
34527
  function writeConfigurations() {
34528
- var categorizedOptions = ts.createMultiMap();
34528
+ var categorizedOptions = new ts.Map();
34529
+ categorizedOptions.set(ts.Diagnostics.Projects, []);
34530
+ categorizedOptions.set(ts.Diagnostics.Language_and_Environment, []);
34531
+ categorizedOptions.set(ts.Diagnostics.Modules, []);
34532
+ categorizedOptions.set(ts.Diagnostics.JavaScript_Support, []);
34533
+ categorizedOptions.set(ts.Diagnostics.Emit, []);
34534
+ categorizedOptions.set(ts.Diagnostics.Interop_Constraints, []);
34535
+ categorizedOptions.set(ts.Diagnostics.Type_Checking, []);
34536
+ categorizedOptions.set(ts.Diagnostics.Completeness, []);
34529
34537
  for (var _i = 0, optionDeclarations_1 = ts.optionDeclarations; _i < optionDeclarations_1.length; _i++) {
34530
34538
  var option = optionDeclarations_1[_i];
34531
- var category = option.category;
34532
34539
  if (isAllowedOptionForOutput(option)) {
34533
- categorizedOptions.add(ts.getLocaleSpecificMessage(category), option);
34540
+ var listForCategory = categorizedOptions.get(option.category);
34541
+ if (!listForCategory)
34542
+ categorizedOptions.set(option.category, listForCategory = []);
34543
+ listForCategory.push(option);
34534
34544
  }
34535
34545
  }
34536
34546
  var marginLength = 0;
@@ -34540,7 +34550,7 @@ var ts;
34540
34550
  if (entries.length !== 0) {
34541
34551
  entries.push({ value: "" });
34542
34552
  }
34543
- entries.push({ value: "/* ".concat(category, " */") });
34553
+ entries.push({ value: "/* ".concat(ts.getLocaleSpecificMessage(category), " */") });
34544
34554
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
34545
34555
  var option = options_1[_i];
34546
34556
  var optionName = void 0;
@@ -61327,7 +61337,7 @@ var ts;
61327
61337
  (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter && !isSymbolAssigned(localOrExportSymbol))) {
61328
61338
  flowContainer = getControlFlowContainer(flowContainer);
61329
61339
  }
61330
- var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || ts.isBindingElement(declaration) ||
61340
+ var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) ||
61331
61341
  type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 | 16384)) !== 0 ||
61332
61342
  isInTypeQuery(node) || node.parent.kind === 278) ||
61333
61343
  node.parent.kind === 232 ||
@@ -61352,6 +61362,12 @@ var ts;
61352
61362
  }
61353
61363
  return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;
61354
61364
  }
61365
+ function isSameScopedBindingElement(node, declaration) {
61366
+ if (ts.isBindingElement(declaration)) {
61367
+ var bindingElement = ts.findAncestor(node, ts.isBindingElement);
61368
+ return bindingElement && ts.getRootDeclaration(bindingElement) === ts.getRootDeclaration(declaration);
61369
+ }
61370
+ }
61355
61371
  function shouldMarkIdentifierAliasReferenced(node) {
61356
61372
  var _a;
61357
61373
  var parent = node.parent;
package/lib/tsserver.js CHANGED
@@ -109,7 +109,7 @@ var ts;
109
109
  // The following is baselined as a literal template type without intervention
110
110
  /** The version of the TypeScript compiler release */
111
111
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
112
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221020");
112
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221021");
113
113
  /* @internal */
114
114
  var Comparison;
115
115
  (function (Comparison) {
@@ -42271,12 +42271,23 @@ var ts;
42271
42271
  }
42272
42272
  function writeConfigurations() {
42273
42273
  // Filter applicable options to place in the file
42274
- var categorizedOptions = ts.createMultiMap();
42274
+ var categorizedOptions = new ts.Map();
42275
+ // Set allowed categories in order
42276
+ categorizedOptions.set(ts.Diagnostics.Projects, []);
42277
+ categorizedOptions.set(ts.Diagnostics.Language_and_Environment, []);
42278
+ categorizedOptions.set(ts.Diagnostics.Modules, []);
42279
+ categorizedOptions.set(ts.Diagnostics.JavaScript_Support, []);
42280
+ categorizedOptions.set(ts.Diagnostics.Emit, []);
42281
+ categorizedOptions.set(ts.Diagnostics.Interop_Constraints, []);
42282
+ categorizedOptions.set(ts.Diagnostics.Type_Checking, []);
42283
+ categorizedOptions.set(ts.Diagnostics.Completeness, []);
42275
42284
  for (var _i = 0, optionDeclarations_1 = ts.optionDeclarations; _i < optionDeclarations_1.length; _i++) {
42276
42285
  var option = optionDeclarations_1[_i];
42277
- var category = option.category;
42278
42286
  if (isAllowedOptionForOutput(option)) {
42279
- categorizedOptions.add(ts.getLocaleSpecificMessage(category), option);
42287
+ var listForCategory = categorizedOptions.get(option.category);
42288
+ if (!listForCategory)
42289
+ categorizedOptions.set(option.category, listForCategory = []);
42290
+ listForCategory.push(option);
42280
42291
  }
42281
42292
  }
42282
42293
  // Serialize all options and their descriptions
@@ -42287,7 +42298,7 @@ var ts;
42287
42298
  if (entries.length !== 0) {
42288
42299
  entries.push({ value: "" });
42289
42300
  }
42290
- entries.push({ value: "/* ".concat(category, " */") });
42301
+ entries.push({ value: "/* ".concat(ts.getLocaleSpecificMessage(category), " */") });
42291
42302
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
42292
42303
  var option = options_1[_i];
42293
42304
  var optionName = void 0;
@@ -73298,7 +73309,7 @@ var ts;
73298
73309
  // We only look for uninitialized variables in strict null checking mode, and only when we can analyze
73299
73310
  // the entire control flow graph from the variable's declaration (i.e. when the flow container and
73300
73311
  // declaration container are the same).
73301
- var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || ts.isBindingElement(declaration) ||
73312
+ var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) ||
73302
73313
  type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* TypeFlags.AnyOrUnknown */ | 16384 /* TypeFlags.Void */)) !== 0 ||
73303
73314
  isInTypeQuery(node) || node.parent.kind === 278 /* SyntaxKind.ExportSpecifier */) ||
73304
73315
  node.parent.kind === 232 /* SyntaxKind.NonNullExpression */ ||
@@ -73327,6 +73338,12 @@ var ts;
73327
73338
  }
73328
73339
  return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;
73329
73340
  }
73341
+ function isSameScopedBindingElement(node, declaration) {
73342
+ if (ts.isBindingElement(declaration)) {
73343
+ var bindingElement = ts.findAncestor(node, ts.isBindingElement);
73344
+ return bindingElement && ts.getRootDeclaration(bindingElement) === ts.getRootDeclaration(declaration);
73345
+ }
73346
+ }
73330
73347
  function shouldMarkIdentifierAliasReferenced(node) {
73331
73348
  var _a;
73332
73349
  var parent = node.parent;
@@ -108,7 +108,7 @@ var ts;
108
108
  // The following is baselined as a literal template type without intervention
109
109
  /** The version of the TypeScript compiler release */
110
110
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
111
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221020");
111
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221021");
112
112
  /* @internal */
113
113
  var Comparison;
114
114
  (function (Comparison) {
@@ -42270,12 +42270,23 @@ var ts;
42270
42270
  }
42271
42271
  function writeConfigurations() {
42272
42272
  // Filter applicable options to place in the file
42273
- var categorizedOptions = ts.createMultiMap();
42273
+ var categorizedOptions = new ts.Map();
42274
+ // Set allowed categories in order
42275
+ categorizedOptions.set(ts.Diagnostics.Projects, []);
42276
+ categorizedOptions.set(ts.Diagnostics.Language_and_Environment, []);
42277
+ categorizedOptions.set(ts.Diagnostics.Modules, []);
42278
+ categorizedOptions.set(ts.Diagnostics.JavaScript_Support, []);
42279
+ categorizedOptions.set(ts.Diagnostics.Emit, []);
42280
+ categorizedOptions.set(ts.Diagnostics.Interop_Constraints, []);
42281
+ categorizedOptions.set(ts.Diagnostics.Type_Checking, []);
42282
+ categorizedOptions.set(ts.Diagnostics.Completeness, []);
42274
42283
  for (var _i = 0, optionDeclarations_1 = ts.optionDeclarations; _i < optionDeclarations_1.length; _i++) {
42275
42284
  var option = optionDeclarations_1[_i];
42276
- var category = option.category;
42277
42285
  if (isAllowedOptionForOutput(option)) {
42278
- categorizedOptions.add(ts.getLocaleSpecificMessage(category), option);
42286
+ var listForCategory = categorizedOptions.get(option.category);
42287
+ if (!listForCategory)
42288
+ categorizedOptions.set(option.category, listForCategory = []);
42289
+ listForCategory.push(option);
42279
42290
  }
42280
42291
  }
42281
42292
  // Serialize all options and their descriptions
@@ -42286,7 +42297,7 @@ var ts;
42286
42297
  if (entries.length !== 0) {
42287
42298
  entries.push({ value: "" });
42288
42299
  }
42289
- entries.push({ value: "/* ".concat(category, " */") });
42300
+ entries.push({ value: "/* ".concat(ts.getLocaleSpecificMessage(category), " */") });
42290
42301
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
42291
42302
  var option = options_1[_i];
42292
42303
  var optionName = void 0;
@@ -73297,7 +73308,7 @@ var ts;
73297
73308
  // We only look for uninitialized variables in strict null checking mode, and only when we can analyze
73298
73309
  // the entire control flow graph from the variable's declaration (i.e. when the flow container and
73299
73310
  // declaration container are the same).
73300
- var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || ts.isBindingElement(declaration) ||
73311
+ var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) ||
73301
73312
  type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* TypeFlags.AnyOrUnknown */ | 16384 /* TypeFlags.Void */)) !== 0 ||
73302
73313
  isInTypeQuery(node) || node.parent.kind === 278 /* SyntaxKind.ExportSpecifier */) ||
73303
73314
  node.parent.kind === 232 /* SyntaxKind.NonNullExpression */ ||
@@ -73326,6 +73337,12 @@ var ts;
73326
73337
  }
73327
73338
  return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;
73328
73339
  }
73340
+ function isSameScopedBindingElement(node, declaration) {
73341
+ if (ts.isBindingElement(declaration)) {
73342
+ var bindingElement = ts.findAncestor(node, ts.isBindingElement);
73343
+ return bindingElement && ts.getRootDeclaration(bindingElement) === ts.getRootDeclaration(declaration);
73344
+ }
73345
+ }
73329
73346
  function shouldMarkIdentifierAliasReferenced(node) {
73330
73347
  var _a;
73331
73348
  var parent = node.parent;
package/lib/typescript.js CHANGED
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221020");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221021");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -42261,12 +42261,23 @@ var ts;
42261
42261
  }
42262
42262
  function writeConfigurations() {
42263
42263
  // Filter applicable options to place in the file
42264
- var categorizedOptions = ts.createMultiMap();
42264
+ var categorizedOptions = new ts.Map();
42265
+ // Set allowed categories in order
42266
+ categorizedOptions.set(ts.Diagnostics.Projects, []);
42267
+ categorizedOptions.set(ts.Diagnostics.Language_and_Environment, []);
42268
+ categorizedOptions.set(ts.Diagnostics.Modules, []);
42269
+ categorizedOptions.set(ts.Diagnostics.JavaScript_Support, []);
42270
+ categorizedOptions.set(ts.Diagnostics.Emit, []);
42271
+ categorizedOptions.set(ts.Diagnostics.Interop_Constraints, []);
42272
+ categorizedOptions.set(ts.Diagnostics.Type_Checking, []);
42273
+ categorizedOptions.set(ts.Diagnostics.Completeness, []);
42265
42274
  for (var _i = 0, optionDeclarations_1 = ts.optionDeclarations; _i < optionDeclarations_1.length; _i++) {
42266
42275
  var option = optionDeclarations_1[_i];
42267
- var category = option.category;
42268
42276
  if (isAllowedOptionForOutput(option)) {
42269
- categorizedOptions.add(ts.getLocaleSpecificMessage(category), option);
42277
+ var listForCategory = categorizedOptions.get(option.category);
42278
+ if (!listForCategory)
42279
+ categorizedOptions.set(option.category, listForCategory = []);
42280
+ listForCategory.push(option);
42270
42281
  }
42271
42282
  }
42272
42283
  // Serialize all options and their descriptions
@@ -42277,7 +42288,7 @@ var ts;
42277
42288
  if (entries.length !== 0) {
42278
42289
  entries.push({ value: "" });
42279
42290
  }
42280
- entries.push({ value: "/* ".concat(category, " */") });
42291
+ entries.push({ value: "/* ".concat(ts.getLocaleSpecificMessage(category), " */") });
42281
42292
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
42282
42293
  var option = options_1[_i];
42283
42294
  var optionName = void 0;
@@ -73288,7 +73299,7 @@ var ts;
73288
73299
  // We only look for uninitialized variables in strict null checking mode, and only when we can analyze
73289
73300
  // the entire control flow graph from the variable's declaration (i.e. when the flow container and
73290
73301
  // declaration container are the same).
73291
- var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || ts.isBindingElement(declaration) ||
73302
+ var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) ||
73292
73303
  type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* TypeFlags.AnyOrUnknown */ | 16384 /* TypeFlags.Void */)) !== 0 ||
73293
73304
  isInTypeQuery(node) || node.parent.kind === 278 /* SyntaxKind.ExportSpecifier */) ||
73294
73305
  node.parent.kind === 232 /* SyntaxKind.NonNullExpression */ ||
@@ -73317,6 +73328,12 @@ var ts;
73317
73328
  }
73318
73329
  return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;
73319
73330
  }
73331
+ function isSameScopedBindingElement(node, declaration) {
73332
+ if (ts.isBindingElement(declaration)) {
73333
+ var bindingElement = ts.findAncestor(node, ts.isBindingElement);
73334
+ return bindingElement && ts.getRootDeclaration(bindingElement) === ts.getRootDeclaration(declaration);
73335
+ }
73336
+ }
73320
73337
  function shouldMarkIdentifierAliasReferenced(node) {
73321
73338
  var _a;
73322
73339
  var parent = node.parent;
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221020");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221021");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -42261,12 +42261,23 @@ var ts;
42261
42261
  }
42262
42262
  function writeConfigurations() {
42263
42263
  // Filter applicable options to place in the file
42264
- var categorizedOptions = ts.createMultiMap();
42264
+ var categorizedOptions = new ts.Map();
42265
+ // Set allowed categories in order
42266
+ categorizedOptions.set(ts.Diagnostics.Projects, []);
42267
+ categorizedOptions.set(ts.Diagnostics.Language_and_Environment, []);
42268
+ categorizedOptions.set(ts.Diagnostics.Modules, []);
42269
+ categorizedOptions.set(ts.Diagnostics.JavaScript_Support, []);
42270
+ categorizedOptions.set(ts.Diagnostics.Emit, []);
42271
+ categorizedOptions.set(ts.Diagnostics.Interop_Constraints, []);
42272
+ categorizedOptions.set(ts.Diagnostics.Type_Checking, []);
42273
+ categorizedOptions.set(ts.Diagnostics.Completeness, []);
42265
42274
  for (var _i = 0, optionDeclarations_1 = ts.optionDeclarations; _i < optionDeclarations_1.length; _i++) {
42266
42275
  var option = optionDeclarations_1[_i];
42267
- var category = option.category;
42268
42276
  if (isAllowedOptionForOutput(option)) {
42269
- categorizedOptions.add(ts.getLocaleSpecificMessage(category), option);
42277
+ var listForCategory = categorizedOptions.get(option.category);
42278
+ if (!listForCategory)
42279
+ categorizedOptions.set(option.category, listForCategory = []);
42280
+ listForCategory.push(option);
42270
42281
  }
42271
42282
  }
42272
42283
  // Serialize all options and their descriptions
@@ -42277,7 +42288,7 @@ var ts;
42277
42288
  if (entries.length !== 0) {
42278
42289
  entries.push({ value: "" });
42279
42290
  }
42280
- entries.push({ value: "/* ".concat(category, " */") });
42291
+ entries.push({ value: "/* ".concat(ts.getLocaleSpecificMessage(category), " */") });
42281
42292
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
42282
42293
  var option = options_1[_i];
42283
42294
  var optionName = void 0;
@@ -73288,7 +73299,7 @@ var ts;
73288
73299
  // We only look for uninitialized variables in strict null checking mode, and only when we can analyze
73289
73300
  // the entire control flow graph from the variable's declaration (i.e. when the flow container and
73290
73301
  // declaration container are the same).
73291
- var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || ts.isBindingElement(declaration) ||
73302
+ var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) ||
73292
73303
  type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* TypeFlags.AnyOrUnknown */ | 16384 /* TypeFlags.Void */)) !== 0 ||
73293
73304
  isInTypeQuery(node) || node.parent.kind === 278 /* SyntaxKind.ExportSpecifier */) ||
73294
73305
  node.parent.kind === 232 /* SyntaxKind.NonNullExpression */ ||
@@ -73317,6 +73328,12 @@ var ts;
73317
73328
  }
73318
73329
  return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;
73319
73330
  }
73331
+ function isSameScopedBindingElement(node, declaration) {
73332
+ if (ts.isBindingElement(declaration)) {
73333
+ var bindingElement = ts.findAncestor(node, ts.isBindingElement);
73334
+ return bindingElement && ts.getRootDeclaration(bindingElement) === ts.getRootDeclaration(declaration);
73335
+ }
73336
+ }
73320
73337
  function shouldMarkIdentifierAliasReferenced(node) {
73321
73338
  var _a;
73322
73339
  var parent = node.parent;
@@ -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 = "".concat(ts.versionMajorMinor, ".0-dev.20221020");
92
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20221021");
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -42251,12 +42251,23 @@ var ts;
42251
42251
  }
42252
42252
  function writeConfigurations() {
42253
42253
  // Filter applicable options to place in the file
42254
- var categorizedOptions = ts.createMultiMap();
42254
+ var categorizedOptions = new ts.Map();
42255
+ // Set allowed categories in order
42256
+ categorizedOptions.set(ts.Diagnostics.Projects, []);
42257
+ categorizedOptions.set(ts.Diagnostics.Language_and_Environment, []);
42258
+ categorizedOptions.set(ts.Diagnostics.Modules, []);
42259
+ categorizedOptions.set(ts.Diagnostics.JavaScript_Support, []);
42260
+ categorizedOptions.set(ts.Diagnostics.Emit, []);
42261
+ categorizedOptions.set(ts.Diagnostics.Interop_Constraints, []);
42262
+ categorizedOptions.set(ts.Diagnostics.Type_Checking, []);
42263
+ categorizedOptions.set(ts.Diagnostics.Completeness, []);
42255
42264
  for (var _i = 0, optionDeclarations_1 = ts.optionDeclarations; _i < optionDeclarations_1.length; _i++) {
42256
42265
  var option = optionDeclarations_1[_i];
42257
- var category = option.category;
42258
42266
  if (isAllowedOptionForOutput(option)) {
42259
- categorizedOptions.add(ts.getLocaleSpecificMessage(category), option);
42267
+ var listForCategory = categorizedOptions.get(option.category);
42268
+ if (!listForCategory)
42269
+ categorizedOptions.set(option.category, listForCategory = []);
42270
+ listForCategory.push(option);
42260
42271
  }
42261
42272
  }
42262
42273
  // Serialize all options and their descriptions
@@ -42267,7 +42278,7 @@ var ts;
42267
42278
  if (entries.length !== 0) {
42268
42279
  entries.push({ value: "" });
42269
42280
  }
42270
- entries.push({ value: "/* ".concat(category, " */") });
42281
+ entries.push({ value: "/* ".concat(ts.getLocaleSpecificMessage(category), " */") });
42271
42282
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
42272
42283
  var option = options_1[_i];
42273
42284
  var optionName = void 0;
@@ -73278,7 +73289,7 @@ var ts;
73278
73289
  // We only look for uninitialized variables in strict null checking mode, and only when we can analyze
73279
73290
  // the entire control flow graph from the variable's declaration (i.e. when the flow container and
73280
73291
  // declaration container are the same).
73281
- var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || ts.isBindingElement(declaration) ||
73292
+ var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) ||
73282
73293
  type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* TypeFlags.AnyOrUnknown */ | 16384 /* TypeFlags.Void */)) !== 0 ||
73283
73294
  isInTypeQuery(node) || node.parent.kind === 278 /* SyntaxKind.ExportSpecifier */) ||
73284
73295
  node.parent.kind === 232 /* SyntaxKind.NonNullExpression */ ||
@@ -73307,6 +73318,12 @@ var ts;
73307
73318
  }
73308
73319
  return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;
73309
73320
  }
73321
+ function isSameScopedBindingElement(node, declaration) {
73322
+ if (ts.isBindingElement(declaration)) {
73323
+ var bindingElement = ts.findAncestor(node, ts.isBindingElement);
73324
+ return bindingElement && ts.getRootDeclaration(bindingElement) === ts.getRootDeclaration(declaration);
73325
+ }
73326
+ }
73310
73327
  function shouldMarkIdentifierAliasReferenced(node) {
73311
73328
  var _a;
73312
73329
  var parent = node.parent;
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.9.0-dev.20221020",
5
+ "version": "4.9.0-dev.20221021",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [