typescript 5.4.0-dev.20231208 → 5.4.0-dev.20231209

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/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.4";
38
- version = `${versionMajorMinor}.0-dev.20231208`;
38
+ version = `${versionMajorMinor}.0-dev.20231209`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -17804,38 +17804,12 @@ ${lanes.join("\n")}
17804
17804
  return callback;
17805
17805
  }
17806
17806
  }
17807
- function getEmitScriptTarget(compilerOptions) {
17808
- return compilerOptions.target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
17809
- }
17810
- function getEmitModuleKind(compilerOptions) {
17811
- return typeof compilerOptions.module === "number" ? compilerOptions.module : getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
17807
+ function createComputedCompilerOptions(options) {
17808
+ return options;
17812
17809
  }
17813
17810
  function emitModuleKindIsNonNodeESM(moduleKind) {
17814
17811
  return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */;
17815
17812
  }
17816
- function getEmitModuleResolutionKind(compilerOptions) {
17817
- let moduleResolution = compilerOptions.moduleResolution;
17818
- if (moduleResolution === void 0) {
17819
- switch (getEmitModuleKind(compilerOptions)) {
17820
- case 1 /* CommonJS */:
17821
- moduleResolution = 2 /* Node10 */;
17822
- break;
17823
- case 100 /* Node16 */:
17824
- moduleResolution = 3 /* Node16 */;
17825
- break;
17826
- case 199 /* NodeNext */:
17827
- moduleResolution = 99 /* NodeNext */;
17828
- break;
17829
- default:
17830
- moduleResolution = 1 /* Classic */;
17831
- break;
17832
- }
17833
- }
17834
- return moduleResolution;
17835
- }
17836
- function getEmitModuleDetectionKind(options) {
17837
- return options.moduleDetection || (getEmitModuleKind(options) === 100 /* Node16 */ || getEmitModuleKind(options) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
17838
- }
17839
17813
  function hasJsonModuleEmitEnabled(options) {
17840
17814
  switch (getEmitModuleKind(options)) {
17841
17815
  case 1 /* CommonJS */:
@@ -17851,9 +17825,6 @@ ${lanes.join("\n")}
17851
17825
  return false;
17852
17826
  }
17853
17827
  }
17854
- function getIsolatedModules(options) {
17855
- return !!(options.isolatedModules || options.verbatimModuleSyntax);
17856
- }
17857
17828
  function importNameElisionDisabled(options) {
17858
17829
  return options.verbatimModuleSyntax || options.isolatedModules && options.preserveValueImports;
17859
17830
  }
@@ -17863,88 +17834,15 @@ ${lanes.join("\n")}
17863
17834
  function unusedLabelIsError(options) {
17864
17835
  return options.allowUnusedLabels === false;
17865
17836
  }
17866
- function getAreDeclarationMapsEnabled(options) {
17867
- return !!(getEmitDeclarations(options) && options.declarationMap);
17868
- }
17869
- function getESModuleInterop(compilerOptions) {
17870
- if (compilerOptions.esModuleInterop !== void 0) {
17871
- return compilerOptions.esModuleInterop;
17872
- }
17873
- switch (getEmitModuleKind(compilerOptions)) {
17874
- case 100 /* Node16 */:
17875
- case 199 /* NodeNext */:
17876
- return true;
17877
- }
17878
- return void 0;
17879
- }
17880
- function getAllowSyntheticDefaultImports(compilerOptions) {
17881
- if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
17882
- return compilerOptions.allowSyntheticDefaultImports;
17883
- }
17884
- return getESModuleInterop(compilerOptions) || getEmitModuleKind(compilerOptions) === 4 /* System */ || getEmitModuleResolutionKind(compilerOptions) === 100 /* Bundler */;
17885
- }
17886
17837
  function moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution) {
17887
17838
  return moduleResolution >= 3 /* Node16 */ && moduleResolution <= 99 /* NodeNext */ || moduleResolution === 100 /* Bundler */;
17888
17839
  }
17889
17840
  function shouldResolveJsRequire(compilerOptions) {
17890
17841
  return !!compilerOptions.noDtsResolution || getEmitModuleResolutionKind(compilerOptions) !== 100 /* Bundler */;
17891
17842
  }
