typescript 5.5.0-dev.20240603 → 5.6.0-dev.20240605

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.
@@ -3616,7 +3616,7 @@ declare namespace ts {
3616
3616
  readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
3617
3617
  }
3618
3618
  }
3619
- const versionMajorMinor = "5.5";
3619
+ const versionMajorMinor = "5.6";
3620
3620
  /** The version of the TypeScript compiler release */
3621
3621
  const version: string;
3622
3622
  /**
@@ -5517,7 +5517,7 @@ declare namespace ts {
5517
5517
  interface NamespaceExport extends NamedDeclaration {
5518
5518
  readonly kind: SyntaxKind.NamespaceExport;
5519
5519
  readonly parent: ExportDeclaration;
5520
- readonly name: Identifier;
5520
+ readonly name: ModuleExportName;
5521
5521
  }
5522
5522
  interface NamespaceExportDeclaration extends DeclarationStatement, JSDocContainer {
5523
5523
  readonly kind: SyntaxKind.NamespaceExportDeclaration;
@@ -5549,7 +5549,7 @@ declare namespace ts {
5549
5549
  interface ImportSpecifier extends NamedDeclaration {
5550
5550
  readonly kind: SyntaxKind.ImportSpecifier;
5551
5551
  readonly parent: NamedImports;
5552
- readonly propertyName?: Identifier;
5552
+ readonly propertyName?: ModuleExportName;
5553
5553
  readonly name: Identifier;
5554
5554
  readonly isTypeOnly: boolean;
5555
5555
  }
@@ -5557,9 +5557,10 @@ declare namespace ts {
5557
5557
  readonly kind: SyntaxKind.ExportSpecifier;
5558
5558
  readonly parent: NamedExports;
5559
5559
  readonly isTypeOnly: boolean;
5560
- readonly propertyName?: Identifier;
5561
- readonly name: Identifier;
5560
+ readonly propertyName?: ModuleExportName;
5561
+ readonly name: ModuleExportName;
5562
5562
  }
5563
+ type ModuleExportName = Identifier | StringLiteral;
5563
5564
  type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier;
5564
5565
  type TypeOnlyCompatibleAliasDeclaration = ImportClause | ImportEqualsDeclaration | NamespaceImport | ImportOrExportSpecifier | ExportDeclaration | NamespaceExport;
5565
5566
  type TypeOnlyImportDeclaration =
@@ -7661,20 +7662,20 @@ declare namespace ts {
7661
7662
  updateImportAttribute(node: ImportAttribute, name: ImportAttributeName, value: Expression): ImportAttribute;
7662
7663
  createNamespaceImport(name: Identifier): NamespaceImport;
7663
7664
  updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport;
7664
- createNamespaceExport(name: Identifier): NamespaceExport;
7665
- updateNamespaceExport(node: NamespaceExport, name: Identifier): NamespaceExport;
7665
+ createNamespaceExport(name: ModuleExportName): NamespaceExport;
7666
+ updateNamespaceExport(node: NamespaceExport, name: ModuleExportName): NamespaceExport;
7666
7667
  createNamedImports(elements: readonly ImportSpecifier[]): NamedImports;
7667
7668
  updateNamedImports(node: NamedImports, elements: readonly ImportSpecifier[]): NamedImports;
7668
- createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
7669
- updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
7669
+ createImportSpecifier(isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: Identifier): ImportSpecifier;
7670
+ updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: Identifier): ImportSpecifier;
7670
7671
  createExportAssignment(modifiers: readonly ModifierLike[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
7671
7672
  updateExportAssignment(node: ExportAssignment, modifiers: readonly ModifierLike[] | undefined, expression: Expression): ExportAssignment;
7672
7673
  createExportDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, attributes?: ImportAttributes): ExportDeclaration;
7673
7674
  updateExportDeclaration(node: ExportDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, attributes: ImportAttributes | undefined): ExportDeclaration;
7674
7675
  createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
7675
7676
  updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
7676
- createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
7677
- updateExportSpecifier(node: ExportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier;
7677
+ createExportSpecifier(isTypeOnly: boolean, propertyName: string | ModuleExportName | undefined, name: string | ModuleExportName): ExportSpecifier;
7678
+ updateExportSpecifier(node: ExportSpecifier, isTypeOnly: boolean, propertyName: ModuleExportName | undefined, name: ModuleExportName): ExportSpecifier;
7678
7679
  createExternalModuleReference(expression: Expression): ExternalModuleReference;
7679
7680
  updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference;
7680
7681
  createJSDocAllType(): JSDocAllType;
@@ -8992,6 +8993,7 @@ declare namespace ts {
8992
8993
  function isExportDeclaration(node: Node): node is ExportDeclaration;
8993
8994
  function isNamedExports(node: Node): node is NamedExports;
8994
8995
  function isExportSpecifier(node: Node): node is ExportSpecifier;
8996
+ function isModuleExportName(node: Node): node is ModuleExportName;
8995
8997
  function isMissingDeclaration(node: Node): node is MissingDeclaration;
8996
8998
  function isNotEmittedStatement(node: Node): node is NotEmittedStatement;
8997
8999
  function isExternalModuleReference(node: Node): node is ExternalModuleReference;