typescript 5.8.2 → 5.9.0-beta

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.
@@ -1486,6 +1486,13 @@ declare namespace ts {
1486
1486
  command: CommandTypes.Quickinfo;
1487
1487
  arguments: FileLocationRequestArgs;
1488
1488
  }
1489
+ export interface QuickInfoRequestArgs extends FileLocationRequestArgs {
1490
+ /**
1491
+ * This controls how many levels of definitions will be expanded in the quick info response.
1492
+ * The default value is 0.
1493
+ */
1494
+ verbosityLevel?: number;
1495
+ }
1489
1496
  /**
1490
1497
  * Body of QuickInfoResponse.
1491
1498
  */
@@ -1519,6 +1526,10 @@ declare namespace ts {
1519
1526
  * JSDoc tags associated with symbol.
1520
1527
  */
1521
1528
  tags: JSDocTagInfo[];
1529
+ /**
1530
+ * Whether the verbosity level can be increased for this quick info response.
1531
+ */
1532
+ canIncreaseVerbosityLevel?: boolean;
1522
1533
  }
1523
1534
  /**
1524
1535
  * Quickinfo response message.
@@ -2509,6 +2520,7 @@ declare namespace ts {
2509
2520
  ESNext = "esnext",
2510
2521
  Node16 = "node16",
2511
2522
  Node18 = "node18",
2523
+ Node20 = "node20",
2512
2524
  NodeNext = "nodenext",
2513
2525
  Preserve = "preserve",
2514
2526
  }
@@ -3634,7 +3646,7 @@ declare namespace ts {
3634
3646
  readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
3635
3647
  }
3636
3648
  }
3637
- const versionMajorMinor = "5.8";
3649
+ const versionMajorMinor = "5.9";
3638
3650
  /** The version of the TypeScript compiler release */
3639
3651
  const version: string;
