typescript 5.3.0-dev.20230926 → 5.3.0-dev.20230927

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.
@@ -4464,9 +4464,11 @@ declare namespace ts {
4464
4464
  DefaultClause = 297,
4465
4465
  HeritageClause = 298,
4466
4466
  CatchClause = 299,
4467
- AssertClause = 300,
4468
- AssertEntry = 301,
4469
- ImportTypeAssertionContainer = 302,
4467
+ ImportAttributes = 300,
4468
+ ImportAttribute = 301,
4469
+ /** @deprecated */ AssertClause = 300,
4470
+ /** @deprecated */ AssertEntry = 301,
4471
+ /** @deprecated */ ImportTypeAssertionContainer = 302,
4470
4472
  PropertyAssignment = 303,
4471
4473
  ShorthandPropertyAssignment = 304,
4472
4474
  SpreadAssignment = 305,
@@ -5197,17 +5199,19 @@ declare namespace ts {
5197
5199
  interface KeywordTypeNode<TKind extends KeywordTypeSyntaxKind = KeywordTypeSyntaxKind> extends KeywordToken<TKind>, TypeNode {
5198
5200
  readonly kind: TKind;
5199
5201
  }
5202
+ /** @deprecated */
5200
5203
  interface ImportTypeAssertionContainer extends Node {
5201
5204
  readonly kind: SyntaxKind.ImportTypeAssertionContainer;
5202
5205
  readonly parent: ImportTypeNode;
5203
- readonly assertClause: AssertClause;
5206
+ /** @deprecated */ readonly assertClause: AssertClause;
5204
5207
  readonly multiLine?: boolean;
5205
5208
  }
5206
5209
  interface ImportTypeNode extends NodeWithTypeArguments {
5207
5210
  readonly kind: SyntaxKind.ImportType;
5208
5211
  readonly isTypeOf: boolean;
5209
5212
  readonly argument: TypeNode;
5210
- readonly assertions?: ImportTypeAssertionContainer;
5213
+ /** @deprecated */ readonly assertions?: ImportTypeAssertionContainer;
5214
+ readonly attributes?: ImportAttributes;
5211
5215
  readonly qualifier?: EntityName;
5212
5216
  }
5213
5217
  interface ThisTypeNode extends TypeNode {
@@ -5998,7 +6002,8 @@ declare namespace ts {
5998
6002
  readonly importClause?: ImportClause;
5999
6003
  /** If this is not a StringLiteral it will be a grammar error. */
6000
6004
  readonly moduleSpecifier: Expression;
6001
- readonly assertClause?: AssertClause;
6005
+ /** @deprecated */ readonly assertClause?: AssertClause;
6006
+ readonly attributes?: ImportAttributes;
6002
6007
  }
6003
6008
  type NamedImportBindings = NamespaceImport | NamedImports;
6004
6009
  type NamedExportBindings = NamespaceExport | NamedExports;
@@ -6009,17 +6014,24 @@ declare namespace ts {
6009
6014
  readonly name?: Identifier;
6010
6015
  readonly namedBindings?: NamedImportBindings;
6011
6016
  }
6012
- type AssertionKey = Identifier | StringLiteral;
6013
- interface AssertEntry extends Node {
6014
- readonly kind: SyntaxKind.AssertEntry;
6015
- readonly parent: AssertClause;
6016
- readonly name: AssertionKey;
6017
+ /** @deprecated */
6018
+ type AssertionKey = ImportAttributeName;
6019
+ /** @deprecated */
6020
+ type AssertEntry = ImportAttribute;
6021
+ /** @deprecated */
6022
+ type AssertClause = ImportAttributes;
6023
+ type ImportAttributeName = Identifier | StringLiteral;
6024
+ interface ImportAttribute extends Node {
6025
+ readonly kind: SyntaxKind.ImportAttribute;
6026
+ readonly parent: ImportAttributes;
6027
+ readonly name: ImportAttributeName;
6017
6028
  readonly value: Expression;
6018
6029
  }
6019
- interface AssertClause extends Node {
6020
- readonly kind: SyntaxKind.AssertClause;
6030
+ interface ImportAttributes extends Node {
6031
+ readonly token: SyntaxKind.WithKeyword | SyntaxKind.AssertKeyword;
6032
+ readonly kind: SyntaxKind.ImportAttributes;
6021
6033
  readonly parent: ImportDeclaration | ExportDeclaration;
6022
- readonly elements: NodeArray<AssertEntry>;
6034
+ readonly elements: NodeArray<ImportAttribute>;
6023
6035
  readonly multiLine?: boolean;
6024
6036
  }
6025
6037
  interface NamespaceImport extends NamedDeclaration {
@@ -6045,7 +6057,8 @@ declare namespace ts {
6045
6057
  readonly exportClause?: NamedExportBindings;
6046
6058
  /** If this is not a StringLiteral it will be a grammar error. */
6047
6059
  readonly moduleSpecifier?: Expression;
6048
- readonly assertClause?: AssertClause;
6060
+ /** @deprecated */ readonly assertClause?: AssertClause;
6061
+ readonly attributes?: ImportAttributes;
6049
6062
  }
6050
6063
  interface NamedImports extends Node {
6051
6064
  readonly kind: SyntaxKind.NamedImports;
@@ -8008,8 +8021,8 @@ declare namespace ts {
8008
8021
  updateConditionalTypeNode(node: ConditionalTypeNode, checkType: TypeNode, extendsType: TypeNode, trueType: TypeNode, falseType: TypeNode): ConditionalTypeNode;
8009
8022
  createInferTypeNode(typeParameter: TypeParameterDeclaration): InferTypeNode;
8010
8023
  updateInferTypeNode(node: InferTypeNode, typeParameter: TypeParameterDeclaration): InferTypeNode;
8011
- createImportTypeNode(argument: TypeNode, assertions?: ImportTypeAssertionContainer, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
8012
- updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, assertions: ImportTypeAssertionContainer | undefined, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
8024
+ createImportTypeNode(argument: TypeNode, attributes?: ImportAttributes, qualifier?: EntityName, typeArguments?: readonly TypeNode[], isTypeOf?: boolean): ImportTypeNode;
8025
+ updateImportTypeNode(node: ImportTypeNode, argument: TypeNode, attributes: ImportAttributes | undefined, qualifier: EntityName | undefined, typeArguments: readonly TypeNode[] | undefined, isTypeOf?: boolean): ImportTypeNode;
8013
8026
  createParenthesizedType(type: TypeNode): ParenthesizedTypeNode;
8014
8027
  updateParenthesizedType(node: ParenthesizedTypeNode, type: TypeNode): ParenthesizedTypeNode;
8015
8028
  createThisTypeNode(): ThisTypeNode;
@@ -8166,16 +8179,20 @@ declare namespace ts {
8166
8179
  updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
8167
8180
  createImportEqualsDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
8168
8181
  updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
8169
- createImportDeclaration(modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
8170
- updateImportDeclaration(node: ImportDeclaration, modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
8182
+ createImportDeclaration(modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes?: ImportAttributes): ImportDeclaration;
8183
+ updateImportDeclaration(node: ImportDeclaration, modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes: ImportAttributes | undefined): ImportDeclaration;
8171
8184
  createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
8172
8185
  updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
8173
- createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
8174
- updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
8175
- createAssertEntry(name: AssertionKey, value: Expression): AssertEntry;
8176
- updateAssertEntry(node: AssertEntry, name: AssertionKey, value: Expression): AssertEntry;
8177
- createImportTypeAssertionContainer(clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
8178
- updateImportTypeAssertionContainer(node: ImportTypeAssertionContainer, clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
8186
+ /** @deprecated */ createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
8187
+ /** @deprecated */ updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
8188
+ /** @deprecated */ createAssertEntry(name: AssertionKey, value: Expression): AssertEntry;
8189
+ /** @deprecated */ updateAssertEntry(node: AssertEntry, name: AssertionKey, value: Expression): AssertEntry;
8190
+ /** @deprecated */ createImportTypeAssertionContainer(clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
8191
+ /** @deprecated */ updateImportTypeAssertionContainer(node: ImportTypeAssertionContainer, clause: AssertClause, multiLine?: boolean): ImportTypeAssertionContainer;
8192
+ createImportAttributes(elements: NodeArray<ImportAttribute>, multiLine?: boolean): ImportAttributes;
8193
+ updateImportAttributes(node: ImportAttributes, elements: NodeArray<ImportAttribute>, multiLine?: boolean): ImportAttributes;
8194
+ createImportAttribute(name: ImportAttributeName, value: Expression): ImportAttribute;
8195
+ updateImportAttribute(node: ImportAttribute, name: ImportAttributeName, value: Expression): ImportAttribute;
8179
8196
  createNamespaceImport(name: Identifier): NamespaceImport;
8180
8197
  updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport;
8181
8198
  createNamespaceExport(name: Identifier): NamespaceExport;
@@ -8186,8 +8203,8 @@ declare namespace ts {
8186
8203
  updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
8187
8204
  createExportAssignment(modifiers: readonly ModifierLike[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
8188
8205
  updateExportAssignment(node: ExportAssignment, modifiers: readonly ModifierLike[] | undefined, expression: Expression): ExportAssignment;
8189
- createExportDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
8190
- updateExportDeclaration(node: ExportDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
8206
+ createExportDeclaration(modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, attributes?: ImportAttributes): ExportDeclaration;
8207
+ updateExportDeclaration(node: ExportDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, attributes: ImportAttributes | undefined): ExportDeclaration;
8191
8208
  createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
8192
8209
  updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
8193
8210
  createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
@@ -8636,7 +8653,8 @@ declare namespace ts {
8636
8653
  ObjectBindingPatternElements = 525136,
8637
8654
  ArrayBindingPatternElements = 524880,
8638
8655
  ObjectLiteralExpressionProperties = 526226,
8639
- ImportClauseEntries = 526226,
8656
+ ImportAttributes = 526226,
8657
+ /** @deprecated */ ImportClauseEntries = 526226,
8640
8658
  ArrayLiteralExpressionElements = 8914,
8641
8659
  CommaListElements = 528,
8642
8660
  CallExpressionArguments = 2576,
@@ -9094,8 +9112,8 @@ declare namespace ts {
9094
9112
  function isTypeOnlyImportDeclaration(node: Node): node is TypeOnlyImportDeclaration;
9095
9113
  function isTypeOnlyExportDeclaration(node: Node): node is TypeOnlyExportDeclaration;
9096
9114
  function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
9097
- function isAssertionKey(node: Node): node is AssertionKey;
9098
9115
  function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
9116
+ function isImportAttributeName(node: Node): node is ImportAttributeName;
9099
9117
  function isModifier(node: Node): node is Modifier;
9100
9118
  function isEntityName(node: Node): node is EntityName;
9101
9119
  function isPropertyName(node: Node): node is PropertyName;
@@ -9397,8 +9415,12 @@ declare namespace ts {
9397
9415
  function isImportDeclaration(node: Node): node is ImportDeclaration;
9398
9416
  function isImportClause(node: Node): node is ImportClause;
9399
9417
  function isImportTypeAssertionContainer(node: Node): node is ImportTypeAssertionContainer;
9418
+ /** @deprecated */
9400
9419
  function isAssertClause(node: Node): node is AssertClause;
9420
+ /** @deprecated */
9401
9421
  function isAssertEntry(node: Node): node is AssertEntry;
9422
+ function isImportAttributes(node: Node): node is ImportAttributes;
9423
+ function isImportAttribute(node: Node): node is ImportAttribute;
9402
9424
  function isNamespaceImport(node: Node): node is NamespaceImport;
9403
9425
  function isNamespaceExport(node: Node): node is NamespaceExport;
9404
9426
  function isNamedImports(node: Node): node is NamedImports;