typescript 5.1.0-dev.20230410 → 5.1.0-dev.20230412

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/lib.es5.d.ts CHANGED
@@ -1832,7 +1832,7 @@ interface DataView {
1832
1832
 
1833
1833
  interface DataViewConstructor {
1834
1834
  readonly prototype: DataView;
1835
- new(buffer: ArrayBufferLike, byteOffset?: number, byteLength?: number): DataView;
1835
+ new(buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never }, byteOffset?: number, byteLength?: number): DataView;
1836
1836
  }
1837
1837
  declare var DataView: DataViewConstructor;
1838
1838
 
package/lib/tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.1";
21
- var version = `${versionMajorMinor}.0-dev.20230410`;
21
+ var version = `${versionMajorMinor}.0-dev.20230412`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -11570,7 +11570,7 @@ function insertStatementAfterCustomPrologue(to, statement) {
11570
11570
  function isRecognizedTripleSlashComment(text, commentPos, commentEnd) {
11571
11571
  if (text.charCodeAt(commentPos + 1) === 47 /* slash */ && commentPos + 2 < commentEnd && text.charCodeAt(commentPos + 2) === 47 /* slash */) {
11572
11572
  const textSubStr = text.substring(commentPos, commentEnd);
11573
- return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;
11573
+ return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDModuleRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || fullTripleSlashLibReferenceRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;
11574
11574
  }
11575
11575
  return false;
11576
11576
  }
@@ -12544,7 +12544,9 @@ function getJSDocCommentRanges(node, text) {
12544
12544
  }
12545
12545
  var fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
12546
12546
  var fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
12547
+ var fullTripleSlashLibReferenceRegEx = /^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
12547
12548
  var fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
12549
+ var fullTripleSlashAMDModuleRegEx = /^\/\/\/\s*<amd-module\s+.*?\/>/;
12548
12550
  var defaultLibReferenceRegEx = /^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;
12549
12551
  function isPartOfTypeNode(node) {
12550
12552
  if (181 /* FirstTypeNode */ <= node.kind && node.kind <= 204 /* LastTypeNode */) {
@@ -43405,6 +43407,8 @@ function createTypeChecker(host) {
43405
43407
  var resolutionTargets = [];
43406
43408
  var resolutionResults = [];
43407
43409
  var resolutionPropertyNames = [];
43410
+ var resolutionStart = 0;
43411
+ var inVarianceComputation = false;
43408
43412
  var suggestionCount = 0;
43409
43413
  var maximumSuggestionCount = 10;
43410
43414
  var mergedSymbols = [];
@@ -50605,7 +50609,7 @@ function createTypeChecker(host) {
50605
50609
  return true;
50606
50610
  }
50607
50611
  function findResolutionCycleStartIndex(target, propertyName) {
50608
- for (let i = resolutionTargets.length - 1; i >= 0; i--) {
50612
+ for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) {
50609
50613
  if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
50610
50614
  return -1;
50611
50615
  }
@@ -61641,6 +61645,11 @@ function createTypeChecker(host) {
61641
61645
  const links = getSymbolLinks(symbol);
61642
61646
  if (!links.variances) {
61643
61647
  (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });
61648
+ const oldVarianceComputation = inVarianceComputation;
61649
+ if (!inVarianceComputation) {
61650
+ inVarianceComputation = true;
61651
+ resolutionStart = resolutionTargets.length;
61652
+ }
61644
61653
  links.variances = emptyArray;
61645
61654
  const variances = [];
61646
61655
  for (const tp of typeParameters) {
@@ -61669,6 +61678,10 @@ function createTypeChecker(host) {
61669
61678
  }
61670
61679
  variances.push(variance);
61671
61680
  }
61681
+ if (!oldVarianceComputation) {
61682
+ inVarianceComputation = false;
61683
+ resolutionStart = 0;
61684
+ }
61672
61685
  links.variances = variances;
61673
61686
  (_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) });
61674
61687
  }
@@ -65820,12 +65833,14 @@ function createTypeChecker(host) {
65820
65833
  const isOuterVariable = flowContainer !== declarationContainer;
65821
65834
  const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);
65822
65835
  const isModuleExports = symbol.flags & 134217728 /* ModuleExports */;
65836
+ const typeIsAutomatic = type === autoType || type === autoArrayType;
65837
+ const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 234 /* NonNullExpression */;
65823
65838
  while (flowContainer !== declarationContainer && (flowContainer.kind === 217 /* FunctionExpression */ || flowContainer.kind === 218 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {
65824
65839
  flowContainer = getControlFlowContainer(flowContainer);
65825
65840
  }
65826
65841
  const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 280 /* ExportSpecifier */) || node.parent.kind === 234 /* NonNullExpression */ || declaration.kind === 259 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
65827
- const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);
65828
- const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);
65842
+ const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type);
65843
+ const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer);
65829
65844
  if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {
65830
65845
  if (flowType === autoType || flowType === autoArrayType) {
65831
65846
  if (noImplicitAny) {
@@ -90603,6 +90618,8 @@ function transformESDecorators(context) {
90603
90618
  endLexicalEnvironment,
90604
90619
  hoistVariableDeclaration
90605
90620
  } = context;
90621
+ const compilerOptions = context.getCompilerOptions();
90622
+ const languageVersion = getEmitScriptTarget(compilerOptions);
90606
90623
  let top;
90607
90624
  let classInfo;
90608
90625
  let classThis;
@@ -91276,8 +91293,21 @@ function transformESDecorators(context) {
91276
91293
  Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name.");
91277
91294
  const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name));
91278
91295
  const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);
91296
+ const declName = languageVersion <= 2 /* ES2015 */ ? factory2.getInternalName(
91297
+ node,
91298
+ /*allowComments*/
91299
+ false,
91300
+ /*allowSourceMaps*/
91301
+ true
91302
+ ) : factory2.getLocalName(
91303
+ node,
91304
+ /*allowComments*/
91305
+ false,
91306
+ /*allowSourceMaps*/
91307
+ true
91308
+ );
91279
91309
  const varDecl = factory2.createVariableDeclaration(
91280
- node.name,
91310
+ declName,
91281
91311
  /*exclamationToken*/
91282
91312
  void 0,
91283
91313
  /*type*/
package/lib/tsserver.js CHANGED
@@ -2293,7 +2293,7 @@ module.exports = __toCommonJS(server_exports);
2293
2293
 
2294
2294
  // src/compiler/corePublic.ts
2295
2295
  var versionMajorMinor = "5.1";
2296
- var version = `${versionMajorMinor}.0-dev.20230410`;
2296
+ var version = `${versionMajorMinor}.0-dev.20230412`;
2297
2297
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2298
2298
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2299
2299
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -15309,7 +15309,7 @@ function insertStatementAfterCustomPrologue(to, statement) {
15309
15309
  function isRecognizedTripleSlashComment(text, commentPos, commentEnd) {
15310
15310
  if (text.charCodeAt(commentPos + 1) === 47 /* slash */ && commentPos + 2 < commentEnd && text.charCodeAt(commentPos + 2) === 47 /* slash */) {
15311
15311
  const textSubStr = text.substring(commentPos, commentEnd);
15312
- return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;
15312
+ return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDModuleRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || fullTripleSlashLibReferenceRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;
15313
15313
  }
15314
15314
  return false;
15315
15315
  }
@@ -16344,7 +16344,9 @@ function getJSDocCommentRanges(node, text) {
16344
16344
  }
16345
16345
  var fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
16346
16346
  var fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
16347
+ var fullTripleSlashLibReferenceRegEx = /^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
16347
16348
  var fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
16349
+ var fullTripleSlashAMDModuleRegEx = /^\/\/\/\s*<amd-module\s+.*?\/>/;
16348
16350
  var defaultLibReferenceRegEx = /^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;
16349
16351
  function isPartOfTypeNode(node) {
16350
16352
  if (181 /* FirstTypeNode */ <= node.kind && node.kind <= 204 /* LastTypeNode */) {
@@ -48055,6 +48057,8 @@ function createTypeChecker(host) {
48055
48057
  var resolutionTargets = [];
48056
48058
  var resolutionResults = [];
48057
48059
  var resolutionPropertyNames = [];
48060
+ var resolutionStart = 0;
48061
+ var inVarianceComputation = false;
48058
48062
  var suggestionCount = 0;
48059
48063
  var maximumSuggestionCount = 10;
48060
48064
  var mergedSymbols = [];
@@ -55255,7 +55259,7 @@ function createTypeChecker(host) {
55255
55259
  return true;
55256
55260
  }
55257
55261
  function findResolutionCycleStartIndex(target, propertyName) {
55258
- for (let i = resolutionTargets.length - 1; i >= 0; i--) {
55262
+ for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) {
55259
55263
  if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
55260
55264
  return -1;
55261
55265
  }
@@ -66291,6 +66295,11 @@ function createTypeChecker(host) {
66291
66295
  const links = getSymbolLinks(symbol);
66292
66296
  if (!links.variances) {
66293
66297
  (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });
66298
+ const oldVarianceComputation = inVarianceComputation;
66299
+ if (!inVarianceComputation) {
66300
+ inVarianceComputation = true;
66301
+ resolutionStart = resolutionTargets.length;
66302
+ }
66294
66303
  links.variances = emptyArray;
66295
66304
  const variances = [];
66296
66305
  for (const tp of typeParameters) {
@@ -66319,6 +66328,10 @@ function createTypeChecker(host) {
66319
66328
  }
66320
66329
  variances.push(variance);
66321
66330
  }
66331
+ if (!oldVarianceComputation) {
66332
+ inVarianceComputation = false;
66333
+ resolutionStart = 0;
66334
+ }
66322
66335
  links.variances = variances;
66323
66336
  (_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) });
66324
66337
  }
@@ -70470,12 +70483,14 @@ function createTypeChecker(host) {
70470
70483
  const isOuterVariable = flowContainer !== declarationContainer;
70471
70484
  const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);
70472
70485
  const isModuleExports = symbol.flags & 134217728 /* ModuleExports */;
70486
+ const typeIsAutomatic = type === autoType || type === autoArrayType;
70487
+ const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 234 /* NonNullExpression */;
70473
70488
  while (flowContainer !== declarationContainer && (flowContainer.kind === 217 /* FunctionExpression */ || flowContainer.kind === 218 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {
70474
70489
  flowContainer = getControlFlowContainer(flowContainer);
70475
70490
  }
70476
70491
  const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 280 /* ExportSpecifier */) || node.parent.kind === 234 /* NonNullExpression */ || declaration.kind === 259 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
70477
- const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);
70478
- const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);
70492
+ const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type);
70493
+ const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer);
70479
70494
  if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {
70480
70495
  if (flowType === autoType || flowType === autoArrayType) {
70481
70496
  if (noImplicitAny) {
@@ -95424,6 +95439,8 @@ function transformESDecorators(context) {
95424
95439
  endLexicalEnvironment,
95425
95440
  hoistVariableDeclaration
95426
95441
  } = context;
95442
+ const compilerOptions = context.getCompilerOptions();
95443
+ const languageVersion = getEmitScriptTarget(compilerOptions);
95427
95444
  let top;
95428
95445
  let classInfo;
95429
95446
  let classThis;
@@ -96097,8 +96114,21 @@ function transformESDecorators(context) {
96097
96114
  Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name.");
96098
96115
  const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name));
96099
96116
  const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);
96117
+ const declName = languageVersion <= 2 /* ES2015 */ ? factory2.getInternalName(
96118
+ node,
96119
+ /*allowComments*/
96120
+ false,
96121
+ /*allowSourceMaps*/
96122
+ true
96123
+ ) : factory2.getLocalName(
96124
+ node,
96125
+ /*allowComments*/
96126
+ false,
96127
+ /*allowSourceMaps*/
96128
+ true
96129
+ );
96100
96130
  const varDecl = factory2.createVariableDeclaration(
96101
- node.name,
96131
+ declName,
96102
96132
  /*exclamationToken*/
96103
96133
  void 0,
96104
96134
  /*type*/
@@ -146821,6 +146851,9 @@ function inferTypeFromReferences(program, references, cancellationToken) {
146821
146851
  case 37 /* EqualsEqualsEqualsToken */:
146822
146852
  case 38 /* ExclamationEqualsEqualsToken */:
146823
146853
  case 36 /* ExclamationEqualsToken */:
146854
+ case 77 /* AmpersandAmpersandEqualsToken */:
146855
+ case 78 /* QuestionQuestionEqualsToken */:
146856
+ case 76 /* BarBarEqualsToken */:
146824
146857
  addCandidateType(usage, checker.getTypeAtLocation(parent2.left === node ? parent2.right : parent2.left));
146825
146858
  break;
146826
146859
  case 103 /* InKeyword */:
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.1";
38
- version = `${versionMajorMinor}.0-dev.20230410`;
38
+ version = `${versionMajorMinor}.0-dev.20230412`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -13136,7 +13136,7 @@ ${lanes.join("\n")}
13136
13136
  function isRecognizedTripleSlashComment(text, commentPos, commentEnd) {
13137
13137
  if (text.charCodeAt(commentPos + 1) === 47 /* slash */ && commentPos + 2 < commentEnd && text.charCodeAt(commentPos + 2) === 47 /* slash */) {
13138
13138
  const textSubStr = text.substring(commentPos, commentEnd);
13139
- return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;
13139
+ return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDModuleRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || fullTripleSlashLibReferenceRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;
13140
13140
  }
13141
13141
  return false;
13142
13142
  }
@@ -19111,7 +19111,7 @@ ${lanes.join("\n")}
19111
19111
  const tag = getJSDocSatisfiesTag(node);
19112
19112
  return tag && tag.typeExpression && tag.typeExpression.type;
19113
19113
  }
19114
- var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, 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;
19114
+ var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, 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;
19115
19115
  var init_utilities = __esm({
19116
19116
  "src/compiler/utilities.ts"() {
19117
19117
  "use strict";
@@ -19131,7 +19131,9 @@ ${lanes.join("\n")}
19131
19131
  })(GetLiteralTextFlags || {});
19132
19132
  fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
19133
19133
  fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
19134
+ fullTripleSlashLibReferenceRegEx = /^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
19134
19135
  fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
19136
+ fullTripleSlashAMDModuleRegEx = /^\/\/\/\s*<amd-module\s+.*?\/>/;
19135
19137
  defaultLibReferenceRegEx = /^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;
19136
19138
  AssignmentKind = /* @__PURE__ */ ((AssignmentKind2) => {
19137
19139
  AssignmentKind2[AssignmentKind2["None"] = 0] = "None";
@@ -45856,6 +45858,8 @@ ${lanes.join("\n")}
45856
45858
  var resolutionTargets = [];
45857
45859
  var resolutionResults = [];
45858
45860
  var resolutionPropertyNames = [];
45861
+ var resolutionStart = 0;
45862
+ var inVarianceComputation = false;
45859
45863
  var suggestionCount = 0;
45860
45864
  var maximumSuggestionCount = 10;
45861
45865
  var mergedSymbols = [];
@@ -53056,7 +53060,7 @@ ${lanes.join("\n")}
53056
53060
  return true;
53057
53061
  }
53058
53062
  function findResolutionCycleStartIndex(target, propertyName) {
53059
- for (let i = resolutionTargets.length - 1; i >= 0; i--) {
53063
+ for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) {
53060
53064
  if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
53061
53065
  return -1;
53062
53066
  }
@@ -64092,6 +64096,11 @@ ${lanes.join("\n")}
64092
64096
  const links = getSymbolLinks(symbol);
64093
64097
  if (!links.variances) {
64094
64098
  (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });
64099
+ const oldVarianceComputation = inVarianceComputation;
64100
+ if (!inVarianceComputation) {
64101
+ inVarianceComputation = true;
64102
+ resolutionStart = resolutionTargets.length;
64103
+ }
64095
64104
  links.variances = emptyArray;
64096
64105
  const variances = [];
64097
64106
  for (const tp of typeParameters) {
@@ -64120,6 +64129,10 @@ ${lanes.join("\n")}
64120
64129
  }
64121
64130
  variances.push(variance);
64122
64131
  }
64132
+ if (!oldVarianceComputation) {
64133
+ inVarianceComputation = false;
64134
+ resolutionStart = 0;
64135
+ }
64123
64136
  links.variances = variances;
64124
64137
  (_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) });
64125
64138
  }
@@ -68271,12 +68284,14 @@ ${lanes.join("\n")}
68271
68284
  const isOuterVariable = flowContainer !== declarationContainer;
68272
68285
  const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);
68273
68286
  const isModuleExports = symbol.flags & 134217728 /* ModuleExports */;
68287
+ const typeIsAutomatic = type === autoType || type === autoArrayType;
68288
+ const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 234 /* NonNullExpression */;
68274
68289
  while (flowContainer !== declarationContainer && (flowContainer.kind === 217 /* FunctionExpression */ || flowContainer.kind === 218 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {
68275
68290
  flowContainer = getControlFlowContainer(flowContainer);
68276
68291
  }
68277
68292
  const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 280 /* ExportSpecifier */) || node.parent.kind === 234 /* NonNullExpression */ || declaration.kind === 259 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
68278
- const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);
68279
- const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);
68293
+ const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type);
68294
+ const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer);
68280
68295
  if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {
68281
68296
  if (flowType === autoType || flowType === autoArrayType) {
68282
68297
  if (noImplicitAny) {
@@ -93418,6 +93433,8 @@ ${lanes.join("\n")}
93418
93433
  endLexicalEnvironment,
93419
93434
  hoistVariableDeclaration
93420
93435
  } = context;
93436
+ const compilerOptions = context.getCompilerOptions();
93437
+ const languageVersion = getEmitScriptTarget(compilerOptions);
93421
93438
  let top;
93422
93439
  let classInfo;
93423
93440
  let classThis;
@@ -94091,8 +94108,21 @@ ${lanes.join("\n")}
94091
94108
  Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name.");
94092
94109
  const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name));