3640
3652
  /**
@@ -3830,203 +3842,204 @@ declare namespace ts {
3830
3842
  BigIntKeyword = 163,
3831
3843
  OverrideKeyword = 164,
3832
3844
  OfKeyword = 165,
3833
- QualifiedName = 166,
3834
- ComputedPropertyName = 167,
3835
- TypeParameter = 168,
3836
- Parameter = 169,
3837
- Decorator = 170,
3838
- PropertySignature = 171,
3839
- PropertyDeclaration = 172,
3840
- MethodSignature = 173,
3841
- MethodDeclaration = 174,
3842
- ClassStaticBlockDeclaration = 175,
3843
- Constructor = 176,
3844
- GetAccessor = 177,
3845
- SetAccessor = 178,
3846
- CallSignature = 179,
3847
- ConstructSignature = 180,
3848
- IndexSignature = 181,
3849
- TypePredicate = 182,
3850
- TypeReference = 183,
3851
- FunctionType = 184,
3852
- ConstructorType = 185,
3853
- TypeQuery = 186,
3854
- TypeLiteral = 187,
3855
- ArrayType = 188,
3856
- TupleType = 189,
3857
- OptionalType = 190,
3858
- RestType = 191,
3859
- UnionType = 192,
3860
- IntersectionType = 193,
3861
- ConditionalType = 194,
3862
- InferType = 195,
3863
- ParenthesizedType = 196,
3864
- ThisType = 197,
3865
- TypeOperator = 198,
3866
- IndexedAccessType = 199,
3867
- MappedType = 200,
3868
- LiteralType = 201,
3869
- NamedTupleMember = 202,
3870
- TemplateLiteralType = 203,
3871
- TemplateLiteralTypeSpan = 204,
3872
- ImportType = 205,
3873
- ObjectBindingPattern = 206,
3874
- ArrayBindingPattern = 207,
3875
- BindingElement = 208,
3876
- ArrayLiteralExpression = 209,
3877
- ObjectLiteralExpression = 210,
3878
- PropertyAccessExpression = 211,
3879
- ElementAccessExpression = 212,
3880
- CallExpression = 213,
3881
- NewExpression = 214,
3882
- TaggedTemplateExpression = 215,
3883
- TypeAssertionExpression = 216,
3884
- ParenthesizedExpression = 217,
3885
- FunctionExpression = 218,
3886
- ArrowFunction = 219,
3887
- DeleteExpression = 220,
3888
- TypeOfExpression = 221,
3889
- VoidExpression = 222,
3890
- AwaitExpression = 223,
3891
- PrefixUnaryExpression = 224,
3892
- PostfixUnaryExpression = 225,
3893
- BinaryExpression = 226,
3894
- ConditionalExpression = 227,
3895
- TemplateExpression = 228,
3896
- YieldExpression = 229,
3897
- SpreadElement = 230,
3898
- ClassExpression = 231,
3899
- OmittedExpression = 232,
3900
- ExpressionWithTypeArguments = 233,
3901
- AsExpression = 234,
3902
- NonNullExpression = 235,
3903
- MetaProperty = 236,
3904
- SyntheticExpression = 237,
3905
- SatisfiesExpression = 238,
3906
- TemplateSpan = 239,
3907
- SemicolonClassElement = 240,
3908
- Block = 241,
3909
- EmptyStatement = 242,
3910
- VariableStatement = 243,
3911
- ExpressionStatement = 244,
3912
- IfStatement = 245,
3913
- DoStatement = 246,
3914
- WhileStatement = 247,
3915
- ForStatement = 248,
3916
- ForInStatement = 249,
3917
- ForOfStatement = 250,
3918
- ContinueStatement = 251,
3919
- BreakStatement = 252,
3920
- ReturnStatement = 253,
3921
- WithStatement = 254,
3922
- SwitchStatement = 255,
3923
- LabeledStatement = 256,
3924
- ThrowStatement = 257,
3925
- TryStatement = 258,
3926
- DebuggerStatement = 259,
3927
- VariableDeclaration = 260,
3928
- VariableDeclarationList = 261,
3929
- FunctionDeclaration = 262,
3930
- ClassDeclaration = 263,
3931
- InterfaceDeclaration = 264,
3932
- TypeAliasDeclaration = 265,
3933
- EnumDeclaration = 266,
3934
- ModuleDeclaration = 267,
3935
- ModuleBlock = 268,
3936
- CaseBlock = 269,
3937
- NamespaceExportDeclaration = 270,
3938
- ImportEqualsDeclaration = 271,
3939
- ImportDeclaration = 272,
3940
- ImportClause = 273,
3941
- NamespaceImport = 274,
3942
- NamedImports = 275,
3943
- ImportSpecifier = 276,
3944
- ExportAssignment = 277,
3945
- ExportDeclaration = 278,
3946
- NamedExports = 279,
3947
- NamespaceExport = 280,
3948
- ExportSpecifier = 281,
3949
- MissingDeclaration = 282,
3950
- ExternalModuleReference = 283,
3951
- JsxElement = 284,
3952
- JsxSelfClosingElement = 285,
3953
- JsxOpeningElement = 286,
3954
- JsxClosingElement = 287,
3955
- JsxFragment = 288,
3956
- JsxOpeningFragment = 289,
3957
- JsxClosingFragment = 290,
3958
- JsxAttribute = 291,
3959
- JsxAttributes = 292,
3960
- JsxSpreadAttribute = 293,
3961
- JsxExpression = 294,
3962
- JsxNamespacedName = 295,
3963
- CaseClause = 296,
3964
- DefaultClause = 297,
3965
- HeritageClause = 298,
3966
- CatchClause = 299,
3967
- ImportAttributes = 300,
3968
- ImportAttribute = 301,
3969
- /** @deprecated */ AssertClause = 300,
3970
- /** @deprecated */ AssertEntry = 301,
3971
- /** @deprecated */ ImportTypeAssertionContainer = 302,
3972
- PropertyAssignment = 303,
3973
- ShorthandPropertyAssignment = 304,
3974
- SpreadAssignment = 305,
3975
- EnumMember = 306,
3976
- SourceFile = 307,
3977
- Bundle = 308,
3978
- JSDocTypeExpression = 309,
3979
- JSDocNameReference = 310,
3980
- JSDocMemberName = 311,
3981
- JSDocAllType = 312,
3982
- JSDocUnknownType = 313,
3983
- JSDocNullableType = 314,
3984
- JSDocNonNullableType = 315,
3985
- JSDocOptionalType = 316,
3986
- JSDocFunctionType = 317,
3987
- JSDocVariadicType = 318,
3988
- JSDocNamepathType = 319,
3989
- JSDoc = 320,
3845
+ DeferKeyword = 166,
3846
+ QualifiedName = 167,
3847
+ ComputedPropertyName = 168,
3848
+ TypeParameter = 169,
3849
+ Parameter = 170,
3850
+ Decorator = 171,
3851
+ PropertySignature = 172,
3852
+ PropertyDeclaration = 173,
3853
+ MethodSignature = 174,
3854
+ MethodDeclaration = 175,
3855
+ ClassStaticBlockDeclaration = 176,
3856
+ Constructor = 177,
3857
+ GetAccessor = 178,
3858
+ SetAccessor = 179,
3859
+ CallSignature = 180,
3860
+ ConstructSignature = 181,
3861
+ IndexSignature = 182,
3862
+ TypePredicate = 183,
3863
+ TypeReference = 184,
3864
+ FunctionType = 185,
3865
+ ConstructorType = 186,
3866
+ TypeQuery = 187,
3867
+ TypeLiteral = 188,
3868
+ ArrayType = 189,
3869
+ TupleType = 190,
3870
+ OptionalType = 191,
3871
+ RestType = 192,
3872
+ UnionType = 193,
3873
+ IntersectionType = 194,
3874
+ ConditionalType = 195,
3875
+ InferType = 196,
3876
+ ParenthesizedType = 197,
3877
+ ThisType = 198,
3878
+ TypeOperator = 199,
3879
+ IndexedAccessType = 200,
3880
+ MappedType = 201,
3881
+ LiteralType = 202,
3882
+ NamedTupleMember = 203,
3883
+ TemplateLiteralType = 204,
3884
+ TemplateLiteralTypeSpan = 205,
3885
+ ImportType = 206,
3886
+ ObjectBindingPattern = 207,
3887
+ ArrayBindingPattern = 208,
3888
+ BindingElement = 209,
3889
+ ArrayLiteralExpression = 210,
3890
+ ObjectLiteralExpression = 211,
3891
+ PropertyAccessExpression = 212,
3892
+ ElementAccessExpression = 213,
3893
+ CallExpression = 214,
3894
+ NewExpression = 215,
3895
+ TaggedTemplateExpression = 216,
3896
+ TypeAssertionExpression = 217,
3897
+ ParenthesizedExpression = 218,
3898
+ FunctionExpression = 219,
3899
+ ArrowFunction = 220,
3900
+ DeleteExpression = 221,
3901
+ TypeOfExpression = 222,
3902
+ VoidExpression = 223,
3903
+ AwaitExpression = 224,
3904
+ PrefixUnaryExpression = 225,
3905
+ PostfixUnaryExpression = 226,
3906
+ BinaryExpression = 227,
3907
+ ConditionalExpression = 228,
3908
+ TemplateExpression = 229,
3909
+ YieldExpression = 230,
3910
+ SpreadElement = 231,
3911
+ ClassExpression = 232,
3912
+ OmittedExpression = 233,
3913
+ ExpressionWithTypeArguments = 234,
3914
+ AsExpression = 235,
3915
+ NonNullExpression = 236,
3916
+ MetaProperty = 237,
3917
+ SyntheticExpression = 238,
3918
+ SatisfiesExpression = 239,
3919
+ TemplateSpan = 240,
3920
+ SemicolonClassElement = 241,
3921
+ Block = 242,
3922
+ EmptyStatement = 243,
3923
+ VariableStatement = 244,
3924
+ ExpressionStatement = 245,
3925
+ IfStatement = 246,
3926
+ DoStatement = 247,
3927
+ WhileStatement = 248,
3928
+ ForStatement = 249,
3929
+ ForInStatement = 250,
3930
+ ForOfStatement = 251,
3931
+ ContinueStatement = 252,
3932
+ BreakStatement = 253,
3933
+ ReturnStatement = 254,
3934
+ WithStatement = 255,
3935
+ SwitchStatement = 256,
3936
+ LabeledStatement = 257,
3937
+ ThrowStatement = 258,
3938
+ TryStatement = 259,
3939
+ DebuggerStatement = 260,
3940
+ VariableDeclaration = 261,
3941
+ VariableDeclarationList = 262,
3942
+ FunctionDeclaration = 263,
3943
+ ClassDeclaration = 264,
3944
+ InterfaceDeclaration = 265,
3945
+ TypeAliasDeclaration = 266,
3946
+ EnumDeclaration = 267,
3947
+ ModuleDeclaration = 268,
3948
+ ModuleBlock = 269,
3949
+ CaseBlock = 270,
3950
+ NamespaceExportDeclaration = 271,
3951
+ ImportEqualsDeclaration = 272,
3952
+ ImportDeclaration = 273,
3953
+ ImportClause = 274,
3954
+ NamespaceImport = 275,
3955
+ NamedImports = 276,
3956
+ ImportSpecifier = 277,
3957
+ ExportAssignment = 278,
3958
+ ExportDeclaration = 279,
3959
+ NamedExports = 280,
3960
+ NamespaceExport = 281,
3961
+ ExportSpecifier = 282,
3962
+ MissingDeclaration = 283,
3963
+ ExternalModuleReference = 284,
3964
+ JsxElement = 285,
3965
+ JsxSelfClosingElement = 286,
3966
+ JsxOpeningElement = 287,
3967
+ JsxClosingElement = 288,
3968
+ JsxFragment = 289,
3969
+ JsxOpeningFragment = 290,
3970
+ JsxClosingFragment = 291,
3971
+ JsxAttribute = 292,
3972
+ JsxAttributes = 293,
3973
+ JsxSpreadAttribute = 294,
3974
+ JsxExpression = 295,
3975
+ JsxNamespacedName = 296,
3976
+ CaseClause = 297,
3977
+ DefaultClause = 298,
3978
+ HeritageClause = 299,
3979
+ CatchClause = 300,
3980
+ ImportAttributes = 301,
3981
+ ImportAttribute = 302,
3982
+ /** @deprecated */ AssertClause = 301,
3983
+ /** @deprecated */ AssertEntry = 302,
3984
+ /** @deprecated */ ImportTypeAssertionContainer = 303,
3985
+ PropertyAssignment = 304,
3986
+ ShorthandPropertyAssignment = 305,
3987
+ SpreadAssignment = 306,
3988
+ EnumMember = 307,
3989
+ SourceFile = 308,
3990
+ Bundle = 309,
3991
+ JSDocTypeExpression = 310,
3992
+ JSDocNameReference = 311,
3993
+ JSDocMemberName = 312,
3994
+ JSDocAllType = 313,
3995
+ JSDocUnknownType = 314,
3996
+ JSDocNullableType = 315,
3997
+ JSDocNonNullableType = 316,
3998
+ JSDocOptionalType = 317,
3999
+ JSDocFunctionType = 318,
4000
+ JSDocVariadicType = 319,
4001
+ JSDocNamepathType = 320,
4002
+ JSDoc = 321,
3990
4003
  /** @deprecated Use SyntaxKind.JSDoc */
