typescript 5.8.3 → 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.
- package/lib/_tsc.js +6774 -5809
- package/lib/cs/diagnosticMessages.generated.json +29 -13
- package/lib/de/diagnosticMessages.generated.json +29 -13
- package/lib/es/diagnosticMessages.generated.json +29 -13
- package/lib/fr/diagnosticMessages.generated.json +29 -13
- package/lib/it/diagnosticMessages.generated.json +29 -13
- package/lib/ja/diagnosticMessages.generated.json +29 -13
- package/lib/ko/diagnosticMessages.generated.json +29 -13
- package/lib/lib.dom.d.ts +2150 -793
- package/lib/lib.dom.iterable.d.ts +4 -4
- package/lib/lib.es2015.symbol.wellknown.d.ts +1 -1
- package/lib/lib.es2017.sharedmemory.d.ts +1 -1
- package/lib/lib.es2022.intl.d.ts +25 -1
- package/lib/lib.es5.d.ts +3 -0
- package/lib/lib.esnext.d.ts +2 -0
- package/lib/lib.esnext.error.d.ts +24 -0
- package/lib/lib.esnext.sharedmemory.d.ts +25 -0
- package/lib/lib.webworker.d.ts +916 -347
- package/lib/lib.webworker.iterable.d.ts +4 -4
- package/lib/pl/diagnosticMessages.generated.json +29 -13
- package/lib/pt-br/diagnosticMessages.generated.json +29 -13
- package/lib/ru/diagnosticMessages.generated.json +29 -13
- package/lib/tr/diagnosticMessages.generated.json +29 -13
- package/lib/typescript.d.ts +252 -213
- package/lib/typescript.js +9112 -7998
- package/lib/zh-cn/diagnosticMessages.generated.json +29 -13
- package/lib/zh-tw/diagnosticMessages.generated.json +29 -13
- package/package.json +22 -22
package/lib/typescript.d.ts
CHANGED
@@ -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.
|
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
|
-
|
3834
|
-
|
3835
|
-
|
3836
|
-
|
3837
|
-
|
3838
|
-
|
3839
|
-
|
3840
|
-
|
3841
|
-
|
3842
|
-
|
3843
|
-
|
3844
|
-
|
3845
|
-
|
3846
|
-
|
3847
|
-
|
3848
|
-
|
3849
|
-
|
3850
|
-
|
3851
|
-
|
3852
|
-
|
3853
|
-
|
3854
|
-
|
3855
|
-
|
3856
|
-
|
3857
|
-
|
3858
|
-
|
3859
|
-
|
3860
|
-
|
3861
|
-
|
3862
|
-
|
3863
|
-
|
3864
|
-
|
3865
|
-
|
3866
|
-
|
3867
|
-
|
3868
|
-
|
3869
|
-
|
3870
|
-
|
3871
|
-
|
3872
|
-
|
3873
|
-
|
3874
|
-
|
3875
|
-
|
3876
|
-
|
3877
|
-
|
3878
|
-
|
3879
|
-
|
3880
|
-
|
3881
|
-
|
3882
|
-
|
3883
|
-
|
3884
|
-
|
3885
|
-
|
3886
|
-
|
3887
|
-
|
3888
|
-
|
3889
|
-
|
3890
|
-
|
3891
|
-
|
3892
|
-
|
3893
|
-
|
3894
|
-
|
3895
|
-
|
3896
|
-
|
3897
|
-
|
3898
|
-
|
3899
|
-
|
3900
|
-
|
3901
|
-
|
3902
|
-
|
3903
|
-
|
3904
|
-
|
3905
|
-
|
3906
|
-
|
3907
|
-
|
3908
|
-
|
3909
|
-
|
3910
|
-
|
3911
|
-
|
3912
|
-
|
3913
|
-
|
3914
|
-
|
3915
|
-
|
3916
|
-
|
3917
|
-
|
3918
|
-
|
3919
|
-
|
3920
|
-
|
3921
|
-
|
3922
|
-
|
3923
|
-
|
3924
|
-
|
3925
|
-
|
3926
|
-
|
3927
|
-
|
3928
|
-
|
3929
|
-
|
3930
|
-
|
3931
|
-
|
3932
|
-
|
3933
|
-
|
3934
|
-
|
3935
|
-
|
3936
|
-
|
3937
|
-
|
3938
|
-
|
3939
|
-
|
3940
|
-
|
3941
|
-
|
3942
|
-
|
3943
|
-
|
3944
|
-
|
3945
|
-
|
3946
|
-
|
3947
|
-
|
3948
|
-
|
3949
|
-
|
3950
|
-
|
3951
|
-
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
3955
|
-
|
3956
|
-
|
3957
|
-
|
3958
|
-
|
3959
|
-
|
3960
|
-
|
3961
|
-
|
3962
|
-
|
3963
|
-
|
3964
|
-
|
3965
|
-
|
3966
|
-
|
3967
|
-
|
3968
|
-
|
3969
|
-
|
3970
|
-
/** @deprecated */
|
3971
|
-
/** @deprecated */
|
3972
|
-
|
3973
|
-
|
3974
|
-
|
3975
|
-
|
3976
|
-
|
3977
|
-
|
3978
|
-
|
3979
|
-
|
3980
|
-
|
3981
|
-
|
3982
|
-
|
3983
|
-
|
3984
|
-
|
3985
|
-
|
3986
|
-
|
3987
|
-
|
3988
|
-
|
3989
|
-
|
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 =
|
3992
|
-
JSDocText =
|
3993
|
-
JSDocTypeLiteral =
|
3994
|
-
JSDocSignature =
|
3995
|
-
JSDocLink =
|
3996
|
-
JSDocLinkCode =
|
3997
|
-
JSDocLinkPlain =
|
3998
|
-
JSDocTag =
|
3999
|
-
JSDocAugmentsTag =
|
4000
|
-
JSDocImplementsTag =
|
4001
|
-
JSDocAuthorTag =
|
4002
|
-
JSDocDeprecatedTag =
|
4003
|
-
JSDocClassTag =
|
4004
|
-
JSDocPublicTag =
|
4005
|
-
JSDocPrivateTag =
|
4006
|
-
JSDocProtectedTag =
|
4007
|
-
JSDocReadonlyTag =
|
4008
|
-
JSDocOverrideTag =
|
4009
|
-
JSDocCallbackTag =
|
4010
|
-
JSDocOverloadTag =
|
4011
|
-
JSDocEnumTag =
|
4012
|
-
JSDocParameterTag =
|
4013
|
-
JSDocReturnTag =
|
4014
|
-
JSDocThisTag =
|
4015
|
-
JSDocTypeTag =
|
4016
|
-
JSDocTemplateTag =
|
4017
|
-
JSDocTypedefTag =
|
4018
|
-
JSDocSeeTag =
|
4019
|
-
JSDocPropertyTag =
|
4020
|
-
JSDocThrowsTag =
|
4021
|
-
JSDocSatisfiesTag =
|
4022
|
-
JSDocImportTag =
|
4023
|
-
SyntaxList =
|
4024
|
-
NotEmittedStatement =
|
4025
|
-
NotEmittedTypeElement =
|
4026
|
-
PartiallyEmittedExpression =
|
4027
|
-
CommaListExpression =
|
4028
|
-
SyntheticReferenceExpression =
|
4029
|
-
Count =
|
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 =
|
4050
|
+
LastKeyword = 166,
|
4038
4051
|
FirstFutureReservedWord = 119,
|
4039
4052
|
LastFutureReservedWord = 127,
|
4040
|
-
FirstTypeNode =
|
4041
|
-
LastTypeNode =
|
4053
|
+
FirstTypeNode = 183,
|
4054
|
+
LastTypeNode = 206,
|
4042
4055
|
FirstPunctuation = 19,
|
4043
4056
|
LastPunctuation = 79,
|
4044
4057
|
FirstToken = 0,
|
4045
|
-
LastToken =
|
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 =
|
4055
|
-
LastStatement =
|
4056
|
-
FirstNode =
|
4057
|
-
FirstJSDocNode =
|
4058
|
-
LastJSDocNode =
|
4059
|
-
FirstJSDocTagNode =
|
4060
|
-
LastJSDocTagNode =
|
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(
|
7717
|
-
|
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 {
|