94093
94110
  const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);
94111
+ const declName = languageVersion <= 2 /* ES2015 */ ? factory2.getInternalName(
94112
+ node,
94113
+ /*allowComments*/
94114
+ false,
94115
+ /*allowSourceMaps*/
94116
+ true
94117
+ ) : factory2.getLocalName(
94118
+ node,
94119
+ /*allowComments*/
94120
+ false,
94121
+ /*allowSourceMaps*/
94122
+ true
94123
+ );
94094
94124
  const varDecl = factory2.createVariableDeclaration(
94095
- node.name,
94125
+ declName,
94096
94126
  /*exclamationToken*/
94097
94127
  void 0,
94098
94128
  /*type*/
@@ -145599,6 +145629,9 @@ ${lanes.join("\n")}
145599
145629
  case 37 /* EqualsEqualsEqualsToken */:
145600
145630
  case 38 /* ExclamationEqualsEqualsToken */:
145601
145631
  case 36 /* ExclamationEqualsToken */:
145632
+ case 77 /* AmpersandAmpersandEqualsToken */:
145633
+ case 78 /* QuestionQuestionEqualsToken */:
145634
+ case 76 /* BarBarEqualsToken */:
145602
145635
  addCandidateType(usage, checker.getTypeAtLocation(parent2.left === node ? parent2.right : parent2.left));
145603
145636
  break;
145604
145637
  case 103 /* InKeyword */:
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.1";
38
- version = `${versionMajorMinor}.0-dev.20230410`;
38
+ version = `${versionMajorMinor}.0-dev.20230412`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -13136,7 +13136,7 @@ ${lanes.join("\n")}
13136
13136
  function isRecognizedTripleSlashComment(text, commentPos, commentEnd) {
13137
13137
  if (text.charCodeAt(commentPos + 1) === 47 /* slash */ && commentPos + 2 < commentEnd && text.charCodeAt(commentPos + 2) === 47 /* slash */) {
13138
13138
  const textSubStr = text.substring(commentPos, commentEnd);
13139
- return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;
13139
+ return fullTripleSlashReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDReferencePathRegEx.test(textSubStr) || fullTripleSlashAMDModuleRegEx.test(textSubStr) || fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) || fullTripleSlashLibReferenceRegEx.test(textSubStr) || defaultLibReferenceRegEx.test(textSubStr) ? true : false;
13140
13140
  }
13141
13141
  return false;
13142
13142
  }
