typescript 5.2.0-dev.20230623 → 5.2.0-dev.20230624

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.2";
38
- version = `${versionMajorMinor}.0-dev.20230623`;
38
+ version = `${versionMajorMinor}.0-dev.20230624`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -7096,6 +7096,7 @@ ${lanes.join("\n")}
7096
7096
  A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."),
7097
7097
  Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."),
7098
7098
  Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."),
7099
+ Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "Private_field_0_must_be_declared_in_an_enclosing_class_1111", "Private field '{0}' must be declared in an enclosing class."),
7099
7100
  A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."),
7100
7101
  Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."),
7101
7102
  A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."),
@@ -14530,6 +14531,10 @@ ${lanes.join("\n")}
14530
14531
  function getContainingFunctionOrClassStaticBlock(node) {
14531
14532
  return findAncestor(node.parent, isFunctionLikeOrClassStaticBlockDeclaration);
14532
14533
  }
14534
+ function getContainingClassExcludingClassDecorators(node) {
14535
+ const decorator = findAncestor(node.parent, (n) => isClassLike(n) ? "quit" : isDecorator(n));
14536
+ return decorator && isClassLike(decorator.parent) ? getContainingClass(decorator.parent) : getContainingClass(decorator ?? node);
14537
+ }
14533
14538
  function getThisContainer(node, includeArrowFunctions, includeClassComputedPropertyName) {
14534
14539
  Debug.assert(node.kind !== 312 /* SourceFile */);
14535
14540
  while (true) {
@@ -25082,10 +25087,12 @@ ${lanes.join("\n")}
25082
25087
  );
25083
25088
  }
25084
25089
  function createESDecorateClassContextObject(contextIn) {
25085
- return factory2.createObjectLiteralExpression([
25090
+ const properties = [
25086
25091
  factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral("class")),
25087
- factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name)
25088
- ]);
25092
+ factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name),
25093
+ factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata)
25094
+ ];
25095
+ return factory2.createObjectLiteralExpression(properties);
25089
25096
  }
25090
25097
  function createESDecorateClassElementAccessGetMethod(elementName) {
25091
25098
  const accessor = elementName.computed ? factory2.createElementAccessExpression(factory2.createIdentifier("obj"), elementName.name) : factory2.createPropertyAccessExpression(factory2.createIdentifier("obj"), elementName.name);
@@ -25189,13 +25196,15 @@ ${lanes.join("\n")}
25189
25196
  return factory2.createObjectLiteralExpression(properties);
25190
25197
  }
25191
25198
  function createESDecorateClassElementContextObject(contextIn) {
25192
- return factory2.createObjectLiteralExpression([
25199
+ const properties = [
25193
25200
  factory2.createPropertyAssignment(factory2.createIdentifier("kind"), factory2.createStringLiteral(contextIn.kind)),
25194
25201
  factory2.createPropertyAssignment(factory2.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory2.createStringLiteralFromNode(contextIn.name.name)),
25195
25202
  factory2.createPropertyAssignment(factory2.createIdentifier("static"), contextIn.static ? factory2.createTrue() : factory2.createFalse()),
25196
25203
  factory2.createPropertyAssignment(factory2.createIdentifier("private"), contextIn.private ? factory2.createTrue() : factory2.createFalse()),
25197
- factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access))
25198
- ]);
25204
+ factory2.createPropertyAssignment(factory2.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access)),
25205
+ factory2.createPropertyAssignment(factory2.createIdentifier("metadata"), contextIn.metadata)
25206
+ ];
25207
+ return factory2.createObjectLiteralExpression(properties);
25199
25208
  }
25200
25209
  function createESDecorateContextObject(contextIn) {
25201
25210
  return contextIn.kind === "class" ? createESDecorateClassContextObject(contextIn) : createESDecorateClassElementContextObject(contextIn);
@@ -37557,6 +37566,7 @@ ${lanes.join("\n")}
37557
37566
  ["esnext.string", "lib.es2022.string.d.ts"],
37558
37567
  ["esnext.promise", "lib.es2021.promise.d.ts"],
37559
37568
  ["esnext.weakref", "lib.es2021.weakref.d.ts"],
37569
+ ["esnext.decorators", "lib.esnext.decorators.d.ts"],
37560
37570
  ["decorators", "lib.decorators.d.ts"],
37561
37571
  ["decorators.legacy", "lib.decorators.legacy.d.ts"]
37562
37572
  ];