17892
- function getResolvePackageJsonExports(compilerOptions) {
17893
- const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
17894
- if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
17895
- return false;
17896
- }
17897
- if (compilerOptions.resolvePackageJsonExports !== void 0) {
17898
- return compilerOptions.resolvePackageJsonExports;
17899
- }
17900
- switch (moduleResolution) {
17901
- case 3 /* Node16 */:
17902
- case 99 /* NodeNext */:
17903
- case 100 /* Bundler */:
17904
- return true;
17905
- }
17906
- return false;
17907
- }
17908
- function getResolvePackageJsonImports(compilerOptions) {
17909
- const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
17910
- if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
17911
- return false;
17912
- }
17913
- if (compilerOptions.resolvePackageJsonExports !== void 0) {
17914
- return compilerOptions.resolvePackageJsonExports;
17915
- }
17916
- switch (moduleResolution) {
17917
- case 3 /* Node16 */:
17918
- case 99 /* NodeNext */:
17919
- case 100 /* Bundler */:
17920
- return true;
17921
- }
17922
- return false;
17923
- }
17924
- function getResolveJsonModule(compilerOptions) {
17925
- if (compilerOptions.resolveJsonModule !== void 0) {
17926
- return compilerOptions.resolveJsonModule;
17927
- }
17928
- return getEmitModuleResolutionKind(compilerOptions) === 100 /* Bundler */;
17929
- }
17930
- function getEmitDeclarations(compilerOptions) {
17931
- return !!(compilerOptions.declaration || compilerOptions.composite);
17932
- }
17933
- function shouldPreserveConstEnums(compilerOptions) {
17934
- return !!(compilerOptions.preserveConstEnums || getIsolatedModules(compilerOptions));
17935
- }
17936
- function isIncrementalCompilation(options) {
17937
- return !!(options.incremental || options.composite);
17938
- }
17939
17843
  function getStrictOptionValue(compilerOptions, flag) {
17940
17844
  return compilerOptions[flag] === void 0 ? !!compilerOptions.strict : !!compilerOptions[flag];
17941
17845
  }
17942
- function getAllowJSCompilerOption(compilerOptions) {
17943
- return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs;
17944
- }
17945
- function getUseDefineForClassFields(compilerOptions) {
17946
- return compilerOptions.useDefineForClassFields === void 0 ? getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
17947
- }
17948
17846
  function getEmitStandardClassFields(compilerOptions) {
17949
17847
  return compilerOptions.useDefineForClassFields !== false && getEmitScriptTarget(compilerOptions) >= 9 /* ES2022 */;
17950
17848
  }
@@ -18980,7 +18878,7 @@ ${lanes.join("\n")}
18980
18878
  function replaceFirstStar(s, replacement) {
18981
18879
  return stringReplace.call(s, "*", replacement);
18982
18880
  }
