@typescript-deploys/pr-build 5.0.0-pr-51682-13 → 5.0.0-pr-51669-12

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.
@@ -691,6 +691,7 @@ declare namespace ts {
691
691
  */
692
692
  interface GetSupportedCodeFixesRequest extends Request {
693
693
  command: CommandTypes.GetSupportedCodeFixes;
694
+ arguments?: Partial<FileRequestArgs>;
694
695
  }
695
696
  /**
696
697
  * A response for GetSupportedCodeFixesRequest request.
@@ -4510,16 +4511,9 @@ declare namespace ts {
4510
4511
  */
4511
4512
  readonly modifiers?: NodeArray<ModifierLike> | undefined;
4512
4513
  }
4513
- interface JSDocContainer extends Node {
4514
- _jsdocContainerBrand: any;
4514
+ interface JSDocContainer {
4515
4515
  }
4516
- interface LocalsContainer extends Node {
4517
- _localsContainerBrand: any;
4518
- }
4519
- interface FlowContainer extends Node {
4520
- _flowContainerBrand: any;
4521
- }
4522
- type HasJSDoc = AccessorDeclaration | ArrowFunction | BinaryExpression | Block | BreakStatement | CallSignatureDeclaration | CaseClause | ClassLikeDeclaration | ClassStaticBlockDeclaration | ConstructorDeclaration | ConstructorTypeNode | ConstructSignatureDeclaration | ContinueStatement | DebuggerStatement | DoStatement | ElementAccessExpression | EmptyStatement | EndOfFileToken | EnumDeclaration | EnumMember | ExportAssignment | ExportDeclaration | ExportSpecifier | ExpressionStatement | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | FunctionTypeNode | Identifier | IfStatement | ImportDeclaration | ImportEqualsDeclaration | IndexSignatureDeclaration | InterfaceDeclaration | JSDocFunctionType | JSDocSignature | LabeledStatement | MethodDeclaration | MethodSignature | ModuleDeclaration | NamedTupleMember | NamespaceExportDeclaration | ObjectLiteralExpression | ParameterDeclaration | ParenthesizedExpression | PropertyAccessExpression | PropertyAssignment | PropertyDeclaration | PropertySignature | ReturnStatement | ShorthandPropertyAssignment | SpreadAssignment | SwitchStatement | ThrowStatement | TryStatement | TypeAliasDeclaration | TypeParameterDeclaration | VariableDeclaration | VariableStatement | WhileStatement | WithStatement;
4516
+ type HasJSDoc = ParameterDeclaration | CallSignatureDeclaration | ClassStaticBlockDeclaration | ConstructSignatureDeclaration | MethodSignature | PropertySignature | ArrowFunction | ParenthesizedExpression | SpreadAssignment | ShorthandPropertyAssignment | PropertyAssignment | FunctionExpression | EmptyStatement | DebuggerStatement | Block | VariableStatement | ExpressionStatement | IfStatement | DoStatement | WhileStatement | ForStatement | ForInStatement | ForOfStatement | BreakStatement | ContinueStatement | ReturnStatement | WithStatement | SwitchStatement | LabeledStatement | ThrowStatement | TryStatement | FunctionDeclaration | ConstructorDeclaration | MethodDeclaration | VariableDeclaration | PropertyDeclaration | AccessorDeclaration | ClassLikeDeclaration | InterfaceDeclaration | TypeAliasDeclaration | EnumMember | EnumDeclaration | ModuleDeclaration | ImportEqualsDeclaration | ImportDeclaration | NamespaceExportDeclaration | ExportAssignment | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | ExportDeclaration | NamedTupleMember | ExportSpecifier | CaseClause | EndOfFileToken;
4523
4517
  type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
4524
4518
  type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
4525
4519
  type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
@@ -4587,7 +4581,7 @@ declare namespace ts {
4587
4581
  FileLevel = 32,
4588
4582
  AllowNameSubstitution = 64
4589
4583
  }
4590
- interface Identifier extends PrimaryExpression, Declaration, JSDocContainer, FlowContainer {
4584
+ interface Identifier extends PrimaryExpression, Declaration {
4591
4585
  readonly kind: SyntaxKind.Identifier;
4592
4586
  /**
4593
4587
  * Prefer to use `id.unescapedText`. (Note: This is available only in services, not internally to the TypeScript compiler.)
@@ -4603,7 +4597,7 @@ declare namespace ts {
4603
4597
  interface TransientIdentifier extends Identifier {
4604
4598
  resolvedSymbol: Symbol;
4605
4599
  }
4606
- interface QualifiedName extends Node, FlowContainer {
4600
+ interface QualifiedName extends Node {
4607
4601
  readonly kind: SyntaxKind.QualifiedName;
4608
4602
  readonly left: EntityName;
4609
4603
  readonly right: Identifier;
@@ -4638,7 +4632,7 @@ declare namespace ts {
4638
4632
  readonly parent: NamedDeclaration;
4639
4633
  readonly expression: LeftHandSideExpression;
4640
4634
  }
4641
- interface TypeParameterDeclaration extends NamedDeclaration, JSDocContainer {
4635
+ interface TypeParameterDeclaration extends NamedDeclaration {
4642
4636
  readonly kind: SyntaxKind.TypeParameter;
4643
4637
  readonly parent: DeclarationWithTypeParameterChildren | InferTypeNode;
4644
4638
  readonly modifiers?: NodeArray<Modifier>;
@@ -4656,10 +4650,10 @@ declare namespace ts {
4656
4650
  readonly type?: TypeNode | undefined;
4657
4651
  }
4658
4652
  type SignatureDeclaration = CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | AccessorDeclaration | FunctionExpression | ArrowFunction;
4659
- interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement, LocalsContainer {
4653
+ interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement {
4660
4654
  readonly kind: SyntaxKind.CallSignature;
4661
4655
  }
4662
- interface ConstructSignatureDeclaration extends SignatureDeclarationBase, TypeElement, LocalsContainer {
4656
+ interface ConstructSignatureDeclaration extends SignatureDeclarationBase, TypeElement {
4663
4657
  readonly kind: SyntaxKind.ConstructSignature;
4664
4658
  }
4665
4659
  type BindingName = Identifier | BindingPattern;
@@ -4686,7 +4680,7 @@ declare namespace ts {
4686
4680
  readonly type?: TypeNode;
4687
4681
  readonly initializer?: Expression;
4688
4682
  }
4689
- interface BindingElement extends NamedDeclaration, FlowContainer {
4683
+ interface BindingElement extends NamedDeclaration {
4690
4684
  readonly kind: SyntaxKind.BindingElement;
4691
4685
  readonly parent: BindingPattern;
4692
4686
  readonly propertyName?: PropertyName;
@@ -4696,7 +4690,6 @@ declare namespace ts {
4696
4690
  }
4697
4691
  interface PropertySignature extends TypeElement, JSDocContainer {
4698
4692
  readonly kind: SyntaxKind.PropertySignature;
4699
- readonly parent: TypeLiteralNode | InterfaceDeclaration;
4700
4693
  readonly modifiers?: NodeArray<Modifier>;
4701
4694
  readonly name: PropertyName;
4702
4695
  readonly questionToken?: QuestionToken;
@@ -4758,6 +4751,9 @@ declare namespace ts {
4758
4751
  readonly expression: Expression;
4759
4752
  }
4760
4753
  type VariableLikeDeclaration = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | PropertyAssignment | PropertySignature | JsxAttribute | ShorthandPropertyAssignment | EnumMember | JSDocPropertyTag | JSDocParameterTag;
4754
+ interface PropertyLikeDeclaration extends NamedDeclaration {
4755
+ readonly name: PropertyName;
4756
+ }
4761
4757
  interface ObjectBindingPattern extends Node {
4762
4758
  readonly kind: SyntaxKind.ObjectBindingPattern;
4763
4759
  readonly parent: VariableDeclaration | ParameterDeclaration | BindingElement;
@@ -4788,26 +4784,26 @@ declare namespace ts {
4788
4784
  type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction;
4789
4785
  /** @deprecated Use SignatureDeclaration */
4790
4786
  type FunctionLike = SignatureDeclaration;
4791
- interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement, LocalsContainer {
4787
+ interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement {
4792
4788
  readonly kind: SyntaxKind.FunctionDeclaration;
4793
4789
  readonly modifiers?: NodeArray<Modifier>;
4794
4790
  readonly name?: Identifier;
4795
4791
  readonly body?: FunctionBody;
4796
4792
  }
4797
- interface MethodSignature extends SignatureDeclarationBase, TypeElement, LocalsContainer {
4793
+ interface MethodSignature extends SignatureDeclarationBase, TypeElement {
4798
4794
  readonly kind: SyntaxKind.MethodSignature;
4799
- readonly parent: TypeLiteralNode | InterfaceDeclaration;
4795
+ readonly parent: ObjectTypeDeclaration;
4800
4796
  readonly modifiers?: NodeArray<Modifier>;
4801
4797
  readonly name: PropertyName;
4802
4798
  }
4803
- interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer, LocalsContainer, FlowContainer {
4799
+ interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer {
4804
4800
  readonly kind: SyntaxKind.MethodDeclaration;
4805
4801
  readonly parent: ClassLikeDeclaration | ObjectLiteralExpression;
4806
4802
  readonly modifiers?: NodeArray<ModifierLike> | undefined;
4807
4803
  readonly name: PropertyName;
4808
4804
  readonly body?: FunctionBody | undefined;
4809
4805
  }
4810
- interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer, LocalsContainer {
4806
+ interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer {
4811
4807
  readonly kind: SyntaxKind.Constructor;
4812
4808
  readonly parent: ClassLikeDeclaration;
4813
4809
  readonly modifiers?: NodeArray<Modifier> | undefined;
@@ -4818,14 +4814,14 @@ declare namespace ts {
4818
4814
  readonly kind: SyntaxKind.SemicolonClassElement;
4819
4815
  readonly parent: ClassLikeDeclaration;
4820
4816
  }
4821
- interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer, LocalsContainer, FlowContainer {
4817
+ interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
4822
4818
  readonly kind: SyntaxKind.GetAccessor;
4823
4819
  readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
4824
4820
  readonly modifiers?: NodeArray<ModifierLike>;
4825
4821
  readonly name: PropertyName;
4826
4822
  readonly body?: FunctionBody;
4827
4823
  }
4828
- interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer, LocalsContainer, FlowContainer {
4824
+ interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
4829
4825
  readonly kind: SyntaxKind.SetAccessor;
4830
4826
  readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
4831
4827
  readonly modifiers?: NodeArray<ModifierLike>;
@@ -4833,13 +4829,13 @@ declare namespace ts {
4833
4829
  readonly body?: FunctionBody;
4834
4830
  }
4835
4831
  type AccessorDeclaration = GetAccessorDeclaration | SetAccessorDeclaration;
4836
- interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement, LocalsContainer {
4832
+ interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement {
4837
4833
  readonly kind: SyntaxKind.IndexSignature;
4838
4834
  readonly parent: ObjectTypeDeclaration;
4839
4835
  readonly modifiers?: NodeArray<Modifier>;
4840
4836
  readonly type: TypeNode;
4841
4837
  }
4842
- interface ClassStaticBlockDeclaration extends ClassElement, JSDocContainer, LocalsContainer {
4838
+ interface ClassStaticBlockDeclaration extends ClassElement, JSDocContainer {
4843
4839
  readonly kind: SyntaxKind.ClassStaticBlockDeclaration;
4844
4840
  readonly parent: ClassDeclaration | ClassExpression;
4845
4841
  readonly body: Block;
@@ -4871,14 +4867,14 @@ declare namespace ts {
4871
4867
  readonly kind: SyntaxKind.FunctionType | SyntaxKind.ConstructorType;
4872
4868
  readonly type: TypeNode;
4873
4869
  }
4874
- interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer {
4870
+ interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase {
4875
4871
  readonly kind: SyntaxKind.FunctionType;
4876
4872
  }
4877
4873
  interface FunctionTypeNode {
4878
4874
  /** @deprecated A function type cannot have modifiers */
4879
4875
  readonly modifiers?: NodeArray<Modifier> | undefined;
4880
4876
  }
4881
- interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer {
4877
+ interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase {
4882
4878
  readonly kind: SyntaxKind.ConstructorType;
4883
4879
  readonly modifiers?: NodeArray<Modifier>;
4884
4880
  }
@@ -4913,7 +4909,7 @@ declare namespace ts {
4913
4909
  readonly kind: SyntaxKind.TupleType;
4914
4910
  readonly elements: NodeArray<TypeNode | NamedTupleMember>;
4915
4911
  }
4916
- interface NamedTupleMember extends TypeNode, Declaration, JSDocContainer {
4912
+ interface NamedTupleMember extends TypeNode, JSDocContainer, Declaration {
4917
4913
  readonly kind: SyntaxKind.NamedTupleMember;
4918
4914
  readonly dotDotDotToken?: Token<SyntaxKind.DotDotDotToken>;
4919
4915
  readonly name: Identifier;
@@ -4937,7 +4933,7 @@ declare namespace ts {
4937
4933
  readonly kind: SyntaxKind.IntersectionType;
4938
4934
  readonly types: NodeArray<TypeNode>;
4939
4935
  }
4940
- interface ConditionalTypeNode extends TypeNode, LocalsContainer {
4936
+ interface ConditionalTypeNode extends TypeNode {
4941
4937
  readonly kind: SyntaxKind.ConditionalType;
4942
4938
  readonly checkType: TypeNode;
4943
4939
  readonly extendsType: TypeNode;
@@ -4962,7 +4958,7 @@ declare namespace ts {
4962
4958
  readonly objectType: TypeNode;
4963
4959
  readonly indexType: TypeNode;
4964
4960
  }
4965
- interface MappedTypeNode extends TypeNode, Declaration, LocalsContainer {
4961
+ interface MappedTypeNode extends TypeNode, Declaration {
4966
4962
  readonly kind: SyntaxKind.MappedType;
4967
4963
  readonly readonlyToken?: ReadonlyKeyword | PlusToken | MinusToken;
4968
4964
  readonly typeParameter: TypeParameterDeclaration;
@@ -5041,10 +5037,10 @@ declare namespace ts {
5041
5037
  readonly kind: SyntaxKind.FalseKeyword;
5042
5038
  }
5043
5039
  type BooleanLiteral = TrueLiteral | FalseLiteral;
5044
- interface ThisExpression extends PrimaryExpression, FlowContainer {
5040
+ interface ThisExpression extends PrimaryExpression {
5045
5041
  readonly kind: SyntaxKind.ThisKeyword;
5046
5042
  }
5047
- interface SuperExpression extends PrimaryExpression, FlowContainer {
5043
+ interface SuperExpression extends PrimaryExpression {
5048
5044
  readonly kind: SyntaxKind.SuperKeyword;
5049
5045
  }
5050
5046
  interface ImportExpression extends PrimaryExpression {
@@ -5098,7 +5094,7 @@ declare namespace ts {
5098
5094
  type BinaryOperator = AssignmentOperatorOrHigher | SyntaxKind.CommaToken;
5099
5095
  type LogicalOrCoalescingAssignmentOperator = SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionEqualsToken;
5100
5096
  type BinaryOperatorToken = Token<BinaryOperator>;
5101
- interface BinaryExpression extends Expression, Declaration, JSDocContainer {
5097
+ interface BinaryExpression extends Expression, Declaration {
5102
5098
  readonly kind: SyntaxKind.BinaryExpression;
5103
5099
  readonly left: Expression;
5104
5100
  readonly operatorToken: BinaryOperatorToken;
@@ -5135,13 +5131,13 @@ declare namespace ts {
5135
5131
  }
5136
5132
  type FunctionBody = Block;
5137
5133
  type ConciseBody = FunctionBody | Expression;
5138
- interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer, LocalsContainer, FlowContainer {
5134
+ interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer {
5139
5135
  readonly kind: SyntaxKind.FunctionExpression;
5140
5136
  readonly modifiers?: NodeArray<Modifier>;
5141
5137
  readonly name?: Identifier;
5142
5138
  readonly body: FunctionBody;
5143
5139
  }
5144
- interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer, LocalsContainer, FlowContainer {
5140
+ interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer {
5145
5141
  readonly kind: SyntaxKind.ArrowFunction;
5146
5142
  readonly modifiers?: NodeArray<Modifier>;
5147
5143
  readonly equalsGreaterThanToken: EqualsGreaterThanToken;
@@ -5228,13 +5224,13 @@ declare namespace ts {
5228
5224
  interface ObjectLiteralExpressionBase<T extends ObjectLiteralElement> extends PrimaryExpression, Declaration {
5229
5225
  readonly properties: NodeArray<T>;
5230
5226
  }
5231
- interface ObjectLiteralExpression extends ObjectLiteralExpressionBase<ObjectLiteralElementLike>, JSDocContainer {
5227
+ interface ObjectLiteralExpression extends ObjectLiteralExpressionBase<ObjectLiteralElementLike> {
5232
5228
  readonly kind: SyntaxKind.ObjectLiteralExpression;
5233
5229
  }
5234
5230
  type EntityNameExpression = Identifier | PropertyAccessEntityNameExpression;
5235
5231
  type EntityNameOrEntityNameExpression = EntityName | EntityNameExpression;
5236
5232
  type AccessExpression = PropertyAccessExpression | ElementAccessExpression;
5237
- interface PropertyAccessExpression extends MemberExpression, NamedDeclaration, JSDocContainer, FlowContainer {
5233
+ interface PropertyAccessExpression extends MemberExpression, NamedDeclaration {
5238
5234
  readonly kind: SyntaxKind.PropertyAccessExpression;
5239
5235
  readonly expression: LeftHandSideExpression;
5240
5236
  readonly questionDotToken?: QuestionDotToken;
@@ -5253,7 +5249,7 @@ declare namespace ts {
5253
5249
  readonly expression: EntityNameExpression;
5254
5250
  readonly name: Identifier;
5255
5251
  }
5256
- interface ElementAccessExpression extends MemberExpression, Declaration, JSDocContainer, FlowContainer {
5252
+ interface ElementAccessExpression extends MemberExpression {
5257
5253
  readonly kind: SyntaxKind.ElementAccessExpression;
5258
5254
  readonly expression: LeftHandSideExpression;
5259
5255
  readonly questionDotToken?: QuestionDotToken;
@@ -5323,7 +5319,7 @@ declare namespace ts {
5323
5319
  interface NonNullChain extends NonNullExpression {
5324
5320
  _optionalChainBrand: any;
5325
5321
  }
5326
- interface MetaProperty extends PrimaryExpression, FlowContainer {
5322
+ interface MetaProperty extends PrimaryExpression {
5327
5323
  readonly kind: SyntaxKind.MetaProperty;
5328
5324
  readonly keywordToken: SyntaxKind.NewKeyword | SyntaxKind.ImportKeyword;
5329
5325
  readonly name: Identifier;
@@ -5416,7 +5412,7 @@ declare namespace ts {
5416
5412
  interface EmptyStatement extends Statement {
5417
5413
  readonly kind: SyntaxKind.EmptyStatement;
5418
5414
  }
5419
- interface DebuggerStatement extends Statement, FlowContainer {
5415
+ interface DebuggerStatement extends Statement {
5420
5416
  readonly kind: SyntaxKind.DebuggerStatement;
5421
5417
  }
5422
5418
  interface MissingDeclaration extends DeclarationStatement {
@@ -5424,20 +5420,20 @@ declare namespace ts {
5424
5420
  readonly name?: Identifier;
5425
5421
  }
5426
5422
  type BlockLike = SourceFile | Block | ModuleBlock | CaseOrDefaultClause;
5427
- interface Block extends Statement, LocalsContainer {
5423
+ interface Block extends Statement {
5428
5424
  readonly kind: SyntaxKind.Block;
5429
5425
  readonly statements: NodeArray<Statement>;
5430
5426
  }
5431
- interface VariableStatement extends Statement, FlowContainer {
5427
+ interface VariableStatement extends Statement {
5432
5428
  readonly kind: SyntaxKind.VariableStatement;
5433
5429
  readonly modifiers?: NodeArray<Modifier>;
5434
5430
  readonly declarationList: VariableDeclarationList;
5435
5431
  }
5436
- interface ExpressionStatement extends Statement, FlowContainer {
5432
+ interface ExpressionStatement extends Statement {
5437
5433
  readonly kind: SyntaxKind.ExpressionStatement;
5438
5434
  readonly expression: Expression;
5439
5435
  }
5440
- interface IfStatement extends Statement, FlowContainer {
5436
+ interface IfStatement extends Statement {
5441
5437
  readonly kind: SyntaxKind.IfStatement;
5442
5438
  readonly expression: Expression;
5443
5439
  readonly thenStatement: Statement;
@@ -5446,58 +5442,58 @@ declare namespace ts {
5446
5442
  interface IterationStatement extends Statement {
5447
5443
  readonly statement: Statement;
5448
5444
  }
5449
- interface DoStatement extends IterationStatement, FlowContainer {
5445
+ interface DoStatement extends IterationStatement {
5450
5446
  readonly kind: SyntaxKind.DoStatement;
5451
5447
  readonly expression: Expression;
5452
5448
  }
5453
- interface WhileStatement extends IterationStatement, FlowContainer {
5449
+ interface WhileStatement extends IterationStatement {
5454
5450
  readonly kind: SyntaxKind.WhileStatement;
5455
5451
  readonly expression: Expression;
5456
5452
  }
5457
5453
  type ForInitializer = VariableDeclarationList | Expression;
5458
- interface ForStatement extends IterationStatement, LocalsContainer, FlowContainer {
5454
+ interface ForStatement extends IterationStatement {
5459
5455
  readonly kind: SyntaxKind.ForStatement;
5460
5456
  readonly initializer?: ForInitializer;
5461
5457
  readonly condition?: Expression;
5462
5458
  readonly incrementor?: Expression;
5463
5459
  }
5464
5460
  type ForInOrOfStatement = ForInStatement | ForOfStatement;
5465
- interface ForInStatement extends IterationStatement, LocalsContainer, FlowContainer {
5461
+ interface ForInStatement extends IterationStatement {
5466
5462
  readonly kind: SyntaxKind.ForInStatement;
5467
5463
  readonly initializer: ForInitializer;
5468
5464
  readonly expression: Expression;
5469
5465
  }
5470
- interface ForOfStatement extends IterationStatement, LocalsContainer, FlowContainer {
5466
+ interface ForOfStatement extends IterationStatement {
5471
5467
  readonly kind: SyntaxKind.ForOfStatement;
5472
5468
  readonly awaitModifier?: AwaitKeyword;
5473
5469
  readonly initializer: ForInitializer;
5474
5470
  readonly expression: Expression;
5475
5471
  }
5476
- interface BreakStatement extends Statement, FlowContainer {
5472
+ interface BreakStatement extends Statement {
5477
5473
  readonly kind: SyntaxKind.BreakStatement;
5478
5474
  readonly label?: Identifier;
5479
5475
  }
5480
- interface ContinueStatement extends Statement, FlowContainer {
5476
+ interface ContinueStatement extends Statement {
5481
5477
  readonly kind: SyntaxKind.ContinueStatement;
5482
5478
  readonly label?: Identifier;
5483
5479
  }
5484
5480
  type BreakOrContinueStatement = BreakStatement | ContinueStatement;
5485
- interface ReturnStatement extends Statement, FlowContainer {
5481
+ interface ReturnStatement extends Statement {
5486
5482
  readonly kind: SyntaxKind.ReturnStatement;
5487
5483
  readonly expression?: Expression;
5488
5484
  }
5489
- interface WithStatement extends Statement, FlowContainer {
5485
+ interface WithStatement extends Statement {
5490
5486
  readonly kind: SyntaxKind.WithStatement;
5491
5487
  readonly expression: Expression;
5492
5488
  readonly statement: Statement;
5493
5489
  }
5494
- interface SwitchStatement extends Statement, FlowContainer {
5490
+ interface SwitchStatement extends Statement {
5495
5491
  readonly kind: SyntaxKind.SwitchStatement;
5496
5492
  readonly expression: Expression;
5497
5493
  readonly caseBlock: CaseBlock;
5498
5494
  possiblyExhaustive?: boolean;
5499
5495
  }
5500
- interface CaseBlock extends Node, LocalsContainer {
5496
+ interface CaseBlock extends Node {
5501
5497
  readonly kind: SyntaxKind.CaseBlock;
5502
5498
  readonly parent: SwitchStatement;
5503
5499
  readonly clauses: NodeArray<CaseOrDefaultClause>;
@@ -5514,22 +5510,22 @@ declare namespace ts {
5514
5510
  readonly statements: NodeArray<Statement>;
5515
5511
  }
5516
5512
  type CaseOrDefaultClause = CaseClause | DefaultClause;
5517
- interface LabeledStatement extends Statement, FlowContainer {
5513
+ interface LabeledStatement extends Statement {
5518
5514
  readonly kind: SyntaxKind.LabeledStatement;
5519
5515
  readonly label: Identifier;
5520
5516
  readonly statement: Statement;
5521
5517
  }
5522
- interface ThrowStatement extends Statement, FlowContainer {
5518
+ interface ThrowStatement extends Statement {
5523
5519
  readonly kind: SyntaxKind.ThrowStatement;
5524
5520
  readonly expression: Expression;
5525
5521
  }
5526
- interface TryStatement extends Statement, FlowContainer {
5522
+ interface TryStatement extends Statement {
5527
5523
  readonly kind: SyntaxKind.TryStatement;
5528
5524
  readonly tryBlock: Block;
5529
5525
  readonly catchClause?: CatchClause;
5530
5526
  readonly finallyBlock?: Block;
5531
5527
  }
5532
- interface CatchClause extends Node, LocalsContainer {
5528
+ interface CatchClause extends Node {
5533
5529
  readonly kind: SyntaxKind.CatchClause;
5534
5530
  readonly parent: TryStatement;
5535
5531
  readonly variableDeclaration?: VariableDeclaration;
@@ -5579,7 +5575,7 @@ declare namespace ts {
5579
5575
  readonly token: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword;
5580
5576
  readonly types: NodeArray<ExpressionWithTypeArguments>;
5581
5577
  }
5582
- interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer, LocalsContainer {
5578
+ interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer {
5583
5579
  readonly kind: SyntaxKind.TypeAliasDeclaration;
5584
5580
  readonly modifiers?: NodeArray<Modifier>;
5585
5581
  readonly name: Identifier;
@@ -5600,7 +5596,7 @@ declare namespace ts {
5600
5596
  }
5601
5597
  type ModuleName = Identifier | StringLiteral;
5602
5598
  type ModuleBody = NamespaceBody | JSDocNamespaceBody;
5603
- interface ModuleDeclaration extends DeclarationStatement, JSDocContainer, LocalsContainer {
5599
+ interface ModuleDeclaration extends DeclarationStatement, JSDocContainer {
5604
5600
  readonly kind: SyntaxKind.ModuleDeclaration;
5605
5601
  readonly parent: ModuleBody | SourceFile;
5606
5602
  readonly modifiers?: NodeArray<Modifier>;
@@ -5816,7 +5812,7 @@ declare namespace ts {
5816
5812
  readonly kind: SyntaxKind.JSDocOptionalType;
5817
5813
  readonly type: TypeNode;
5818
5814
  }
5819
- interface JSDocFunctionType extends JSDocType, SignatureDeclarationBase, LocalsContainer {
5815
+ interface JSDocFunctionType extends JSDocType, SignatureDeclarationBase {
5820
5816
  readonly kind: SyntaxKind.JSDocFunctionType;
5821
5817
  }
5822
5818
  interface JSDocVariadicType extends JSDocType {
@@ -5902,7 +5898,7 @@ declare namespace ts {
5902
5898
  interface JSDocOverrideTag extends JSDocTag {
5903
5899
  readonly kind: SyntaxKind.JSDocOverrideTag;
5904
5900
  }
5905
- interface JSDocEnumTag extends JSDocTag, Declaration, LocalsContainer {
5901
+ interface JSDocEnumTag extends JSDocTag, Declaration {
5906
5902
  readonly kind: SyntaxKind.JSDocEnumTag;
5907
5903
  readonly parent: JSDoc;
5908
5904
  readonly typeExpression: JSDocTypeExpression;
@@ -5928,21 +5924,21 @@ declare namespace ts {
5928
5924
  readonly kind: SyntaxKind.JSDocTypeTag;
5929
5925
  readonly typeExpression: JSDocTypeExpression;
5930
5926
  }
5931
- interface JSDocTypedefTag extends JSDocTag, NamedDeclaration, LocalsContainer {
5927
+ interface JSDocTypedefTag extends JSDocTag, NamedDeclaration {
5932
5928
  readonly kind: SyntaxKind.JSDocTypedefTag;
5933
5929
  readonly parent: JSDoc;
5934
5930
  readonly fullName?: JSDocNamespaceDeclaration | Identifier;
5935
5931
  readonly name?: Identifier;
5936
5932
  readonly typeExpression?: JSDocTypeExpression | JSDocTypeLiteral;
5937
5933
  }
5938
- interface JSDocCallbackTag extends JSDocTag, NamedDeclaration, LocalsContainer {
5934
+ interface JSDocCallbackTag extends JSDocTag, NamedDeclaration {
5939
5935
  readonly kind: SyntaxKind.JSDocCallbackTag;
5940
5936
  readonly parent: JSDoc;
5941
5937
  readonly fullName?: JSDocNamespaceDeclaration | Identifier;
5942
5938
  readonly name?: Identifier;
5943
5939
  readonly typeExpression: JSDocSignature;
5944
5940
  }
5945
- interface JSDocSignature extends JSDocType, Declaration, JSDocContainer, LocalsContainer {
5941
+ interface JSDocSignature extends JSDocType, Declaration {
5946
5942
  readonly kind: SyntaxKind.JSDocSignature;
5947
5943
  readonly typeParameters?: readonly JSDocTemplateTag[];
5948
5944
  readonly parameters: readonly JSDocParameterTag[];
@@ -5962,7 +5958,7 @@ declare namespace ts {
5962
5958
  interface JSDocParameterTag extends JSDocPropertyLikeTag {
5963
5959
  readonly kind: SyntaxKind.JSDocParameterTag;
5964
5960
  }
5965
- interface JSDocTypeLiteral extends JSDocType, Declaration {
5961
+ interface JSDocTypeLiteral extends JSDocType {
5966
5962
  readonly kind: SyntaxKind.JSDocTypeLiteral;
5967
5963
  readonly jsDocPropertyTags?: readonly JSDocPropertyLikeTag[];
5968
5964
  /** If true, then this type literal represents an *array* of its type. */
@@ -6042,7 +6038,7 @@ declare namespace ts {
6042
6038
  getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
6043
6039
  }
6044
6040
  type ResolutionMode = ModuleKind.ESNext | ModuleKind.CommonJS | undefined;
6045
- interface SourceFile extends Declaration, LocalsContainer {
6041
+ interface SourceFile extends Declaration {
6046
6042
  readonly kind: SyntaxKind.SourceFile;
6047
6043
  readonly statements: NodeArray<Statement>;
6048
6044
  readonly endOfFileToken: Token<SyntaxKind.EndOfFileToken>;
@@ -6965,7 +6961,8 @@ declare namespace ts {
6965
6961
  Classic = 1,
6966
6962
  NodeJs = 2,
6967
6963
  Node16 = 3,
6968
- NodeNext = 99
6964
+ NodeNext = 99,
6965
+ Hybrid = 100
6969
6966
  }
6970
6967
  enum ModuleDetectionKind {
6971
6968
  /**
@@ -7016,6 +7013,7 @@ declare namespace ts {
7016
7013
  }
7017
7014
  type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined;
7018
7015
  interface CompilerOptions {
7016
+ allowImportingTsExtensions?: boolean;
7019
7017
  allowJs?: boolean;
7020
7018
  allowSyntheticDefaultImports?: boolean;
7021
7019
  allowUmdGlobalAccess?: boolean;
@@ -7025,6 +7023,7 @@ declare namespace ts {
7025
7023
  baseUrl?: string;
7026
7024
  charset?: string;
7027
7025
  checkJs?: boolean;
7026
+ customConditions?: string[];
7028
7027
  declaration?: boolean;
7029
7028
  declarationMap?: boolean;
7030
7029
  emitDeclarationOnly?: boolean;
@@ -7089,6 +7088,8 @@ declare namespace ts {
7089
7088
  incremental?: boolean;
7090
7089
  tsBuildInfoFile?: string;
7091
7090
  removeComments?: boolean;
7091
+ resolvePackageJsonExports?: boolean;
7092
+ resolvePackageJsonImports?: boolean;
7092
7093
  rootDir?: string;
7093
7094
  rootDirs?: string[];
7094
7095
  skipLibCheck?: boolean;
@@ -7260,6 +7261,11 @@ declare namespace ts {
7260
7261
  resolvedFileName: string;
7261
7262
  /** True if `resolvedFileName` comes from `node_modules`. */
7262
7263
  isExternalLibraryImport?: boolean;
7264
+ /**
7265
+ * True if the original module reference used a .ts extension to refer directly to a .ts file,
7266
+ * which should produce an error during checking if emit is enabled.
7267
+ */
7268
+ resolvedUsingTsExtension?: boolean;
7263
7269
  }
7264
7270
  /**
7265
7271
  * ResolvedModule with an explicitly provided `extension` property.
@@ -7468,12 +7474,11 @@ declare namespace ts {
7468
7474
  createToken(token: SyntaxKind.NullKeyword): NullLiteral;
7469
7475
  createToken(token: SyntaxKind.TrueKeyword): TrueLiteral;
7470
7476
  createToken(token: SyntaxKind.FalseKeyword): FalseLiteral;
7471
- createToken(token: SyntaxKind.EndOfFileToken): EndOfFileToken;
7472
- createToken(token: SyntaxKind.Unknown): Token<SyntaxKind.Unknown>;
7473
7477
  createToken<TKind extends PunctuationSyntaxKind>(token: TKind): PunctuationToken<TKind>;
7474
7478
  createToken<TKind extends KeywordTypeSyntaxKind>(token: TKind): KeywordTypeNode<TKind>;
7475
7479
  createToken<TKind extends ModifierSyntaxKind>(token: TKind): ModifierToken<TKind>;
7476
7480
  createToken<TKind extends KeywordSyntaxKind>(token: TKind): KeywordToken<TKind>;
7481
+ createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): Token<TKind>;
7477
7482
  createSuper(): SuperExpression;
7478
7483
  createThis(): ThisExpression;
7479
7484
  createNull(): NullLiteral;
@@ -8764,6 +8769,7 @@ declare namespace ts {
8764
8769
  parent: ConstructorDeclaration;
8765
8770
  name: Identifier;
8766
8771
  };
8772
+ function emitModuleKindIsNonNodeESM(moduleKind: ModuleKind): boolean;
8767
8773
  function createUnparsedSourceFile(text: string): UnparsedSource;
8768
8774
  function createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource;
8769
8775
  function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource;
@@ -9191,8 +9197,11 @@ declare namespace ts {
9191
9197
  function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
9192
9198
  function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined;
9193
9199
  function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
9200
+ function hybridModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
9194
9201
  function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
9195
9202
  function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
9203
+ function moduleResolutionSupportsResolvingTsExtensions(compilerOptions: CompilerOptions): boolean;
9204
+ function shouldAllowImportingTsExtension(compilerOptions: CompilerOptions, fromFileName?: string): boolean | "" | undefined;
9196
9205
  interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, NonRelativeNameResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, PackageJsonInfoCache {
9197
9206
  }
9198
9207
  interface ModeAwareCache<T> {
@@ -10057,6 +10066,7 @@ declare namespace ts {
10057
10066
  toggleMultilineComment(fileName: string, textRange: TextRange): TextChange[];
10058
10067
  commentSelection(fileName: string, textRange: TextRange): TextChange[];
10059
10068
  uncommentSelection(fileName: string, textRange: TextRange): TextChange[];
10069
+ getSupportedCodeFixes(fileName?: string): readonly string[];
10060
10070
  dispose(): void;
10061
10071
  }
10062
10072
  interface JsxClosingTagInfo {
@@ -11039,7 +11049,7 @@ declare namespace ts {
11039
11049
  function toEditorSettings(options: EditorOptions | EditorSettings): EditorSettings;
11040
11050
  function displayPartsToString(displayParts: SymbolDisplayPart[] | undefined): string;
11041
11051
  function getDefaultCompilerOptions(): CompilerOptions;
11042
- function getSupportedCodeFixes(): string[];
11052
+ function getSupportedCodeFixes(): readonly string[];
11043
11053
  function createLanguageServiceSourceFile(fileName: string, scriptSnapshot: IScriptSnapshot, scriptTargetOrOptions: ScriptTarget | CreateSourceFileOptions, version: string, setNodeParents: boolean, scriptKind?: ScriptKind): SourceFile;
11044
11054
  function updateLanguageServiceSourceFile(sourceFile: SourceFile, scriptSnapshot: IScriptSnapshot, version: string, textChangeRange: TextChangeRange | undefined, aggressiveChecks?: boolean): SourceFile;
11045
11055
  function createLanguageService(host: LanguageServiceHost, documentRegistry?: DocumentRegistry, syntaxOnlyOrLanguageServiceMode?: boolean | LanguageServiceMode): LanguageService;