3991
- JSDocComment = 320,
3992
- JSDocText = 321,
3993
- JSDocTypeLiteral = 322,
3994
- JSDocSignature = 323,
3995
- JSDocLink = 324,
3996
- JSDocLinkCode = 325,
3997
- JSDocLinkPlain = 326,
3998
- JSDocTag = 327,
3999
- JSDocAugmentsTag = 328,
4000
- JSDocImplementsTag = 329,
4001
- JSDocAuthorTag = 330,
4002
- JSDocDeprecatedTag = 331,
4003
- JSDocClassTag = 332,
4004
- JSDocPublicTag = 333,
4005
- JSDocPrivateTag = 334,
4006
- JSDocProtectedTag = 335,
4007
- JSDocReadonlyTag = 336,
4008
- JSDocOverrideTag = 337,
4009
- JSDocCallbackTag = 338,
4010
- JSDocOverloadTag = 339,
4011
- JSDocEnumTag = 340,
4012
- JSDocParameterTag = 341,
4013
- JSDocReturnTag = 342,
4014
- JSDocThisTag = 343,
4015
- JSDocTypeTag = 344,
4016
- JSDocTemplateTag = 345,
4017
- JSDocTypedefTag = 346,
4018
- JSDocSeeTag = 347,
4019
- JSDocPropertyTag = 348,
4020
- JSDocThrowsTag = 349,
4021
- JSDocSatisfiesTag = 350,
4022
- JSDocImportTag = 351,
4023
- SyntaxList = 352,
4024
- NotEmittedStatement = 353,
4025
- NotEmittedTypeElement = 354,
4026
- PartiallyEmittedExpression = 355,
4027
- CommaListExpression = 356,
4028
- SyntheticReferenceExpression = 357,
4029
- Count = 358,
4004
+ JSDocComment = 321,
4005
+ JSDocText = 322,
4006
+ JSDocTypeLiteral = 323,
4007
+ JSDocSignature = 324,
4008
+ JSDocLink = 325,
4009
+ JSDocLinkCode = 326,
4010
+ JSDocLinkPlain = 327,
4011
+ JSDocTag = 328,
4012
+ JSDocAugmentsTag = 329,
4013
+ JSDocImplementsTag = 330,
4014
+ JSDocAuthorTag = 331,
4015
+ JSDocDeprecatedTag = 332,
4016
+ JSDocClassTag = 333,
4017
+ JSDocPublicTag = 334,
4018
+ JSDocPrivateTag = 335,
4019
+ JSDocProtectedTag = 336,
4020
+ JSDocReadonlyTag = 337,
4021
+ JSDocOverrideTag = 338,
4022
+ JSDocCallbackTag = 339,
4023
+ JSDocOverloadTag = 340,
4024
+ JSDocEnumTag = 341,
4025
+ JSDocParameterTag = 342,
4026
+ JSDocReturnTag = 343,
4027
+ JSDocThisTag = 344,
4028
+ JSDocTypeTag = 345,
4029
+ JSDocTemplateTag = 346,
4030
+ JSDocTypedefTag = 347,
4031
+ JSDocSeeTag = 348,
4032
+ JSDocPropertyTag = 349,
4033
+ JSDocThrowsTag = 350,
4034
+ JSDocSatisfiesTag = 351,
4035
+ JSDocImportTag = 352,
4036
+ SyntaxList = 353,
4037
+ NotEmittedStatement = 354,
4038
+ NotEmittedTypeElement = 355,
4039
+ PartiallyEmittedExpression = 356,
4040
+ CommaListExpression = 357,
4041
+ SyntheticReferenceExpression = 358,
4042
+ Count = 359,
4030
4043
  FirstAssignment = 64,