@@ -68475,7 +68485,7 @@ ${lanes.join("\n")}
68475
68485
  location = location.parent;
68476
68486
  }
68477
68487
  if (isExpressionNode(location) && (!isAssignmentTarget(location) || isWriteAccess(location))) {
68478
- const type = getTypeOfExpression(location);
68488
+ const type = removeOptionalTypeMarker(getTypeOfExpression(location));
68479
68489
  if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {
68480
68490
  return type;
68481
68491
  }
@@ -71486,7 +71496,7 @@ ${lanes.join("\n")}
71486
71496
  return isCallOrNewExpression(node.parent) && node.parent.expression === node;
71487
71497
  }
71488
71498
  function lookupSymbolForPrivateIdentifierDeclaration(propName, location) {
71489
- for (let containingClass = getContainingClass(location); !!containingClass; containingClass = getContainingClass(containingClass)) {
71499
+ for (let containingClass = getContainingClassExcludingClassDecorators(location); !!containingClass; containingClass = getContainingClass(containingClass)) {
71490
71500
  const { symbol } = containingClass;
71491
71501
  const name = getSymbolNameForPrivateIdentifier(symbol, propName);
71492
71502
  const prop = symbol.members && symbol.members.get(name) || symbol.exports && symbol.exports.get(name);
@@ -71622,16 +71632,22 @@ ${lanes.join("\n")}
71622
71632
  if (lexicallyScopedSymbol) {
71623
71633
  return isErrorType(apparentType) ? errorType : apparentType;
71624
71634
  }
71625
- if (!getContainingClass(right)) {
71635
+ if (getContainingClassExcludingClassDecorators(right) === void 0) {
71626
71636
  grammarErrorOnNode(right, Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);
71627
71637
  return anyType;
71628
71638
  }
71629
71639
  }
71630
- prop = lexicallyScopedSymbol ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol) : void 0;
71631
- if (!prop && checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) {
71632
- return errorType;
71640
+ prop = lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol);
71641
+ if (prop === void 0) {
71642
+ if (checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) {
71643
+ return errorType;
71644
+ }
71645
+ const containingClass = getContainingClassExcludingClassDecorators(right);
71646
+ if (containingClass && isPlainJsFile(getSourceFileOfNode(containingClass), compilerOptions.checkJs)) {
71647
+ grammarErrorOnNode(right, Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class, idText(right));
71648
+ }
71633
71649
  } else {
71634
- const isSetonlyAccessor = prop && prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */);
71650
+ const isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */);
71635
71651
  if (isSetonlyAccessor && assignmentKind !== 1 /* Definite */) {
71636
71652
  error2(node, Diagnostics.Private_accessor_was_defined_without_a_getter);
71637
71653
  }
@@ -92579,9 +92595,12 @@ ${lanes.join("\n")}
92579
92595
  return getClassLexicalEnvironment().classConstructor = node.emitNode.classThis;
92580
92596
  }
92581
92597
  const classCheckFlags = resolver.getNodeCheckFlags(node);
92582
- const isClassWithConstructorReference2 = classCheckFlags & 1048576 /* ClassWithConstructorReference */;
92583
92598
  const requiresBlockScopedVar = classCheckFlags & 32768 /* BlockScopedBindingInLoop */;
92584
- const temp2 = factory2.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference2);
92599
+ const temp2 = factory2.createTempVariable(
92600
+ requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration,
92601
+ /*reservedInNestedScopes*/
92602
+ true
92603
+ );
92585
92604
  getClassLexicalEnvironment().classConstructor = factory2.cloneNode(temp2);
92586
92605
  return temp2;
92587
92606
  }
@@ -94762,6 +94781,7 @@ ${lanes.join("\n")}
94762
94781
  );
94763
94782
  }
94764
94783
  function createClassInfo(node) {
94784
+ const metadataReference = factory2.createUniqueName("_metadata", 16 /* Optimistic */ | 32 /* FileLevel */);
94765
94785
  let instanceExtraInitializersName;
94766
94786
  let staticExtraInitializersName;
94767
94787
  let hasStaticInitializers = false;
@@ -94800,6 +94820,7 @@ ${lanes.join("\n")}
94800
94820
  }