@@ -19111,7 +19111,7 @@ ${lanes.join("\n")}
19111
19111
  const tag = getJSDocSatisfiesTag(node);
19112
19112
  return tag && tag.typeExpression && tag.typeExpression.type;
19113
19113
  }
19114
- var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, GetLiteralTextFlags, fullTripleSlashReferencePathRegEx, fullTripleSlashReferenceTypeReferenceDirectiveRegEx, fullTripleSlashAMDReferencePathRegEx, 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;
19114
+ var resolvingEmptyArray, externalHelpersModuleNameText, defaultMaximumTruncationLength, noTruncationMaximumTruncationLength, stringWriter, 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;
19115
19115
  var init_utilities = __esm({
19116
19116
  "src/compiler/utilities.ts"() {
19117
19117
  "use strict";
@@ -19131,7 +19131,9 @@ ${lanes.join("\n")}
19131
19131
  })(GetLiteralTextFlags || {});
19132
19132
  fullTripleSlashReferencePathRegEx = /^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
19133
19133
  fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
19134
+ fullTripleSlashLibReferenceRegEx = /^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
19134
19135
  fullTripleSlashAMDReferencePathRegEx = /^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/;
19136
+ fullTripleSlashAMDModuleRegEx = /^\/\/\/\s*<amd-module\s+.*?\/>/;
19135
19137
  defaultLibReferenceRegEx = /^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/;
19136
19138
  AssignmentKind = /* @__PURE__ */ ((AssignmentKind2) => {
19137
19139
  AssignmentKind2[AssignmentKind2["None"] = 0] = "None";
@@ -45856,6 +45858,8 @@ ${lanes.join("\n")}
45856
45858
  var resolutionTargets = [];
45857
45859
  var resolutionResults = [];
45858
45860
  var resolutionPropertyNames = [];
45861
+ var resolutionStart = 0;
45862
+ var inVarianceComputation = false;
45859
45863
  var suggestionCount = 0;
45860
45864
  var maximumSuggestionCount = 10;
45861
45865
  var mergedSymbols = [];
@@ -53056,7 +53060,7 @@ ${lanes.join("\n")}
53056
53060
  return true;
53057
53061
  }
53058
53062
  function findResolutionCycleStartIndex(target, propertyName) {
53059
- for (let i = resolutionTargets.length - 1; i >= 0; i--) {
53063
+ for (let i = resolutionTargets.length - 1; i >= resolutionStart; i--) {
53060
53064
  if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
53061
53065
  return -1;
53062
53066
  }
@@ -64092,6 +64096,11 @@ ${lanes.join("\n")}
64092
64096
  const links = getSymbolLinks(symbol);
64093
64097
  if (!links.variances) {
64094
64098
  (_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.CheckTypes, "getVariancesWorker", { arity: typeParameters.length, id: getTypeId(getDeclaredTypeOfSymbol(symbol)) });
64099
+ const oldVarianceComputation = inVarianceComputation;
64100
+ if (!inVarianceComputation) {
64101
+ inVarianceComputation = true;
64102
+ resolutionStart = resolutionTargets.length;
64103
+ }
64095
64104
  links.variances = emptyArray;
64096
64105
  const variances = [];
64097
64106
  for (const tp of typeParameters) {
@@ -64120,6 +64129,10 @@ ${lanes.join("\n")}
64120
64129
  }
64121
64130
  variances.push(variance);
64122
64131
  }
64132
+ if (!oldVarianceComputation) {
64133
+ inVarianceComputation = false;
64134
+ resolutionStart = 0;
64135
+ }
64123
64136
  links.variances = variances;
64124
64137
  (_b = tracing) == null ? void 0 : _b.pop({ variances: variances.map(Debug.formatVariance) });
64125
64138
  }
@@ -68271,12 +68284,14 @@ ${lanes.join("\n")}
68271
68284
  const isOuterVariable = flowContainer !== declarationContainer;
68272
68285
  const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);
68273
68286
  const isModuleExports = symbol.flags & 134217728 /* ModuleExports */;
68287
+ const typeIsAutomatic = type === autoType || type === autoArrayType;
68288
+ const isAutomaticTypeInNonNull = typeIsAutomatic && node.parent.kind === 234 /* NonNullExpression */;
68274
68289
  while (flowContainer !== declarationContainer && (flowContainer.kind === 217 /* FunctionExpression */ || flowContainer.kind === 218 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter2 && !isSymbolAssigned(localOrExportSymbol))) {
68275
68290
  flowContainer = getControlFlowContainer(flowContainer);
68276
68291
  }
68277
68292
  const assumeInitialized = isParameter2 || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 280 /* ExportSpecifier */) || node.parent.kind === 234 /* NonNullExpression */ || declaration.kind === 259 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 16777216 /* Ambient */;
68278
- const initialType = assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : type === autoType || type === autoArrayType ? undefinedType : getOptionalType(type);
68279
- const flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);
68293
+ const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type);
68294
+ const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer);
68280
68295
  if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {
68281
68296
  if (flowType === autoType || flowType === autoArrayType) {
68282
68297
  if (noImplicitAny) {
@@ -93418,6 +93433,8 @@ ${lanes.join("\n")}
93418
93433
  endLexicalEnvironment,
93419
93434
  hoistVariableDeclaration
93420
93435
  } = context;
93436
+ const compilerOptions = context.getCompilerOptions();
93437
+ const languageVersion = getEmitScriptTarget(compilerOptions);
93421
93438
  let top;
93422
93439
  let classInfo;
93423
93440
  let classThis;
@@ -94091,8 +94108,21 @@ ${lanes.join("\n")}
94091
94108
  Debug.assertIsDefined(node.name, "A class declaration that is not a default export must have a name.");
94092
94109
  const iife = transformClassLike(node, factory2.createStringLiteralFromNode(node.name));
94093
94110
  const modifiers = visitNodes2(node.modifiers, modifierVisitor, isModifier);
94111
+ const declName = languageVersion <= 2 /* ES2015 */ ? factory2.getInternalName(
94112
+ node,
94113
+ /*allowComments*/
94114
+ false,
94115
+ /*allowSourceMaps*/
94116
+ true
94117
+ ) : factory2.getLocalName(
94118
+ node,
94119
+ /*allowComments*/
94120
+ false,
94121
+ /*allowSourceMaps*/
94122
+ true
94123
+ );
94094
94124
  const varDecl = factory2.createVariableDeclaration(
94095
- node.name,
94125
+ declName,
94096
94126
  /*exclamationToken*/
94097
94127
  void 0,
94098
94128
  /*type*/
@@ -145613,6 +145643,9 @@ ${lanes.join("\n")}
145613
145643
  case 37 /* EqualsEqualsEqualsToken */:
145614
145644
  case 38 /* ExclamationEqualsEqualsToken */:
145615
145645
  case 36 /* ExclamationEqualsToken */:
145646
+ case 77 /* AmpersandAmpersandEqualsToken */:
145647
+ case 78 /* QuestionQuestionEqualsToken */:
145648
+ case 76 /* BarBarEqualsToken */:
145616
145649
  addCandidateType(usage, checker.getTypeAtLocation(parent2.left === node ? parent2.right : parent2.left));
145617
145650
  break;
145618
145651
  case 103 /* InKeyword */:
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.1";
57
- var version = `${versionMajorMinor}.0-dev.20230410`;
57
+ var version = `${versionMajorMinor}.0-dev.20230412`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
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": "5.1.0-dev.20230410",
5
+ "version": "5.1.0-dev.20230412",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -113,5 +113,5 @@
113
113
  "node": "14.21.1",
114
114
  "npm": "8.19.3"
115
115
  },
116
- "gitHead": "0f724c04308e20d93d397e82b11f82ad6f810c44"
116
+ "gitHead": "2db688e36ff57ee1d4f730e124ac340379eae4f0"
117
117
  }