18983
- var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, getScriptTargetFeatures, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashLibReferenceRegEx, fullTripleSlashAMDReferencePathRegEx, fullTripleSlashAMDModuleRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, objectAllocator, objectAllocatorPatchers, localizedDiagnosticMessages, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsNotSupportingExtensionlessResolution, ModuleSpecifierEnding, extensionsToRemove, emptyFileSystemEntries, stringReplace;
18881
+ var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, getScriptTargetFeatures, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashLibReferenceRegEx, fullTripleSlashAMDReferencePathRegEx, fullTripleSlashAMDModuleRegEx, defaultLibReferenceRegEx, AssignmentKind, FunctionFlags, Associativity, OperatorPrecedence, templateSubstitutionRegExp, doubleQuoteEscapedCharsRegExp, singleQuoteEscapedCharsRegExp, backtickQuoteEscapedCharsRegExp, escapedCharsMap, nonAsciiCharacters, jsxDoubleQuoteEscapedCharsRegExp, jsxSingleQuoteEscapedCharsRegExp, jsxEscapedCharsMap, indentStrings, base64Digits, carriageReturnLineFeed, lineFeed, objectAllocator, objectAllocatorPatchers, localizedDiagnosticMessages, computedOptions, getEmitScriptTarget, getEmitModuleKind, getEmitModuleResolutionKind, getEmitModuleDetectionKind, getIsolatedModules, getESModuleInterop, getAllowSyntheticDefaultImports, getResolvePackageJsonExports, getResolvePackageJsonImports, getResolveJsonModule, getEmitDeclarations, shouldPreserveConstEnums, isIncrementalCompilation, getAreDeclarationMapsEnabled, getAllowJSCompilerOption, getUseDefineForClassFields, reservedCharacterPattern, wildcardCharCodes, commonPackageFolders, implicitExcludePathRegexPattern, filesMatcher, directoriesMatcher, excludeMatcher, wildcardMatchers, supportedTSExtensions, supportedTSExtensionsFlat, supportedTSExtensionsWithJson, supportedTSExtensionsForExtractExtension, supportedJSExtensions, supportedJSExtensionsFlat, allSupportedExtensions, allSupportedExtensionsWithJson, supportedDeclarationExtensions, supportedTSImplementationExtensions, extensionsNotSupportingExtensionlessResolution, ModuleSpecifierEnding, extensionsToRemove, emptyFileSystemEntries, stringReplace;
18984
18882
  var init_utilities = __esm({
18985
18883
  "src/compiler/utilities.ts"() {
18986
18884
  "use strict";
@@ -19494,6 +19392,225 @@ ${lanes.join("\n")}
19494
19392
  getSourceMapSourceConstructor: () => SourceMapSource
19495
19393
  };
19496
19394
  objectAllocatorPatchers = [];
19395
+ computedOptions = createComputedCompilerOptions({
19396
+ target: {
19397
+ dependencies: ["module"],
19398
+ computeValue: (compilerOptions) => {
19399
+ return compilerOptions.target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
19400
+ }
19401
+ },
19402
+ module: {
19403
+ dependencies: ["target"],
19404
+ computeValue: (compilerOptions) => {
19405
+ return typeof compilerOptions.module === "number" ? compilerOptions.module : computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
19406
+ }
19407
+ },
19408
+ moduleResolution: {
19409
+ dependencies: ["module", "target"],
19410
+ computeValue: (compilerOptions) => {
19411
+ let moduleResolution = compilerOptions.moduleResolution;
19412
+ if (moduleResolution === void 0) {
19413
+ switch (computedOptions.module.computeValue(compilerOptions)) {
19414
+ case 1 /* CommonJS */:
19415
+ moduleResolution = 2 /* Node10 */;
19416
+ break;
19417
+ case 100 /* Node16 */:
19418
+ moduleResolution = 3 /* Node16 */;
19419
+ break;
19420
+ case 199 /* NodeNext */:
19421
+ moduleResolution = 99 /* NodeNext */;
19422
+ break;
19423
+ default:
19424
+ moduleResolution = 1 /* Classic */;
19425
+ break;
19426
+ }
19427
+ }
19428
+ return moduleResolution;
19429
+ }
19430
+ },
19431
+ moduleDetection: {
19432
+ dependencies: ["module", "target"],
19433
+ computeValue: (compilerOptions) => {
19434
+ return compilerOptions.moduleDetection || (computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
19435
+ }
19436
+ },
19437
+ isolatedModules: {
19438
+ dependencies: ["verbatimModuleSyntax"],
19439
+ computeValue: (compilerOptions) => {
19440
+ return !!(compilerOptions.isolatedModules || compilerOptions.verbatimModuleSyntax);
19441
+ }
19442
+ },
19443
+ esModuleInterop: {
19444
+ dependencies: ["module", "target"],
19445
+ computeValue: (compilerOptions) => {
19446
+ if (compilerOptions.esModuleInterop !== void 0) {
19447
+ return compilerOptions.esModuleInterop;
19448
+ }
19449
+ switch (computedOptions.module.computeValue(compilerOptions)) {
19450
+ case 100 /* Node16 */:
19451
+ case 199 /* NodeNext */:
19452
+ return true;
19453
+ }
19454
+ return false;
19455
+ }
19456
+ },
19457
+ allowSyntheticDefaultImports: {
19458
+ dependencies: ["module", "target", "moduleResolution"],
19459
+ computeValue: (compilerOptions) => {
19460
+ if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
19461
+ return compilerOptions.allowSyntheticDefaultImports;
19462
+ }
19463
+ return computedOptions.esModuleInterop.computeValue(compilerOptions) || computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
19464
+ }
19465
+ },
19466
+ resolvePackageJsonExports: {
19467
+ dependencies: ["moduleResolution"],
19468
+ computeValue: (compilerOptions) => {
19469
+ const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
19470
+ if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
19471
+ return false;
19472
+ }
19473
+ if (compilerOptions.resolvePackageJsonExports !== void 0) {
19474
+ return compilerOptions.resolvePackageJsonExports;
19475
+ }
19476
+ switch (moduleResolution) {
19477
+ case 3 /* Node16 */:
19478
+ case 99 /* NodeNext */:
19479
+ case 100 /* Bundler */:
19480
+ return true;
19481
+ }
19482
+ return false;
19483
+ }
19484
+ },
19485
+ resolvePackageJsonImports: {
19486
+ dependencies: ["moduleResolution", "resolvePackageJsonExports"],
19487
+ computeValue: (compilerOptions) => {
19488
+ const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
19489
+ if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
19490
+ return false;
19491
+ }
19492
+ if (compilerOptions.resolvePackageJsonExports !== void 0) {
19493
+ return compilerOptions.resolvePackageJsonExports;
19494
+ }
19495
+ switch (moduleResolution) {
19496
+ case 3 /* Node16 */:
19497
+ case 99 /* NodeNext */:
19498
+ case 100 /* Bundler */:
19499
+ return true;
19500
+ }
19501
+ return false;
19502
+ }
19503
+ },
19504
+ resolveJsonModule: {
19505
+ dependencies: ["moduleResolution", "module", "target"],
19506
+ computeValue: (compilerOptions) => {
19507
+ if (compilerOptions.resolveJsonModule !== void 0) {
19508
+ return compilerOptions.resolveJsonModule;
19509
+ }
19510
+ return computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
19511
+ }
19512
+ },
19513
+ declaration: {
19514
+ dependencies: ["composite"],
19515
+ computeValue: (compilerOptions) => {
19516
+ return !!(compilerOptions.declaration || compilerOptions.composite);
19517
+ }
19518
+ },
19519
+ preserveConstEnums: {
19520
+ dependencies: ["isolatedModules", "verbatimModuleSyntax"],
19521
+ computeValue: (compilerOptions) => {
19522
+ return !!(compilerOptions.preserveConstEnums || computedOptions.isolatedModules.computeValue(compilerOptions));
19523
+ }
19524
+ },
19525
+ incremental: {
19526
+ dependencies: ["composite"],
19527
+ computeValue: (compilerOptions) => {
19528
+ return !!(compilerOptions.incremental || compilerOptions.composite);
19529
+ }
19530
+ },
19531
+ declarationMap: {
19532
+ dependencies: ["declaration", "composite"],
19533
+ computeValue: (compilerOptions) => {
19534
+ return !!(compilerOptions.declarationMap && computedOptions.declaration.computeValue(compilerOptions));
19535
+ }
19536
+ },
19537
+ allowJs: {
19538
+ dependencies: ["checkJs"],
19539
+ computeValue: (compilerOptions) => {
19540
+ return compilerOptions.allowJs === void 0 ? !!compilerOptions.checkJs : compilerOptions.allowJs;
19541
+ }
19542
+ },
19543
+ useDefineForClassFields: {
19544
+ dependencies: ["target", "module"],
19545
+ computeValue: (compilerOptions) => {
19546
+ return compilerOptions.useDefineForClassFields === void 0 ? computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
19547
+ }
19548
+ },
19549
+ noImplicitAny: {
19550
+ dependencies: ["strict"],
19551
+ computeValue: (compilerOptions) => {
19552
+ return getStrictOptionValue(compilerOptions, "noImplicitAny");
19553
+ }
19554
+ },
19555
+ noImplicitThis: {
19556
+ dependencies: ["strict"],
19557
+ computeValue: (compilerOptions) => {
19558
+ return getStrictOptionValue(compilerOptions, "noImplicitThis");
19559
+ }
19560
+ },
19561
+ strictNullChecks: {
19562
+ dependencies: ["strict"],
19563
+ computeValue: (compilerOptions) => {
19564
+ return getStrictOptionValue(compilerOptions, "strictNullChecks");
19565
+ }
19566
+ },
19567
+ strictFunctionTypes: {
19568
+ dependencies: ["strict"],
19569
+ computeValue: (compilerOptions) => {
19570
+ return getStrictOptionValue(compilerOptions, "strictFunctionTypes");
19571
+ }
19572
+ },
19573
+ strictBindCallApply: {
19574
+ dependencies: ["strict"],
19575
+ computeValue: (compilerOptions) => {
19576
+ return getStrictOptionValue(compilerOptions, "strictBindCallApply");
19577
+ }
19578
+ },
19579
+ strictPropertyInitialization: {
19580
+ dependencies: ["strict"],
19581
+ computeValue: (compilerOptions) => {
19582
+ return getStrictOptionValue(compilerOptions, "strictPropertyInitialization");
19583
+ }
19584
+ },
19585
+ alwaysStrict: {
19586
+ dependencies: ["strict"],
19587
+ computeValue: (compilerOptions) => {
19588
+ return getStrictOptionValue(compilerOptions, "alwaysStrict");
19589
+ }
19590
+ },
19591
+ useUnknownInCatchVariables: {
19592
+ dependencies: ["strict"],
19593
+ computeValue: (compilerOptions) => {
19594
+ return getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
19595
+ }
19596
+ }
19597
+ });
19598
+ getEmitScriptTarget = computedOptions.target.computeValue;
19599
+ getEmitModuleKind = computedOptions.module.computeValue;
19600
+ getEmitModuleResolutionKind = computedOptions.moduleResolution.computeValue;
19601
+ getEmitModuleDetectionKind = computedOptions.moduleDetection.computeValue;
19602
+ getIsolatedModules = computedOptions.isolatedModules.computeValue;
19603
+ getESModuleInterop = computedOptions.esModuleInterop.computeValue;
19604
+ getAllowSyntheticDefaultImports = computedOptions.allowSyntheticDefaultImports.computeValue;
19605
+ getResolvePackageJsonExports = computedOptions.resolvePackageJsonExports.computeValue;
19606
+ getResolvePackageJsonImports = computedOptions.resolvePackageJsonImports.computeValue;
19607
+ getResolveJsonModule = computedOptions.resolveJsonModule.computeValue;
19608
+ getEmitDeclarations = computedOptions.declaration.computeValue;
19609
+ shouldPreserveConstEnums = computedOptions.preserveConstEnums.computeValue;
19610
+ isIncrementalCompilation = computedOptions.incremental.computeValue;
19611
+ getAreDeclarationMapsEnabled = computedOptions.declarationMap.computeValue;
19612
+ getAllowJSCompilerOption = computedOptions.allowJs.computeValue;
19613
+ getUseDefineForClassFields = computedOptions.useDefineForClassFields.computeValue;
19497
19614
  reservedCharacterPattern = /[^\w\s/]/g;