94801
94821
  return {
94802
94822
  class: node,
94823
+ metadataReference,
94803
94824
  instanceExtraInitializersName,
94804
94825
  staticExtraInitializersName,
94805
94826
  hasStaticInitializers,
@@ -94807,16 +94828,6 @@ ${lanes.join("\n")}
94807
94828
  hasStaticPrivateClassElements
94808
94829
  };
94809
94830
  }
94810
- function containsLexicalSuperInStaticInitializer(node) {
94811
- for (const member of node.members) {
94812
- if (isClassStaticBlockDeclaration(member) || isPropertyDeclaration(member) && hasStaticModifier(member)) {
94813
- if (member.transformFlags & 134217728 /* ContainsLexicalSuper */) {
94814
- return true;
94815
- }
94816
- }
94817
- }
94818
- return false;
94819
- }
94820
94831
  function transformClassLike(node) {
94821
94832
  startLexicalEnvironment();
94822
94833
  if (!classHasDeclaredOrExplicitlyAssignedName(node) && classOrConstructorParameterIsDecorated(
@@ -94860,29 +94871,26 @@ ${lanes.join("\n")}
94860
94871
  shouldTransformPrivateStaticElementsInFile = true;
94861
94872
  }
94862
94873
  }
94863
- if (classDecorators && containsLexicalSuperInStaticInitializer(node)) {
94864
- const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */);
94865
- const extendsElement = extendsClause && firstOrUndefined(extendsClause.types);
94866
- const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression);
94867
- if (extendsExpression) {
94868
- classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */ | 32 /* FileLevel */);
94869
- const unwrapped = skipOuterExpressions(extendsExpression);
94870
- const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression;
94871
- classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression));
94872
- const updatedExtendsElement = factory2.updateExpressionWithTypeArguments(
94873
- extendsElement,
94874
- classInfo2.classSuper,
94875
- /*typeArguments*/
94876
- void 0
94877
- );
94878
- const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]);
94879
- heritageClauses = factory2.createNodeArray([updatedExtendsClause]);
94880
- }
94881
- } else {
94882
- heritageClauses = visitNodes2(node.heritageClauses, visitor, isHeritageClause);
94874
+ const extendsClause = getHeritageClause(node.heritageClauses, 96 /* ExtendsKeyword */);
94875
+ const extendsElement = extendsClause && firstOrUndefined(extendsClause.types);
94876
+ const extendsExpression = extendsElement && visitNode(extendsElement.expression, visitor, isExpression);
94877
+ if (extendsExpression) {
94878
+ classInfo2.classSuper = factory2.createUniqueName("_classSuper", 16 /* Optimistic */ | 32 /* FileLevel */);
94879
+ const unwrapped = skipOuterExpressions(extendsExpression);
94880
+ const safeExtendsExpression = isClassExpression(unwrapped) && !unwrapped.name || isFunctionExpression(unwrapped) && !unwrapped.name || isArrowFunction(unwrapped) ? factory2.createComma(factory2.createNumericLiteral(0), extendsExpression) : extendsExpression;
94881
+ classDefinitionStatements.push(createLet(classInfo2.classSuper, safeExtendsExpression));
94882
+ const updatedExtendsElement = factory2.updateExpressionWithTypeArguments(
94883
+ extendsElement,
94884
+ classInfo2.classSuper,
94885
+ /*typeArguments*/
94886
+ void 0
94887
+ );
94888
+ const updatedExtendsClause = factory2.updateHeritageClause(extendsClause, [updatedExtendsElement]);
94889
+ heritageClauses = factory2.createNodeArray([updatedExtendsClause]);
94883
94890
  }
94884
94891
  const renamedClassThis = classInfo2.classThis ?? factory2.createThis();
94885
94892
  enterClass(classInfo2);
94893
+ leadingBlockStatements = append(leadingBlockStatements, createMetadata(classInfo2.metadataReference, classInfo2.classSuper));
94886
94894
  let members = visitNodes2(node.members, classElementVisitor, isClassElement);
94887
94895
  if (pendingExpressions) {
94888
94896
  let outerThis;
@@ -94988,7 +94996,7 @@ ${lanes.join("\n")}
94988
94996
  factory2.createNull(),
94989
94997
  classDescriptorAssignment,
94990
94998
  classInfo2.classDecoratorsName,
94991
- { kind: "class", name: classNameReference },
94999
+ { kind: "class", name: classNameReference, metadata: classInfo2.metadataReference },
94992
95000
  factory2.createNull(),
94993
95001
  classInfo2.classExtraInitializersName
94994
95002
  );
@@ -95000,6 +95008,7 @@ ${lanes.join("\n")}
95000
95008
  const classReferenceAssignment = factory2.createAssignment(classReference, classThisAssignment);
95001
95009
  leadingBlockStatements.push(factory2.createExpressionStatement(classReferenceAssignment));
95002
95010
  }
