typescript 5.0.0-dev.20221213 → 5.0.0-dev.20221215
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/tsc.js +2252 -1337
- package/lib/tsserver.js +2712 -1563
- package/lib/tsserverlibrary.d.ts +118 -86
- package/lib/tsserverlibrary.js +2696 -1566
- package/lib/typescript.d.ts +117 -86
- package/lib/typescript.js +2675 -1565
- package/lib/typingsInstaller.js +1370 -773
- package/package.json +2 -2
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -2802,6 +2802,7 @@ declare namespace ts {
|
|
|
2802
2802
|
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
|
2803
2803
|
readonly includeInlayEnumMemberValueHints?: boolean;
|
|
2804
2804
|
readonly autoImportFileExcludePatterns?: string[];
|
|
2805
|
+
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
|
2805
2806
|
/**
|
|
2806
2807
|
* Indicates whether {@link ReferencesResponseItem.lineText} is supported.
|
|
2807
2808
|
*/
|
|
@@ -4338,24 +4339,25 @@ declare namespace ts {
|
|
|
4338
4339
|
JSDocReadonlyTag = 339,
|
|
4339
4340
|
JSDocOverrideTag = 340,
|
|
4340
4341
|
JSDocCallbackTag = 341,
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4342
|
+
JSDocOverloadTag = 342,
|
|
4343
|
+
JSDocEnumTag = 343,
|
|
4344
|
+
JSDocParameterTag = 344,
|
|
4345
|
+
JSDocReturnTag = 345,
|
|
4346
|
+
JSDocThisTag = 346,
|
|
4347
|
+
JSDocTypeTag = 347,
|
|
4348
|
+
JSDocTemplateTag = 348,
|
|
4349
|
+
JSDocTypedefTag = 349,
|
|
4350
|
+
JSDocSeeTag = 350,
|
|
4351
|
+
JSDocPropertyTag = 351,
|
|
4352
|
+
JSDocThrowsTag = 352,
|
|
4353
|
+
SyntaxList = 353,
|
|
4354
|
+
NotEmittedStatement = 354,
|
|
4355
|
+
PartiallyEmittedExpression = 355,
|
|
4356
|
+
CommaListExpression = 356,
|
|
4357
|
+
MergeDeclarationMarker = 357,
|
|
4358
|
+
EndOfDeclarationMarker = 358,
|
|
4359
|
+
SyntheticReferenceExpression = 359,
|
|
4360
|
+
Count = 360,
|
|
4359
4361
|
FirstAssignment = 63,
|
|
4360
4362
|
LastAssignment = 78,
|
|
4361
4363
|
FirstCompoundAssignment = 64,
|
|
@@ -4384,9 +4386,9 @@ declare namespace ts {
|
|
|
4384
4386
|
LastStatement = 256,
|
|
4385
4387
|
FirstNode = 163,
|
|
4386
4388
|
FirstJSDocNode = 312,
|
|
4387
|
-
LastJSDocNode =
|
|
4389
|
+
LastJSDocNode = 352,
|
|
4388
4390
|
FirstJSDocTagNode = 330,
|
|
4389
|
-
LastJSDocTagNode =
|
|
4391
|
+
LastJSDocTagNode = 352
|
|
4390
4392
|
}
|
|
4391
4393
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
4392
4394
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -4512,9 +4514,16 @@ declare namespace ts {
|
|
|
4512
4514
|
*/
|
|
4513
4515
|
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
4514
4516
|
}
|
|
4515
|
-
interface JSDocContainer {
|
|
4517
|
+
interface JSDocContainer extends Node {
|
|
4518
|
+
_jsdocContainerBrand: any;
|
|
4516
4519
|
}
|
|
4517
|
-
|
|
4520
|
+
interface LocalsContainer extends Node {
|
|
4521
|
+
_localsContainerBrand: any;
|
|
4522
|
+
}
|
|
4523
|
+
interface FlowContainer extends Node {
|
|
4524
|
+
_flowContainerBrand: any;
|
|
4525
|
+
}
|
|
4526
|
+
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;
|
|
4518
4527
|
type HasType = SignatureDeclaration | VariableDeclaration | ParameterDeclaration | PropertySignature | PropertyDeclaration | TypePredicateNode | ParenthesizedTypeNode | TypeOperatorNode | MappedTypeNode | AssertionExpression | TypeAliasDeclaration | JSDocTypeExpression | JSDocNonNullableType | JSDocNullableType | JSDocOptionalType | JSDocVariadicType;
|
|
4519
4528
|
type HasTypeArguments = CallExpression | NewExpression | TaggedTemplateExpression | JsxOpeningElement | JsxSelfClosingElement;
|
|
4520
4529
|
type HasInitializer = HasExpressionInitializer | ForStatement | ForInStatement | ForOfStatement | JsxAttribute;
|
|
@@ -4546,6 +4555,7 @@ declare namespace ts {
|
|
|
4546
4555
|
type AssertsKeyword = KeywordToken<SyntaxKind.AssertsKeyword>;
|
|
4547
4556
|
type AssertKeyword = KeywordToken<SyntaxKind.AssertKeyword>;
|
|
4548
4557
|
type AwaitKeyword = KeywordToken<SyntaxKind.AwaitKeyword>;
|
|
4558
|
+
type CaseKeyword = KeywordToken<SyntaxKind.CaseKeyword>;
|
|
4549
4559
|
/** @deprecated Use `AwaitKeyword` instead. */
|
|
4550
4560
|
type AwaitKeywordToken = AwaitKeyword;
|
|
4551
4561
|
/** @deprecated Use `AssertsKeyword` instead. */
|
|
@@ -4582,7 +4592,7 @@ declare namespace ts {
|
|
|
4582
4592
|
FileLevel = 32,
|
|
4583
4593
|
AllowNameSubstitution = 64
|
|
4584
4594
|
}
|
|
4585
|
-
interface Identifier extends PrimaryExpression, Declaration {
|
|
4595
|
+
interface Identifier extends PrimaryExpression, Declaration, JSDocContainer, FlowContainer {
|
|
4586
4596
|
readonly kind: SyntaxKind.Identifier;
|
|
4587
4597
|
/**
|
|
4588
4598
|
* Prefer to use `id.unescapedText`. (Note: This is available only in services, not internally to the TypeScript compiler.)
|
|
@@ -4598,7 +4608,7 @@ declare namespace ts {
|
|
|
4598
4608
|
interface TransientIdentifier extends Identifier {
|
|
4599
4609
|
resolvedSymbol: Symbol;
|
|
4600
4610
|
}
|
|
4601
|
-
interface QualifiedName extends Node {
|
|
4611
|
+
interface QualifiedName extends Node, FlowContainer {
|
|
4602
4612
|
readonly kind: SyntaxKind.QualifiedName;
|
|
4603
4613
|
readonly left: EntityName;
|
|
4604
4614
|
readonly right: Identifier;
|
|
@@ -4633,7 +4643,7 @@ declare namespace ts {
|
|
|
4633
4643
|
readonly parent: NamedDeclaration;
|
|
4634
4644
|
readonly expression: LeftHandSideExpression;
|
|
4635
4645
|
}
|
|
4636
|
-
interface TypeParameterDeclaration extends NamedDeclaration {
|
|
4646
|
+
interface TypeParameterDeclaration extends NamedDeclaration, JSDocContainer {
|
|
4637
4647
|
readonly kind: SyntaxKind.TypeParameter;
|
|
4638
4648
|
readonly parent: DeclarationWithTypeParameterChildren | InferTypeNode;
|
|
4639
4649
|
readonly modifiers?: NodeArray<Modifier>;
|
|
@@ -4651,10 +4661,10 @@ declare namespace ts {
|
|
|
4651
4661
|
readonly type?: TypeNode | undefined;
|
|
4652
4662
|
}
|
|
4653
4663
|
type SignatureDeclaration = CallSignatureDeclaration | ConstructSignatureDeclaration | MethodSignature | IndexSignatureDeclaration | FunctionTypeNode | ConstructorTypeNode | JSDocFunctionType | FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | AccessorDeclaration | FunctionExpression | ArrowFunction;
|
|
4654
|
-
interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement {
|
|
4664
|
+
interface CallSignatureDeclaration extends SignatureDeclarationBase, TypeElement, LocalsContainer {
|
|
4655
4665
|
readonly kind: SyntaxKind.CallSignature;
|
|
4656
4666
|
}
|
|
4657
|
-
interface ConstructSignatureDeclaration extends SignatureDeclarationBase, TypeElement {
|
|
4667
|
+
interface ConstructSignatureDeclaration extends SignatureDeclarationBase, TypeElement, LocalsContainer {
|
|
4658
4668
|
readonly kind: SyntaxKind.ConstructSignature;
|
|
4659
4669
|
}
|
|
4660
4670
|
type BindingName = Identifier | BindingPattern;
|
|
@@ -4681,7 +4691,7 @@ declare namespace ts {
|
|
|
4681
4691
|
readonly type?: TypeNode;
|
|
4682
4692
|
readonly initializer?: Expression;
|
|
4683
4693
|
}
|
|
4684
|
-
interface BindingElement extends NamedDeclaration {
|
|
4694
|
+
interface BindingElement extends NamedDeclaration, FlowContainer {
|
|
4685
4695
|
readonly kind: SyntaxKind.BindingElement;
|
|
4686
4696
|
readonly parent: BindingPattern;
|
|
4687
4697
|
readonly propertyName?: PropertyName;
|
|
@@ -4691,6 +4701,7 @@ declare namespace ts {
|
|
|
4691
4701
|
}
|
|
4692
4702
|
interface PropertySignature extends TypeElement, JSDocContainer {
|
|
4693
4703
|
readonly kind: SyntaxKind.PropertySignature;
|
|
4704
|
+
readonly parent: TypeLiteralNode | InterfaceDeclaration;
|
|
4694
4705
|
readonly modifiers?: NodeArray<Modifier>;
|
|
4695
4706
|
readonly name: PropertyName;
|
|
4696
4707
|
readonly questionToken?: QuestionToken;
|
|
@@ -4752,9 +4763,6 @@ declare namespace ts {
|
|
|
4752
4763
|
readonly expression: Expression;
|
|
4753
4764
|
}
|
|
4754
4765
|
type VariableLikeDeclaration = VariableDeclaration | ParameterDeclaration | BindingElement | PropertyDeclaration | PropertyAssignment | PropertySignature | JsxAttribute | ShorthandPropertyAssignment | EnumMember | JSDocPropertyTag | JSDocParameterTag;
|
|
4755
|
-
interface PropertyLikeDeclaration extends NamedDeclaration {
|
|
4756
|
-
readonly name: PropertyName;
|
|
4757
|
-
}
|
|
4758
4766
|
interface ObjectBindingPattern extends Node {
|
|
4759
4767
|
readonly kind: SyntaxKind.ObjectBindingPattern;
|
|
4760
4768
|
readonly parent: VariableDeclaration | ParameterDeclaration | BindingElement;
|
|
@@ -4785,26 +4793,26 @@ declare namespace ts {
|
|
|
4785
4793
|
type FunctionLikeDeclaration = FunctionDeclaration | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration | ConstructorDeclaration | FunctionExpression | ArrowFunction;
|
|
4786
4794
|
/** @deprecated Use SignatureDeclaration */
|
|
4787
4795
|
type FunctionLike = SignatureDeclaration;
|
|
4788
|
-
interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement {
|
|
4796
|
+
interface FunctionDeclaration extends FunctionLikeDeclarationBase, DeclarationStatement, LocalsContainer {
|
|
4789
4797
|
readonly kind: SyntaxKind.FunctionDeclaration;
|
|
4790
4798
|
readonly modifiers?: NodeArray<Modifier>;
|
|
4791
4799
|
readonly name?: Identifier;
|
|
4792
4800
|
readonly body?: FunctionBody;
|
|
4793
4801
|
}
|
|
4794
|
-
interface MethodSignature extends SignatureDeclarationBase, TypeElement {
|
|
4802
|
+
interface MethodSignature extends SignatureDeclarationBase, TypeElement, LocalsContainer {
|
|
4795
4803
|
readonly kind: SyntaxKind.MethodSignature;
|
|
4796
|
-
readonly parent:
|
|
4804
|
+
readonly parent: TypeLiteralNode | InterfaceDeclaration;
|
|
4797
4805
|
readonly modifiers?: NodeArray<Modifier>;
|
|
4798
4806
|
readonly name: PropertyName;
|
|
4799
4807
|
}
|
|
4800
|
-
interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer {
|
|
4808
|
+
interface MethodDeclaration extends FunctionLikeDeclarationBase, ClassElement, ObjectLiteralElement, JSDocContainer, LocalsContainer, FlowContainer {
|
|
4801
4809
|
readonly kind: SyntaxKind.MethodDeclaration;
|
|
4802
4810
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression;
|
|
4803
4811
|
readonly modifiers?: NodeArray<ModifierLike> | undefined;
|
|
4804
4812
|
readonly name: PropertyName;
|
|
4805
4813
|
readonly body?: FunctionBody | undefined;
|
|
4806
4814
|
}
|
|
4807
|
-
interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer {
|
|
4815
|
+
interface ConstructorDeclaration extends FunctionLikeDeclarationBase, ClassElement, JSDocContainer, LocalsContainer {
|
|
4808
4816
|
readonly kind: SyntaxKind.Constructor;
|
|
4809
4817
|
readonly parent: ClassLikeDeclaration;
|
|
4810
4818
|
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
@@ -4815,14 +4823,14 @@ declare namespace ts {
|
|
|
4815
4823
|
readonly kind: SyntaxKind.SemicolonClassElement;
|
|
4816
4824
|
readonly parent: ClassLikeDeclaration;
|
|
4817
4825
|
}
|
|
4818
|
-
interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
|
|
4826
|
+
interface GetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer, LocalsContainer, FlowContainer {
|
|
4819
4827
|
readonly kind: SyntaxKind.GetAccessor;
|
|
4820
4828
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
|
|
4821
4829
|
readonly modifiers?: NodeArray<ModifierLike>;
|
|
4822
4830
|
readonly name: PropertyName;
|
|
4823
4831
|
readonly body?: FunctionBody;
|
|
4824
4832
|
}
|
|
4825
|
-
interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer {
|
|
4833
|
+
interface SetAccessorDeclaration extends FunctionLikeDeclarationBase, ClassElement, TypeElement, ObjectLiteralElement, JSDocContainer, LocalsContainer, FlowContainer {
|
|
4826
4834
|
readonly kind: SyntaxKind.SetAccessor;
|
|
4827
4835
|
readonly parent: ClassLikeDeclaration | ObjectLiteralExpression | TypeLiteralNode | InterfaceDeclaration;
|
|
4828
4836
|
readonly modifiers?: NodeArray<ModifierLike>;
|
|
@@ -4830,13 +4838,13 @@ declare namespace ts {
|
|
|
4830
4838
|
readonly body?: FunctionBody;
|
|
4831
4839
|
}
|
|
4832
4840
|
type AccessorDeclaration = GetAccessorDeclaration | SetAccessorDeclaration;
|
|
4833
|
-
interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement {
|
|
4841
|
+
interface IndexSignatureDeclaration extends SignatureDeclarationBase, ClassElement, TypeElement, LocalsContainer {
|
|
4834
4842
|
readonly kind: SyntaxKind.IndexSignature;
|
|
4835
4843
|
readonly parent: ObjectTypeDeclaration;
|
|
4836
4844
|
readonly modifiers?: NodeArray<Modifier>;
|
|
4837
4845
|
readonly type: TypeNode;
|
|
4838
4846
|
}
|
|
4839
|
-
interface ClassStaticBlockDeclaration extends ClassElement, JSDocContainer {
|
|
4847
|
+
interface ClassStaticBlockDeclaration extends ClassElement, JSDocContainer, LocalsContainer {
|
|
4840
4848
|
readonly kind: SyntaxKind.ClassStaticBlockDeclaration;
|
|
4841
4849
|
readonly parent: ClassDeclaration | ClassExpression;
|
|
4842
4850
|
readonly body: Block;
|
|
@@ -4868,14 +4876,14 @@ declare namespace ts {
|
|
|
4868
4876
|
readonly kind: SyntaxKind.FunctionType | SyntaxKind.ConstructorType;
|
|
4869
4877
|
readonly type: TypeNode;
|
|
4870
4878
|
}
|
|
4871
|
-
interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase {
|
|
4879
|
+
interface FunctionTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer {
|
|
4872
4880
|
readonly kind: SyntaxKind.FunctionType;
|
|
4873
4881
|
}
|
|
4874
4882
|
interface FunctionTypeNode {
|
|
4875
4883
|
/** @deprecated A function type cannot have modifiers */
|
|
4876
4884
|
readonly modifiers?: NodeArray<Modifier> | undefined;
|
|
4877
4885
|
}
|
|
4878
|
-
interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase {
|
|
4886
|
+
interface ConstructorTypeNode extends FunctionOrConstructorTypeNodeBase, LocalsContainer {
|
|
4879
4887
|
readonly kind: SyntaxKind.ConstructorType;
|
|
4880
4888
|
readonly modifiers?: NodeArray<Modifier>;
|
|
4881
4889
|
}
|
|
@@ -4910,7 +4918,7 @@ declare namespace ts {
|
|
|
4910
4918
|
readonly kind: SyntaxKind.TupleType;
|
|
4911
4919
|
readonly elements: NodeArray<TypeNode | NamedTupleMember>;
|
|
4912
4920
|
}
|
|
4913
|
-
interface NamedTupleMember extends TypeNode,
|
|
4921
|
+
interface NamedTupleMember extends TypeNode, Declaration, JSDocContainer {
|
|
4914
4922
|
readonly kind: SyntaxKind.NamedTupleMember;
|
|
4915
4923
|
readonly dotDotDotToken?: Token<SyntaxKind.DotDotDotToken>;
|
|
4916
4924
|
readonly name: Identifier;
|
|
@@ -4934,7 +4942,7 @@ declare namespace ts {
|
|
|
4934
4942
|
readonly kind: SyntaxKind.IntersectionType;
|
|
4935
4943
|
readonly types: NodeArray<TypeNode>;
|
|
4936
4944
|
}
|
|
4937
|
-
interface ConditionalTypeNode extends TypeNode {
|
|
4945
|
+
interface ConditionalTypeNode extends TypeNode, LocalsContainer {
|
|
4938
4946
|
readonly kind: SyntaxKind.ConditionalType;
|
|
4939
4947
|
readonly checkType: TypeNode;
|
|
4940
4948
|
readonly extendsType: TypeNode;
|
|
@@ -4959,7 +4967,7 @@ declare namespace ts {
|
|
|
4959
4967
|
readonly objectType: TypeNode;
|
|
4960
4968
|
readonly indexType: TypeNode;
|
|
4961
4969
|
}
|
|
4962
|
-
interface MappedTypeNode extends TypeNode, Declaration {
|
|
4970
|
+
interface MappedTypeNode extends TypeNode, Declaration, LocalsContainer {
|
|
4963
4971
|
readonly kind: SyntaxKind.MappedType;
|
|
4964
4972
|
readonly readonlyToken?: ReadonlyKeyword | PlusToken | MinusToken;
|
|
4965
4973
|
readonly typeParameter: TypeParameterDeclaration;
|
|
@@ -5038,10 +5046,10 @@ declare namespace ts {
|
|
|
5038
5046
|
readonly kind: SyntaxKind.FalseKeyword;
|
|
5039
5047
|
}
|
|
5040
5048
|
type BooleanLiteral = TrueLiteral | FalseLiteral;
|
|
5041
|
-
interface ThisExpression extends PrimaryExpression {
|
|
5049
|
+
interface ThisExpression extends PrimaryExpression, FlowContainer {
|
|
5042
5050
|
readonly kind: SyntaxKind.ThisKeyword;
|
|
5043
5051
|
}
|
|
5044
|
-
interface SuperExpression extends PrimaryExpression {
|
|
5052
|
+
interface SuperExpression extends PrimaryExpression, FlowContainer {
|
|
5045
5053
|
readonly kind: SyntaxKind.SuperKeyword;
|
|
5046
5054
|
}
|
|
5047
5055
|
interface ImportExpression extends PrimaryExpression {
|
|
@@ -5095,7 +5103,7 @@ declare namespace ts {
|
|
|
5095
5103
|
type BinaryOperator = AssignmentOperatorOrHigher | SyntaxKind.CommaToken;
|
|
5096
5104
|
type LogicalOrCoalescingAssignmentOperator = SyntaxKind.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionEqualsToken;
|
|
5097
5105
|
type BinaryOperatorToken = Token<BinaryOperator>;
|
|
5098
|
-
interface BinaryExpression extends Expression, Declaration {
|
|
5106
|
+
interface BinaryExpression extends Expression, Declaration, JSDocContainer {
|
|
5099
5107
|
readonly kind: SyntaxKind.BinaryExpression;
|
|
5100
5108
|
readonly left: Expression;
|
|
5101
5109
|
readonly operatorToken: BinaryOperatorToken;
|
|
@@ -5132,13 +5140,13 @@ declare namespace ts {
|
|
|
5132
5140
|
}
|
|
5133
5141
|
type FunctionBody = Block;
|
|
5134
5142
|
type ConciseBody = FunctionBody | Expression;
|
|
5135
|
-
interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer {
|
|
5143
|
+
interface FunctionExpression extends PrimaryExpression, FunctionLikeDeclarationBase, JSDocContainer, LocalsContainer, FlowContainer {
|
|
5136
5144
|
readonly kind: SyntaxKind.FunctionExpression;
|
|
5137
5145
|
readonly modifiers?: NodeArray<Modifier>;
|
|
5138
5146
|
readonly name?: Identifier;
|
|
5139
5147
|
readonly body: FunctionBody;
|
|
5140
5148
|
}
|
|
5141
|
-
interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer {
|
|
5149
|
+
interface ArrowFunction extends Expression, FunctionLikeDeclarationBase, JSDocContainer, LocalsContainer, FlowContainer {
|
|
5142
5150
|
readonly kind: SyntaxKind.ArrowFunction;
|
|
5143
5151
|
readonly modifiers?: NodeArray<Modifier>;
|
|
5144
5152
|
readonly equalsGreaterThanToken: EqualsGreaterThanToken;
|
|
@@ -5225,13 +5233,13 @@ declare namespace ts {
|
|
|
5225
5233
|
interface ObjectLiteralExpressionBase<T extends ObjectLiteralElement> extends PrimaryExpression, Declaration {
|
|
5226
5234
|
readonly properties: NodeArray<T>;
|
|
5227
5235
|
}
|
|
5228
|
-
interface ObjectLiteralExpression extends ObjectLiteralExpressionBase<ObjectLiteralElementLike
|
|
5236
|
+
interface ObjectLiteralExpression extends ObjectLiteralExpressionBase<ObjectLiteralElementLike>, JSDocContainer {
|
|
5229
5237
|
readonly kind: SyntaxKind.ObjectLiteralExpression;
|
|
5230
5238
|
}
|
|
5231
5239
|
type EntityNameExpression = Identifier | PropertyAccessEntityNameExpression;
|
|
5232
5240
|
type EntityNameOrEntityNameExpression = EntityName | EntityNameExpression;
|
|
5233
5241
|
type AccessExpression = PropertyAccessExpression | ElementAccessExpression;
|
|
5234
|
-
interface PropertyAccessExpression extends MemberExpression, NamedDeclaration {
|
|
5242
|
+
interface PropertyAccessExpression extends MemberExpression, NamedDeclaration, JSDocContainer, FlowContainer {
|
|
5235
5243
|
readonly kind: SyntaxKind.PropertyAccessExpression;
|
|
5236
5244
|
readonly expression: LeftHandSideExpression;
|
|
5237
5245
|
readonly questionDotToken?: QuestionDotToken;
|
|
@@ -5250,7 +5258,7 @@ declare namespace ts {
|
|
|
5250
5258
|
readonly expression: EntityNameExpression;
|
|
5251
5259
|
readonly name: Identifier;
|
|
5252
5260
|
}
|
|
5253
|
-
interface ElementAccessExpression extends MemberExpression {
|
|
5261
|
+
interface ElementAccessExpression extends MemberExpression, Declaration, JSDocContainer, FlowContainer {
|
|
5254
5262
|
readonly kind: SyntaxKind.ElementAccessExpression;
|
|
5255
5263
|
readonly expression: LeftHandSideExpression;
|
|
5256
5264
|
readonly questionDotToken?: QuestionDotToken;
|
|
@@ -5320,7 +5328,7 @@ declare namespace ts {
|
|
|
5320
5328
|
interface NonNullChain extends NonNullExpression {
|
|
5321
5329
|
_optionalChainBrand: any;
|
|
5322
5330
|
}
|
|
5323
|
-
interface MetaProperty extends PrimaryExpression {
|
|
5331
|
+
interface MetaProperty extends PrimaryExpression, FlowContainer {
|
|
5324
5332
|
readonly kind: SyntaxKind.MetaProperty;
|
|
5325
5333
|
readonly keywordToken: SyntaxKind.NewKeyword | SyntaxKind.ImportKeyword;
|
|
5326
5334
|
readonly name: Identifier;
|
|
@@ -5413,7 +5421,7 @@ declare namespace ts {
|
|
|
5413
5421
|
interface EmptyStatement extends Statement {
|
|
5414
5422
|
readonly kind: SyntaxKind.EmptyStatement;
|
|
5415
5423
|
}
|
|
5416
|
-
interface DebuggerStatement extends Statement {
|
|
5424
|
+
interface DebuggerStatement extends Statement, FlowContainer {
|
|
5417
5425
|
readonly kind: SyntaxKind.DebuggerStatement;
|
|
5418
5426
|
}
|
|
5419
5427
|
interface MissingDeclaration extends DeclarationStatement {
|
|
@@ -5421,20 +5429,20 @@ declare namespace ts {
|
|
|
5421
5429
|
readonly name?: Identifier;
|
|
5422
5430
|
}
|
|
5423
5431
|
type BlockLike = SourceFile | Block | ModuleBlock | CaseOrDefaultClause;
|
|
5424
|
-
interface Block extends Statement {
|
|
5432
|
+
interface Block extends Statement, LocalsContainer {
|
|
5425
5433
|
readonly kind: SyntaxKind.Block;
|
|
5426
5434
|
readonly statements: NodeArray<Statement>;
|
|
5427
5435
|
}
|
|
5428
|
-
interface VariableStatement extends Statement {
|
|
5436
|
+
interface VariableStatement extends Statement, FlowContainer {
|
|
5429
5437
|
readonly kind: SyntaxKind.VariableStatement;
|
|
5430
5438
|
readonly modifiers?: NodeArray<Modifier>;
|
|
5431
5439
|
readonly declarationList: VariableDeclarationList;
|
|
5432
5440
|
}
|
|
5433
|
-
interface ExpressionStatement extends Statement {
|
|
5441
|
+
interface ExpressionStatement extends Statement, FlowContainer {
|
|
5434
5442
|
readonly kind: SyntaxKind.ExpressionStatement;
|
|
5435
5443
|
readonly expression: Expression;
|
|
5436
5444
|
}
|
|
5437
|
-
interface IfStatement extends Statement {
|
|
5445
|
+
interface IfStatement extends Statement, FlowContainer {
|
|
5438
5446
|
readonly kind: SyntaxKind.IfStatement;
|
|
5439
5447
|
readonly expression: Expression;
|
|
5440
5448
|
readonly thenStatement: Statement;
|
|
@@ -5443,58 +5451,58 @@ declare namespace ts {
|
|
|
5443
5451
|
interface IterationStatement extends Statement {
|
|
5444
5452
|
readonly statement: Statement;
|
|
5445
5453
|
}
|
|
5446
|
-
interface DoStatement extends IterationStatement {
|
|
5454
|
+
interface DoStatement extends IterationStatement, FlowContainer {
|
|
5447
5455
|
readonly kind: SyntaxKind.DoStatement;
|
|
5448
5456
|
readonly expression: Expression;
|
|
5449
5457
|
}
|
|
5450
|
-
interface WhileStatement extends IterationStatement {
|
|
5458
|
+
interface WhileStatement extends IterationStatement, FlowContainer {
|
|
5451
5459
|
readonly kind: SyntaxKind.WhileStatement;
|
|
5452
5460
|
readonly expression: Expression;
|
|
5453
5461
|
}
|
|
5454
5462
|
type ForInitializer = VariableDeclarationList | Expression;
|
|
5455
|
-
interface ForStatement extends IterationStatement {
|
|
5463
|
+
interface ForStatement extends IterationStatement, LocalsContainer, FlowContainer {
|
|
5456
5464
|
readonly kind: SyntaxKind.ForStatement;
|
|
5457
5465
|
readonly initializer?: ForInitializer;
|
|
5458
5466
|
readonly condition?: Expression;
|
|
5459
5467
|
readonly incrementor?: Expression;
|
|
5460
5468
|
}
|
|
5461
5469
|
type ForInOrOfStatement = ForInStatement | ForOfStatement;
|
|
5462
|
-
interface ForInStatement extends IterationStatement {
|
|
5470
|
+
interface ForInStatement extends IterationStatement, LocalsContainer, FlowContainer {
|
|
5463
5471
|
readonly kind: SyntaxKind.ForInStatement;
|
|
5464
5472
|
readonly initializer: ForInitializer;
|
|
5465
5473
|
readonly expression: Expression;
|
|
5466
5474
|
}
|
|
5467
|
-
interface ForOfStatement extends IterationStatement {
|
|
5475
|
+
interface ForOfStatement extends IterationStatement, LocalsContainer, FlowContainer {
|
|
5468
5476
|
readonly kind: SyntaxKind.ForOfStatement;
|
|
5469
5477
|
readonly awaitModifier?: AwaitKeyword;
|
|
5470
5478
|
readonly initializer: ForInitializer;
|
|
5471
5479
|
readonly expression: Expression;
|
|
5472
5480
|
}
|
|
5473
|
-
interface BreakStatement extends Statement {
|
|
5481
|
+
interface BreakStatement extends Statement, FlowContainer {
|
|
5474
5482
|
readonly kind: SyntaxKind.BreakStatement;
|
|
5475
5483
|
readonly label?: Identifier;
|
|
5476
5484
|
}
|
|
5477
|
-
interface ContinueStatement extends Statement {
|
|
5485
|
+
interface ContinueStatement extends Statement, FlowContainer {
|
|
5478
5486
|
readonly kind: SyntaxKind.ContinueStatement;
|
|
5479
5487
|
readonly label?: Identifier;
|
|
5480
5488
|
}
|
|
5481
5489
|
type BreakOrContinueStatement = BreakStatement | ContinueStatement;
|
|
5482
|
-
interface ReturnStatement extends Statement {
|
|
5490
|
+
interface ReturnStatement extends Statement, FlowContainer {
|
|
5483
5491
|
readonly kind: SyntaxKind.ReturnStatement;
|
|
5484
5492
|
readonly expression?: Expression;
|
|
5485
5493
|
}
|
|
5486
|
-
interface WithStatement extends Statement {
|
|
5494
|
+
interface WithStatement extends Statement, FlowContainer {
|
|
5487
5495
|
readonly kind: SyntaxKind.WithStatement;
|
|
5488
5496
|
readonly expression: Expression;
|
|
5489
5497
|
readonly statement: Statement;
|
|
5490
5498
|
}
|
|
5491
|
-
interface SwitchStatement extends Statement {
|
|
5499
|
+
interface SwitchStatement extends Statement, FlowContainer {
|
|
5492
5500
|
readonly kind: SyntaxKind.SwitchStatement;
|
|
5493
5501
|
readonly expression: Expression;
|
|
5494
5502
|
readonly caseBlock: CaseBlock;
|
|
5495
5503
|
possiblyExhaustive?: boolean;
|
|
5496
5504
|
}
|
|
5497
|
-
interface CaseBlock extends Node {
|
|
5505
|
+
interface CaseBlock extends Node, LocalsContainer {
|
|
5498
5506
|
readonly kind: SyntaxKind.CaseBlock;
|
|
5499
5507
|
readonly parent: SwitchStatement;
|
|
5500
5508
|
readonly clauses: NodeArray<CaseOrDefaultClause>;
|
|
@@ -5511,22 +5519,22 @@ declare namespace ts {
|
|
|
5511
5519
|
readonly statements: NodeArray<Statement>;
|
|
5512
5520
|
}
|
|
5513
5521
|
type CaseOrDefaultClause = CaseClause | DefaultClause;
|
|
5514
|
-
interface LabeledStatement extends Statement {
|
|
5522
|
+
interface LabeledStatement extends Statement, FlowContainer {
|
|
5515
5523
|
readonly kind: SyntaxKind.LabeledStatement;
|
|
5516
5524
|
readonly label: Identifier;
|
|
5517
5525
|
readonly statement: Statement;
|
|
5518
5526
|
}
|
|
5519
|
-
interface ThrowStatement extends Statement {
|
|
5527
|
+
interface ThrowStatement extends Statement, FlowContainer {
|
|
5520
5528
|
readonly kind: SyntaxKind.ThrowStatement;
|
|
5521
5529
|
readonly expression: Expression;
|
|
5522
5530
|
}
|
|
5523
|
-
interface TryStatement extends Statement {
|
|
5531
|
+
interface TryStatement extends Statement, FlowContainer {
|
|
5524
5532
|
readonly kind: SyntaxKind.TryStatement;
|
|
5525
5533
|
readonly tryBlock: Block;
|
|
5526
5534
|
readonly catchClause?: CatchClause;
|
|
5527
5535
|
readonly finallyBlock?: Block;
|
|
5528
5536
|
}
|
|
5529
|
-
interface CatchClause extends Node {
|
|
5537
|
+
interface CatchClause extends Node, LocalsContainer {
|
|
5530
5538
|
readonly kind: SyntaxKind.CatchClause;
|
|
5531
5539
|
readonly parent: TryStatement;
|
|
5532
5540
|
readonly variableDeclaration?: VariableDeclaration;
|
|
@@ -5576,7 +5584,7 @@ declare namespace ts {
|
|
|
5576
5584
|
readonly token: SyntaxKind.ExtendsKeyword | SyntaxKind.ImplementsKeyword;
|
|
5577
5585
|
readonly types: NodeArray<ExpressionWithTypeArguments>;
|
|
5578
5586
|
}
|
|
5579
|
-
interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer {
|
|
5587
|
+
interface TypeAliasDeclaration extends DeclarationStatement, JSDocContainer, LocalsContainer {
|
|
5580
5588
|
readonly kind: SyntaxKind.TypeAliasDeclaration;
|
|
5581
5589
|
readonly modifiers?: NodeArray<Modifier>;
|
|
5582
5590
|
readonly name: Identifier;
|
|
@@ -5597,7 +5605,7 @@ declare namespace ts {
|
|
|
5597
5605
|
}
|
|
5598
5606
|
type ModuleName = Identifier | StringLiteral;
|
|
5599
5607
|
type ModuleBody = NamespaceBody | JSDocNamespaceBody;
|
|
5600
|
-
interface ModuleDeclaration extends DeclarationStatement, JSDocContainer {
|
|
5608
|
+
interface ModuleDeclaration extends DeclarationStatement, JSDocContainer, LocalsContainer {
|
|
5601
5609
|
readonly kind: SyntaxKind.ModuleDeclaration;
|
|
5602
5610
|
readonly parent: ModuleBody | SourceFile;
|
|
5603
5611
|
readonly modifiers?: NodeArray<Modifier>;
|
|
@@ -5813,7 +5821,7 @@ declare namespace ts {
|
|
|
5813
5821
|
readonly kind: SyntaxKind.JSDocOptionalType;
|
|
5814
5822
|
readonly type: TypeNode;
|
|
5815
5823
|
}
|
|
5816
|
-
interface JSDocFunctionType extends JSDocType, SignatureDeclarationBase {
|
|
5824
|
+
interface JSDocFunctionType extends JSDocType, SignatureDeclarationBase, LocalsContainer {
|
|
5817
5825
|
readonly kind: SyntaxKind.JSDocFunctionType;
|
|
5818
5826
|
}
|
|
5819
5827
|
interface JSDocVariadicType extends JSDocType {
|
|
@@ -5899,7 +5907,7 @@ declare namespace ts {
|
|
|
5899
5907
|
interface JSDocOverrideTag extends JSDocTag {
|
|
5900
5908
|
readonly kind: SyntaxKind.JSDocOverrideTag;
|
|
5901
5909
|
}
|
|
5902
|
-
interface JSDocEnumTag extends JSDocTag, Declaration {
|
|
5910
|
+
interface JSDocEnumTag extends JSDocTag, Declaration, LocalsContainer {
|
|
5903
5911
|
readonly kind: SyntaxKind.JSDocEnumTag;
|
|
5904
5912
|
readonly parent: JSDoc;
|
|
5905
5913
|
readonly typeExpression: JSDocTypeExpression;
|
|
@@ -5925,25 +5933,30 @@ declare namespace ts {
|
|
|
5925
5933
|
readonly kind: SyntaxKind.JSDocTypeTag;
|
|
5926
5934
|
readonly typeExpression: JSDocTypeExpression;
|
|
5927
5935
|
}
|
|
5928
|
-
interface JSDocTypedefTag extends JSDocTag, NamedDeclaration {
|
|
5936
|
+
interface JSDocTypedefTag extends JSDocTag, NamedDeclaration, LocalsContainer {
|
|
5929
5937
|
readonly kind: SyntaxKind.JSDocTypedefTag;
|
|
5930
5938
|
readonly parent: JSDoc;
|
|
5931
5939
|
readonly fullName?: JSDocNamespaceDeclaration | Identifier;
|
|
5932
5940
|
readonly name?: Identifier;
|
|
5933
5941
|
readonly typeExpression?: JSDocTypeExpression | JSDocTypeLiteral;
|
|
5934
5942
|
}
|
|
5935
|
-
interface JSDocCallbackTag extends JSDocTag, NamedDeclaration {
|
|
5943
|
+
interface JSDocCallbackTag extends JSDocTag, NamedDeclaration, LocalsContainer {
|
|
5936
5944
|
readonly kind: SyntaxKind.JSDocCallbackTag;
|
|
5937
5945
|
readonly parent: JSDoc;
|
|
5938
5946
|
readonly fullName?: JSDocNamespaceDeclaration | Identifier;
|
|
5939
5947
|
readonly name?: Identifier;
|
|
5940
5948
|
readonly typeExpression: JSDocSignature;
|
|
5941
5949
|
}
|
|
5950
|
+
interface JSDocOverloadTag extends JSDocTag {
|
|
5951
|
+
readonly kind: SyntaxKind.JSDocOverloadTag;
|
|
5952
|
+
readonly parent: JSDoc;
|
|
5953
|
+
readonly typeExpression: JSDocSignature;
|
|
5954
|
+
}
|
|
5942
5955
|
interface JSDocThrowsTag extends JSDocTag {
|
|
5943
5956
|
readonly kind: SyntaxKind.JSDocThrowsTag;
|
|
5944
5957
|
readonly typeExpression?: JSDocTypeExpression;
|
|
5945
5958
|
}
|
|
5946
|
-
interface JSDocSignature extends JSDocType, Declaration {
|
|
5959
|
+
interface JSDocSignature extends JSDocType, Declaration, JSDocContainer, LocalsContainer {
|
|
5947
5960
|
readonly kind: SyntaxKind.JSDocSignature;
|
|
5948
5961
|
readonly typeParameters?: readonly JSDocTemplateTag[];
|
|
5949
5962
|
readonly parameters: readonly JSDocParameterTag[];
|
|
@@ -5963,7 +5976,7 @@ declare namespace ts {
|
|
|
5963
5976
|
interface JSDocParameterTag extends JSDocPropertyLikeTag {
|
|
5964
5977
|
readonly kind: SyntaxKind.JSDocParameterTag;
|
|
5965
5978
|
}
|
|
5966
|
-
interface JSDocTypeLiteral extends JSDocType {
|
|
5979
|
+
interface JSDocTypeLiteral extends JSDocType, Declaration {
|
|
5967
5980
|
readonly kind: SyntaxKind.JSDocTypeLiteral;
|
|
5968
5981
|
readonly jsDocPropertyTags?: readonly JSDocPropertyLikeTag[];
|
|
5969
5982
|
/** If true, then this type literal represents an *array* of its type. */
|
|
@@ -6043,7 +6056,7 @@ declare namespace ts {
|
|
|
6043
6056
|
getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
|
|
6044
6057
|
}
|
|
6045
6058
|
type ResolutionMode = ModuleKind.ESNext | ModuleKind.CommonJS | undefined;
|
|
6046
|
-
interface SourceFile extends Declaration {
|
|
6059
|
+
interface SourceFile extends Declaration, LocalsContainer {
|
|
6047
6060
|
readonly kind: SyntaxKind.SourceFile;
|
|
6048
6061
|
readonly statements: NodeArray<Statement>;
|
|
6049
6062
|
readonly endOfFileToken: Token<SyntaxKind.EndOfFileToken>;
|
|
@@ -6966,7 +6979,8 @@ declare namespace ts {
|
|
|
6966
6979
|
Classic = 1,
|
|
6967
6980
|
NodeJs = 2,
|
|
6968
6981
|
Node16 = 3,
|
|
6969
|
-
NodeNext = 99
|
|
6982
|
+
NodeNext = 99,
|
|
6983
|
+
Bundler = 100
|
|
6970
6984
|
}
|
|
6971
6985
|
enum ModuleDetectionKind {
|
|
6972
6986
|
/**
|
|
@@ -7017,6 +7031,7 @@ declare namespace ts {
|
|
|
7017
7031
|
}
|
|
7018
7032
|
type CompilerOptionsValue = string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined;
|
|
7019
7033
|
interface CompilerOptions {
|
|
7034
|
+
allowImportingTsExtensions?: boolean;
|
|
7020
7035
|
allowJs?: boolean;
|
|
7021
7036
|
allowSyntheticDefaultImports?: boolean;
|
|
7022
7037
|
allowUmdGlobalAccess?: boolean;
|
|
@@ -7026,6 +7041,7 @@ declare namespace ts {
|
|
|
7026
7041
|
baseUrl?: string;
|
|
7027
7042
|
charset?: string;
|
|
7028
7043
|
checkJs?: boolean;
|
|
7044
|
+
customConditions?: string[];
|
|
7029
7045
|
declaration?: boolean;
|
|
7030
7046
|
declarationMap?: boolean;
|
|
7031
7047
|
emitDeclarationOnly?: boolean;
|
|
@@ -7090,6 +7106,8 @@ declare namespace ts {
|
|
|
7090
7106
|
incremental?: boolean;
|
|
7091
7107
|
tsBuildInfoFile?: string;
|
|
7092
7108
|
removeComments?: boolean;
|
|
7109
|
+
resolvePackageJsonExports?: boolean;
|
|
7110
|
+
resolvePackageJsonImports?: boolean;
|
|
7093
7111
|
rootDir?: string;
|
|
7094
7112
|
rootDirs?: string[];
|
|
7095
7113
|
skipLibCheck?: boolean;
|
|
@@ -7261,6 +7279,11 @@ declare namespace ts {
|
|
|
7261
7279
|
resolvedFileName: string;
|
|
7262
7280
|
/** True if `resolvedFileName` comes from `node_modules`. */
|
|
7263
7281
|
isExternalLibraryImport?: boolean;
|
|
7282
|
+
/**
|
|
7283
|
+
* True if the original module reference used a .ts extension to refer directly to a .ts file,
|
|
7284
|
+
* which should produce an error during checking if emit is enabled.
|
|
7285
|
+
*/
|
|
7286
|
+
resolvedUsingTsExtension?: boolean;
|
|
7264
7287
|
}
|
|
7265
7288
|
/**
|
|
7266
7289
|
* ResolvedModule with an explicitly provided `extension` property.
|
|
@@ -7469,11 +7492,12 @@ declare namespace ts {
|
|
|
7469
7492
|
createToken(token: SyntaxKind.NullKeyword): NullLiteral;
|
|
7470
7493
|
createToken(token: SyntaxKind.TrueKeyword): TrueLiteral;
|
|
7471
7494
|
createToken(token: SyntaxKind.FalseKeyword): FalseLiteral;
|
|
7495
|
+
createToken(token: SyntaxKind.EndOfFileToken): EndOfFileToken;
|
|
7496
|
+
createToken(token: SyntaxKind.Unknown): Token<SyntaxKind.Unknown>;
|
|
7472
7497
|
createToken<TKind extends PunctuationSyntaxKind>(token: TKind): PunctuationToken<TKind>;
|
|
7473
7498
|
createToken<TKind extends KeywordTypeSyntaxKind>(token: TKind): KeywordTypeNode<TKind>;
|
|
7474
7499
|
createToken<TKind extends ModifierSyntaxKind>(token: TKind): ModifierToken<TKind>;
|
|
7475
7500
|
createToken<TKind extends KeywordSyntaxKind>(token: TKind): KeywordToken<TKind>;
|
|
7476
|
-
createToken<TKind extends SyntaxKind.Unknown | SyntaxKind.EndOfFileToken>(token: TKind): Token<TKind>;
|
|
7477
7501
|
createSuper(): SuperExpression;
|
|
7478
7502
|
createThis(): ThisExpression;
|
|
7479
7503
|
createNull(): NullLiteral;
|
|
@@ -7782,6 +7806,8 @@ declare namespace ts {
|
|
|
7782
7806
|
updateJSDocEnumTag(node: JSDocEnumTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray<JSDocComment> | undefined): JSDocEnumTag;
|
|
7783
7807
|
createJSDocCallbackTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName?: Identifier | JSDocNamespaceDeclaration, comment?: string | NodeArray<JSDocComment>): JSDocCallbackTag;
|
|
7784
7808
|
updateJSDocCallbackTag(node: JSDocCallbackTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, fullName: Identifier | JSDocNamespaceDeclaration | undefined, comment: string | NodeArray<JSDocComment> | undefined): JSDocCallbackTag;
|
|
7809
|
+
createJSDocOverloadTag(tagName: Identifier | undefined, typeExpression: JSDocSignature, comment?: string | NodeArray<JSDocComment>): JSDocOverloadTag;
|
|
7810
|
+
updateJSDocOverloadTag(node: JSDocOverloadTag, tagName: Identifier | undefined, typeExpression: JSDocSignature, comment: string | NodeArray<JSDocComment> | undefined): JSDocOverloadTag;
|
|
7785
7811
|
createJSDocAugmentsTag(tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment?: string | NodeArray<JSDocComment>): JSDocAugmentsTag;
|
|
7786
7812
|
updateJSDocAugmentsTag(node: JSDocAugmentsTag, tagName: Identifier | undefined, className: JSDocAugmentsTag["class"], comment: string | NodeArray<JSDocComment> | undefined): JSDocAugmentsTag;
|
|
7787
7813
|
createJSDocImplementsTag(tagName: Identifier | undefined, className: JSDocImplementsTag["class"], comment?: string | NodeArray<JSDocComment>): JSDocImplementsTag;
|
|
@@ -8376,6 +8402,7 @@ declare namespace ts {
|
|
|
8376
8402
|
readonly includeInlayEnumMemberValueHints?: boolean;
|
|
8377
8403
|
readonly allowRenameOfImportPath?: boolean;
|
|
8378
8404
|
readonly autoImportFileExcludePatterns?: string[];
|
|
8405
|
+
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
|
8379
8406
|
}
|
|
8380
8407
|
/** Represents a bigint literal value without requiring bigint support */
|
|
8381
8408
|
interface PseudoBigInt {
|
|
@@ -8766,6 +8793,7 @@ declare namespace ts {
|
|
|
8766
8793
|
parent: ConstructorDeclaration;
|
|
8767
8794
|
name: Identifier;
|
|
8768
8795
|
};
|
|
8796
|
+
function emitModuleKindIsNonNodeESM(moduleKind: ModuleKind): boolean;
|
|
8769
8797
|
function isJSDocOptionalParameter(node: ParameterDeclaration): boolean;
|
|
8770
8798
|
function isOptionalDeclaration(declaration: Declaration): boolean;
|
|
8771
8799
|
function createUnparsedSourceFile(text: string): UnparsedSource;
|
|
@@ -9036,6 +9064,7 @@ declare namespace ts {
|
|
|
9036
9064
|
function isJSDocProtectedTag(node: Node): node is JSDocProtectedTag;
|
|
9037
9065
|
function isJSDocReadonlyTag(node: Node): node is JSDocReadonlyTag;
|
|
9038
9066
|
function isJSDocOverrideTag(node: Node): node is JSDocOverrideTag;
|
|
9067
|
+
function isJSDocOverloadTag(node: Node): node is JSDocOverloadTag;
|
|
9039
9068
|
function isJSDocDeprecatedTag(node: Node): node is JSDocDeprecatedTag;
|
|
9040
9069
|
function isJSDocSeeTag(node: Node): node is JSDocSeeTag;
|
|
9041
9070
|
function isJSDocEnumTag(node: Node): node is JSDocEnumTag;
|
|
@@ -9170,7 +9199,7 @@ declare namespace ts {
|
|
|
9170
9199
|
/**
|
|
9171
9200
|
* Note that the case of the config path has not yet been normalized, as no files have been imported into the project yet
|
|
9172
9201
|
*/
|
|
9173
|
-
extendedConfigPath?: string;
|
|
9202
|
+
extendedConfigPath?: string | string[];
|
|
9174
9203
|
}
|
|
9175
9204
|
interface ExtendedConfigCacheEntry {
|
|
9176
9205
|
extendedResult: TsConfigSourceFile;
|
|
@@ -9196,8 +9225,11 @@ declare namespace ts {
|
|
|
9196
9225
|
function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
|
|
9197
9226
|
function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
9198
9227
|
function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ResolutionMode): ResolvedModuleWithFailedLookupLocations;
|
|
9228
|
+
function bundlerModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
9199
9229
|
function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
9200
9230
|
function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
9231
|
+
function moduleResolutionSupportsResolvingTsExtensions(compilerOptions: CompilerOptions): boolean;
|
|
9232
|
+
function shouldAllowImportingTsExtension(compilerOptions: CompilerOptions, fromFileName?: string): boolean | "" | undefined;
|
|
9201
9233
|
interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, NonRelativeNameResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, PackageJsonInfoCache {
|
|
9202
9234
|
}
|
|
9203
9235
|
interface ModeAwareCache<T> {
|