19498
19615
  wildcardCharCodes = [42 /* asterisk */, 63 /* question */];
19499
19616
  commonPackageFolders = ["node_modules", "bower_components", "jspm_packages"];
@@ -36640,7 +36757,8 @@ ${lanes.join("\n")}
36640
36757
  ),
36641
36758
  (f) => getRelativePathFromFile(getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName)
36642
36759
  );
36643
- const optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });
36760
+ const pathOptions = { configFilePath: getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames };
36761
+ const optionMap = serializeCompilerOptions(configParseResult.options, pathOptions);
36644
36762
  const watchOptionMap = configParseResult.watchOptions && serializeWatchOptions(configParseResult.watchOptions);
36645
36763
  const config = {
36646
36764
  compilerOptions: {
@@ -36665,6 +36783,18 @@ ${lanes.join("\n")}
36665
36783
  } : {},
36666
36784
  compileOnSave: !!configParseResult.compileOnSave ? true : void 0
36667
36785
  };
36786
+ const providedKeys = new Set(optionMap.keys());
36787
+ const impliedCompilerOptions = {};
36788
+ for (const option in computedOptions) {
36789
+ if (!providedKeys.has(option) && some(computedOptions[option].dependencies, (dep) => providedKeys.has(dep))) {
36790
+ const implied = computedOptions[option].computeValue(configParseResult.options);
36791
+ const defaultValue = computedOptions[option].computeValue({});
36792
+ if (implied !== defaultValue) {
36793
+ impliedCompilerOptions[option] = computedOptions[option].computeValue(configParseResult.options);
36794
+ }
36795
+ }
36796
+ }
36797
+ assign(config.compilerOptions, optionMapToObject(serializeCompilerOptions(impliedCompilerOptions, pathOptions)));
36668
36798
  return config;