95011
+ leadingBlockStatements.push(createSymbolMetadata(renamedClassThis, classInfo2.metadataReference));
95003
95012
  if (classInfo2.staticExtraInitializersName) {
95004
95013
  const runStaticInitializersHelper = emitHelpers().createRunInitializersHelper(renamedClassThis, classInfo2.staticExtraInitializersName);
95005
95014
  const runStaticInitializersStatement = factory2.createExpressionStatement(runStaticInitializersHelper);
@@ -95378,7 +95387,8 @@ ${lanes.join("\n")}
95378
95387
  get: isPropertyDeclaration(member) || isGetAccessorDeclaration(member) || isMethodDeclaration(member),
95379
95388
  // 3. If _kind_ is ~field~, ~accessor~, or ~setter~, then ...
95380
95389
  set: isPropertyDeclaration(member) || isSetAccessorDeclaration(member)
95381
- }
95390
+ },
95391
+ metadata: classInfo2.metadataReference
95382
95392
  };
95383
95393
  const extraInitializers = isStatic(member) ? classInfo2.staticExtraInitializersName ?? (classInfo2.staticExtraInitializersName = factory2.createUniqueName("_staticExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */)) : classInfo2.instanceExtraInitializersName ?? (classInfo2.instanceExtraInitializersName = factory2.createUniqueName("_instanceExtraInitializers", 16 /* Optimistic */ | 32 /* FileLevel */));
95384
95394
  if (isMethodOrAccessor(member)) {
@@ -96168,6 +96178,60 @@ ${lanes.join("\n")}
96168
96178
  ])
96169
96179
  );
96170
96180
  }
96181
+ function createMetadata(name, classSuper2) {
96182
+ const varDecl = factory2.createVariableDeclaration(
96183
+ name,
96184
+ /*exclamationToken*/
96185
+ void 0,
96186
+ /*type*/
96187
+ void 0,
96188
+ factory2.createConditionalExpression(
96189
+ factory2.createLogicalAnd(
96190
+ factory2.createTypeCheck(factory2.createIdentifier("Symbol"), "function"),
96191
+ factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata")
96192
+ ),
96193
+ factory2.createToken(58 /* QuestionToken */),
96194
+ factory2.createCallExpression(
96195
+ factory2.createPropertyAccessExpression(factory2.createIdentifier("Object"), "create"),
96196
+ /*typeArguments*/
96197
+ void 0,
96198
+ [classSuper2 ? createSymbolMetadataReference(classSuper2) : factory2.createNull()]
96199
+ ),
96200
+ factory2.createToken(59 /* ColonToken */),
96201
+ factory2.createVoidZero()
96202
+ )
96203
+ );
96204
+ return factory2.createVariableStatement(
96205
+ /*modifiers*/
96206
+ void 0,
96207
+ factory2.createVariableDeclarationList([varDecl], 2 /* Const */)
96208
+ );
96209
+ }
96210
+ function createSymbolMetadata(target, value) {
96211
+ const defineProperty = factory2.createObjectDefinePropertyCall(
96212
+ target,
96213
+ factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata"),
96214
+ factory2.createPropertyDescriptor(
96215
+ { configurable: true, writable: true, enumerable: true, value },
96216
+ /*singleLine*/
96217
+ true
96218
+ )
96219
+ );
96220
+ return setEmitFlags(
96221
+ factory2.createIfStatement(value, factory2.createExpressionStatement(defineProperty)),
96222
+ 1 /* SingleLine */
96223
+ );
96224
+ }
96225
+ function createSymbolMetadataReference(classSuper2) {
96226
+ return factory2.createBinaryExpression(
96227
+ factory2.createElementAccessExpression(
96228
+ classSuper2,
96229
+ factory2.createPropertyAccessExpression(factory2.createIdentifier("Symbol"), "metadata")
96230
+ ),
96231
+ 61 /* QuestionQuestionToken */,
96232
+ factory2.createNull()
96233
+ );
96234
+ }
96171
96235
  }