4031
4044
  LastAssignment = 79,
4032
4045
  FirstCompoundAssignment = 65,
@@ -4034,15 +4047,15 @@ declare namespace ts {
4034
4047
  FirstReservedWord = 83,
4035
4048
  LastReservedWord = 118,
4036
4049
  FirstKeyword = 83,
4037
- LastKeyword = 165,
4050
+ LastKeyword = 166,
4038
4051
  FirstFutureReservedWord = 119,
4039
4052
  LastFutureReservedWord = 127,
4040
- FirstTypeNode = 182,
4041
- LastTypeNode = 205,
4053
+ FirstTypeNode = 183,
4054
+ LastTypeNode = 206,
4042
4055
  FirstPunctuation = 19,
4043
4056
  LastPunctuation = 79,
4044
4057
  FirstToken = 0,
4045
- LastToken = 165,
4058
+ LastToken = 166,
4046
4059
  FirstTriviaToken = 2,
4047
4060
  LastTriviaToken = 7,
4048
4061
  FirstLiteralToken = 9,
@@ -4051,13 +4064,13 @@ declare namespace ts {
4051
4064
  LastTemplateToken = 18,
4052
4065
  FirstBinaryOperator = 30,
4053
4066
  LastBinaryOperator = 79,
4054
- FirstStatement = 243,
4055
- LastStatement = 259,
4056
- FirstNode = 166,
4057
- FirstJSDocNode = 309,
4058
- LastJSDocNode = 351,
4059
- FirstJSDocTagNode = 327,
4060
- LastJSDocTagNode = 351,
4067
+ FirstStatement = 244,
4068
+ LastStatement = 260,
4069
+ FirstNode = 167,
4070
+ FirstJSDocNode = 310,
4071
+ LastJSDocNode = 352,
4072
+ FirstJSDocTagNode = 328,
4073
+ LastJSDocTagNode = 352,
4061
4074
  }
4062
4075
  type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
4063
4076
  type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
@@ -4145,6 +4158,7 @@ declare namespace ts {
4145
4158
  | SyntaxKind.DebuggerKeyword
4146
4159
  | SyntaxKind.DeclareKeyword
4147
4160
  | SyntaxKind.DefaultKeyword
4161
+ | SyntaxKind.DeferKeyword
4148
4162
  | SyntaxKind.DeleteKeyword
4149
4163
  | SyntaxKind.DoKeyword
4150
4164
  | SyntaxKind.ElseKeyword
@@ -5117,7 +5131,7 @@ declare namespace ts {
5117
5131
  readonly expression: SuperExpression;
5118
5132
  }
5119
5133
  interface ImportCall extends CallExpression {
5120
- readonly expression: ImportExpression;
5134
+ readonly expression: ImportExpression | ImportDeferProperty;
5121
5135
  }
5122
5136
  interface ExpressionWithTypeArguments extends MemberExpression, NodeWithTypeArguments {
5123
5137
  readonly kind: SyntaxKind.ExpressionWithTypeArguments;
@@ -5167,6 +5181,12 @@ declare namespace ts {
5167
5181
  readonly keywordToken: SyntaxKind.NewKeyword | SyntaxKind.ImportKeyword;
5168
5182
  readonly name: Identifier;
5169
5183
  }
5184
+ interface ImportDeferProperty extends MetaProperty {
5185
+ readonly keywordToken: SyntaxKind.ImportKeyword;
5186
+ readonly name: Identifier & {
5187
+ readonly escapedText: __String & "defer";
5188
+ };
5189
+ }
5170
5190
  interface JsxElement extends PrimaryExpression {
5171
5191
  readonly kind: SyntaxKind.JsxElement;
5172
5192
  readonly openingElement: JsxOpeningElement;
@@ -5506,10 +5526,13 @@ declare namespace ts {
5506
5526
  interface ImportClause extends NamedDeclaration {
5507
5527
  readonly kind: SyntaxKind.ImportClause;
5508
5528
  readonly parent: ImportDeclaration | JSDocImportTag;
5529
+ /** @deprecated Use `phaseModifier` instead */
5509
5530
  readonly isTypeOnly: boolean;
5531
+ readonly phaseModifier: undefined | ImportPhaseModifierSyntaxKind;
5510
5532
  readonly name?: Identifier;
5511
5533
  readonly namedBindings?: NamedImportBindings;
5512
5534
  }
5535
+ type ImportPhaseModifierSyntaxKind = SyntaxKind.TypeKeyword | SyntaxKind.DeferKeyword;
5513
5536
  /** @deprecated */
5514
5537
  type AssertionKey = ImportAttributeName;
5515
5538
  /** @deprecated */
@@ -5884,6 +5907,7 @@ declare namespace ts {
5884
5907
  */
5885
5908
  interface SourceFileLike {
5886
5909
  readonly text: string;
5910
+ languageVariant?: LanguageVariant;
5887
5911
  }
5888
5912
  interface SourceFileLike {
5889
5913
  getLineAndCharacterOfPosition(pos: number): LineAndCharacter;
@@ -6303,6 +6327,10 @@ declare namespace ts {
6303
6327
  * is `never`. Instead, use `type.flags & TypeFlags.Never`.
6304
6328
  */
6305
6329
  getNeverType(): Type;
6330
+ /**
6331
+ * Gets the intrinsic `object` type.
6332
+ */
6333
+ getNonPrimitiveType(): Type;
6306
6334
  /**
6307
6335
  * Returns true if the "source" type is assignable to the "target" type.
6308
6336
  *
@@ -6690,11 +6718,11 @@ declare namespace ts {
6690
6718
  JSLiteral = 4096,
6691
6719
  FreshLiteral = 8192,
6692
6720
  ArrayLiteral = 16384,
6721
+ SingleSignatureType = 134217728,
6693
6722
  ClassOrInterface = 3,
6694
6723
  ContainsSpread = 2097152,
6695
6724
  ObjectRestType = 4194304,
6696
6725
  InstantiationExpressionType = 8388608,
6697
- SingleSignatureType = 134217728,
6698
6726
  }
6699
6727
  interface ObjectType extends Type {
6700
6728
  objectFlags: ObjectFlags;
@@ -7133,6 +7161,7 @@ declare namespace ts {
7133
7161
  ESNext = 99,
7134
7162
  Node16 = 100,
7135
7163
  Node18 = 101,
7164
+ Node20 = 102,
7136
7165
  NodeNext = 199,
7137
7166
  Preserve = 200,
7138
7167
  }
@@ -7713,8 +7742,10 @@ declare namespace ts {
7713
7742
  updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
7714
7743
  createImportDeclaration(modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes?: ImportAttributes): ImportDeclaration;
7715
7744
  updateImportDeclaration(node: ImportDeclaration, modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes: ImportAttributes | undefined): ImportDeclaration;
7716
- createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7717
- updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7745
+ createImportClause(phaseModifier: ImportPhaseModifierSyntaxKind | undefined, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7746
+ /** @deprecated */ createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7747
+ updateImportClause(node: ImportClause, phaseModifier: ImportPhaseModifierSyntaxKind | undefined, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7748
+ /** @deprecated */ updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
7718
7749
  /** @deprecated */ createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
7719
7750
  /** @deprecated */ updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
7720
7751
  /** @deprecated */ createAssertEntry(name: AssertionKey, value: Expression): AssertEntry;
@@ -8391,6 +8422,12 @@ declare namespace ts {
8391
8422
  readonly displayPartsForJSDoc?: boolean;
8392
8423
  readonly generateReturnInDocTemplate?: boolean;
8393
8424
  readonly disableLineTextInReferences?: boolean;
8425
+ /**
8426
+ * A positive integer indicating the maximum length of a hover text before it is truncated.
8427
+ *
8428
+ * Default: `500`
8429
+ */
8430
+ readonly maximumHoverLength?: number;
8394
8431
  }
8395
8432
  type OrganizeImportsTypeOrder = "last" | "inline" | "first";
8396
8433
  /** Represents a bigint literal value without requiring bigint support */
@@ -10168,8 +10205,9 @@ declare namespace ts {
10168
10205
  *
10169
10206
  * @param fileName The path to the file
10170
10207
  * @param position A zero-based index of the character where you want the quick info
10208
+ * @param maximumLength Maximum length of a quickinfo text before it is truncated.
10171
10209
  */
10172
- getQuickInfoAtPosition(fileName: string, position: number): QuickInfo | undefined;
10210
+ getQuickInfoAtPosition(fileName: string, position: number, maximumLength?: number): QuickInfo | undefined;
10173
10211
  getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan | undefined;
10174
10212
  getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan | undefined;
10175
10213
  getSignatureHelpItems(fileName: string, position: number, options: SignatureHelpItemsOptions | undefined): SignatureHelpItems | undefined;
@@ -10757,6 +10795,7 @@ declare namespace ts {
10757
10795
  displayParts?: SymbolDisplayPart[];
10758
10796
  documentation?: SymbolDisplayPart[];
10759
10797
  tags?: JSDocTagInfo[];
10798
+ canIncreaseVerbosityLevel?: boolean;
10760
10799
  }
10761
10800
  type RenameInfo = RenameInfoSuccess | RenameInfoFailure;
10762
10801
  interface RenameInfoSuccess {