36669
36799
  }
36670
36800
  function optionMapToObject(optionMap) {
@@ -60794,7 +60924,9 @@ ${lanes.join("\n")}
60794
60924
  if (checkType === wildcardType || extendsType === wildcardType) {
60795
60925
  return wildcardType;
60796
60926
  }
60797
- const checkTuples = isSimpleTupleType(root.node.checkType) && isSimpleTupleType(root.node.extendsType) && length(root.node.checkType.elements) === length(root.node.extendsType.elements);
60927
+ const checkTypeNode = skipTypeParentheses(root.node.checkType);
60928
+ const extendsTypeNode = skipTypeParentheses(root.node.extendsType);
60929
+ const checkTuples = isSimpleTupleType(checkTypeNode) && isSimpleTupleType(extendsTypeNode) && length(checkTypeNode.elements) === length(extendsTypeNode.elements);
60798
60930
  const checkTypeDeferred = isDeferredType(checkType, checkTuples);
60799
60931
  let combinedMapper;
60800
60932
  if (root.inferTypeParameters) {
@@ -158980,7 +159112,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158980
159112
  }
158981
159113
  const semanticStart = timestamp();
158982
159114
  let completionKind = 5 /* None */;
158983
- let isNonContextualObjectLiteral = false;
158984
159115
  let hasUnresolvedAutoImports = false;
158985
159116
  let symbols = [];
158986
159117
  let importSpecifierResolver;
@@ -159340,8 +159471,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159340
159471
  function shouldOfferImportCompletions() {
159341
159472
  if (importStatementCompletion)
159342
159473
  return true;
159343
- if (isNonContextualObjectLiteral)
159344
- return false;
159345
159474
  if (!preferences.includeCompletionsForModuleExports)
159346
159475
  return false;
159347
159476
  if (sourceFile.externalModuleIndicator || sourceFile.commonJsModuleIndicator)
@@ -159644,7 +159773,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159644
159773
  if (objectLikeContainer.flags & 67108864 /* InWithStatement */) {
159645
159774
  return 2 /* Fail */;
159646
159775
  }
159647
- isNonContextualObjectLiteral = true;
159648
159776
  return 0 /* Continue */;
159649
159777
  }
159650
159778
  const completionsType = typeChecker.getContextualType(objectLikeContainer, 4 /* Completions */);
@@ -159655,7 +159783,6 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159655
159783
  existingMembers = objectLikeContainer.properties;
159656
159784
  if (typeMembers.length === 0) {
159657
159785
  if (!hasNumberIndextype) {
159658
- isNonContextualObjectLiteral = true;
159659
159786
  return 0 /* Continue */;
159660
159787
  }
159661
159788
  }
@@ -167022,16 +167149,16 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
167022
167149
  if (!moduleSourceFile)
167023
167150
  return void 0;
167024
167151
  const withoutIndex = endsWith(node.text, "/index") || endsWith(node.text, "/index.js") ? void 0 : tryRemoveSuffix(removeFileExtension(moduleSourceFile.fileName), "/index");
167025
- const name = withoutIndex === void 0 ? moduleSourceFile.fileName : withoutIndex;
167152
+ const fileName = withoutIndex === void 0 ? moduleSourceFile.fileName : withoutIndex;
167026
167153
  const kind = withoutIndex === void 0 ? "module" /* moduleElement */ : "directory" /* directory */;
167027
167154
  const indexAfterLastSlash = node.text.lastIndexOf("/") + 1;
167028
167155
  const triggerSpan = createTextSpan(node.getStart(sourceFile) + 1 + indexAfterLastSlash, node.text.length - indexAfterLastSlash);
167029
167156
  return {
167030
167157
  canRename: true,
167031
- fileToRename: name,
167158
+ fileToRename: fileName,
167032
167159
  kind,
167033
- displayName: name,
167034
- fullDisplayName: name,
167160
+ displayName: fileName,
167161
+ fullDisplayName: node.text,
167035
167162
  kindModifiers: "" /* none */,
167036
167163
  triggerSpan
167037
167164
  };
@@ -185017,6 +185144,7 @@ ${e.message}`;
185017
185144
  computeSignature: () => computeSignature,
185018
185145
  computeSignatureWithDiagnostics: () => computeSignatureWithDiagnostics,
185019
185146
  computeSuggestionDiagnostics: () => computeSuggestionDiagnostics,
185147
+ computedOptions: () => computedOptions,
185020
185148
  concatenate: () => concatenate,
185021
185149
  concatenateDiagnosticMessageChains: () => concatenateDiagnosticMessageChains,
185022
185150
  consumesNodeCoreModules: () => consumesNodeCoreModules,
@@ -187432,6 +187560,7 @@ ${e.message}`;
187432
187560
  computeSignature: () => computeSignature,
187433
187561
  computeSignatureWithDiagnostics: () => computeSignatureWithDiagnostics,
187434
187562
  computeSuggestionDiagnostics: () => computeSuggestionDiagnostics,
187563
+ computedOptions: () => computedOptions,
187435
187564
  concatenate: () => concatenate,
187436
187565
  concatenateDiagnosticMessageChains: () => concatenateDiagnosticMessageChains,
187437
187566
  consumesNodeCoreModules: () => consumesNodeCoreModules,