96172
96236
  var init_esDecorators = __esm({
96173
96237
  "src/compiler/transformers/esDecorators.ts"() {
@@ -121425,6 +121489,7 @@ ${lanes.join("\n")}
121425
121489
  Diagnostics.Class_constructor_may_not_be_an_accessor.code,
121426
121490
  Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,
121427
121491
  Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,
121492
+ Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code,
121428
121493
  // Type errors
121429
121494
  Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code
121430
121495
  ]);
@@ -171919,6 +171984,7 @@ ${options.prefix}` : "\n" : options.prefix
171919
171984
  getContainerFlags: () => getContainerFlags,
171920
171985
  getContainerNode: () => getContainerNode,
171921
171986
  getContainingClass: () => getContainingClass,
171987
+ getContainingClassExcludingClassDecorators: () => getContainingClassExcludingClassDecorators,
171922
171988
  getContainingClassStaticBlock: () => getContainingClassStaticBlock,
171923
171989
  getContainingFunction: () => getContainingFunction,
171924
171990
  getContainingFunctionDeclaration: () => getContainingFunctionDeclaration,
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.2";
57
- var version = `${versionMajorMinor}.0-dev.20230623`;
57
+ var version = `${versionMajorMinor}.0-dev.20230624`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -5166,6 +5166,7 @@ var Diagnostics = {
5166
5166
  A_return_statement_can_only_be_used_within_a_function_body: diag(1108, 1 /* Error */, "A_return_statement_can_only_be_used_within_a_function_body_1108", "A 'return' statement can only be used within a function body."),
5167
5167
  Expression_expected: diag(1109, 1 /* Error */, "Expression_expected_1109", "Expression expected."),
5168
5168
  Type_expected: diag(1110, 1 /* Error */, "Type_expected_1110", "Type expected."),
5169
+ Private_field_0_must_be_declared_in_an_enclosing_class: diag(1111, 1 /* Error */, "Private_field_0_must_be_declared_in_an_enclosing_class_1111", "Private field '{0}' must be declared in an enclosing class."),
5169
5170
  A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, 1 /* Error */, "A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113", "A 'default' clause cannot appear more than once in a 'switch' statement."),
5170
5171
  Duplicate_label_0: diag(1114, 1 /* Error */, "Duplicate_label_0_1114", "Duplicate label '{0}'."),
5171
5172
  A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, 1 /* Error */, "A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115", "A 'continue' statement can only jump to a label of an enclosing iteration statement."),
@@ -25584,6 +25585,7 @@ var libEntries = [
25584
25585
  ["esnext.string", "lib.es2022.string.d.ts"],
25585
25586
  ["esnext.promise", "lib.es2021.promise.d.ts"],
25586
25587
  ["esnext.weakref", "lib.es2021.weakref.d.ts"],
25588
+ ["esnext.decorators", "lib.esnext.decorators.d.ts"],
25587
25589
  ["decorators", "lib.decorators.d.ts"],
25588
25590
  ["decorators.legacy", "lib.decorators.legacy.d.ts"]
25589
25591
  ];
@@ -30820,6 +30822,7 @@ var plainJSErrors = /* @__PURE__ */ new Set([
30820
30822
  Diagnostics.Class_constructor_may_not_be_an_accessor.code,
30821
30823
  Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,
30822
30824
  Diagnostics.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,
30825
+ Diagnostics.Private_field_0_must_be_declared_in_an_enclosing_class.code,
30823
30826
  // Type errors
30824
30827
  Diagnostics.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code
30825
30828
  ]);
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.2.0-dev.20230623",
5
+ "version": "5.2.0-dev.20230624",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "f7e4f809acaea6b1b247ed05b2b7873d4546ab9e"
117
+ "gitHead": "4b0fd40aafa50720163e5699ff7d5a14eaa74118"
118
118
  }