typescript 5.9.0-dev.20250605 → 5.9.0-dev.20250607
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 +5572 -5377
- 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/typescript.d.ts +223 -210
- package/lib/typescript.js +7554 -7370
- package/package.json +2 -2
package/lib/lib.esnext.d.ts
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
/*! *****************************************************************************
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11
|
+
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
13
|
+
and limitations under the License.
|
14
|
+
***************************************************************************** */
|
15
|
+
|
16
|
+
|
17
|
+
/// <reference no-default-lib="true"/>
|
18
|
+
|
19
|
+
interface ErrorConstructor {
|
20
|
+
/**
|
21
|
+
* Indicates whether the argument provided is a built-in Error instance or not.
|
22
|
+
*/
|
23
|
+
isError(error: unknown): error is Error;
|
24
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/*! *****************************************************************************
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
6
|
+
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11
|
+
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
13
|
+
and limitations under the License.
|
14
|
+
***************************************************************************** */
|
15
|
+
|
16
|
+
|
17
|
+
/// <reference no-default-lib="true"/>
|
18
|
+
|
19
|
+
interface Atomics {
|
20
|
+
/**
|
21
|
+
* Performs a finite-time microwait by signaling to the operating system or
|
22
|
+
* CPU that the current executing code is in a spin-wait loop.
|
23
|
+
*/
|
24
|
+
pause(n?: number): void;
|
25
|
+
}
|
package/lib/typescript.d.ts
CHANGED
@@ -3841,203 +3841,204 @@ declare namespace ts {
|
|
3841
3841
|
BigIntKeyword = 163,
|
3842
3842
|
OverrideKeyword = 164,
|
3843
3843
|
OfKeyword = 165,
|
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
|
-
|
3971
|
-
|
3972
|
-
|
3973
|
-
|
3974
|
-
|
3975
|
-
|
3976
|
-
|
3977
|
-
|
3978
|
-
|
3979
|
-
|
3980
|
-
|
3981
|
-
/** @deprecated */
|
3982
|
-
/** @deprecated */
|
3983
|
-
|
3984
|
-
|
3985
|
-
|
3986
|
-
|
3987
|
-
|
3988
|
-
|
3989
|
-
|
3990
|
-
|
3991
|
-
|
3992
|
-
|
3993
|
-
|
3994
|
-
|
3995
|
-
|
3996
|
-
|
3997
|
-
|
3998
|
-
|
3999
|
-
|
4000
|
-
|
3844
|
+
DeferKeyword = 166,
|
3845
|
+
QualifiedName = 167,
|
3846
|
+
ComputedPropertyName = 168,
|
3847
|
+
TypeParameter = 169,
|
3848
|
+
Parameter = 170,
|
3849
|
+
Decorator = 171,
|
3850
|
+
PropertySignature = 172,
|
3851
|
+
PropertyDeclaration = 173,
|
3852
|
+
MethodSignature = 174,
|
3853
|
+
MethodDeclaration = 175,
|
3854
|
+
ClassStaticBlockDeclaration = 176,
|
3855
|
+
Constructor = 177,
|
3856
|
+
GetAccessor = 178,
|
3857
|
+
SetAccessor = 179,
|
3858
|
+
CallSignature = 180,
|
3859
|
+
ConstructSignature = 181,
|
3860
|
+
IndexSignature = 182,
|
3861
|
+
TypePredicate = 183,
|
3862
|
+
TypeReference = 184,
|
3863
|
+
FunctionType = 185,
|
3864
|
+
ConstructorType = 186,
|
3865
|
+
TypeQuery = 187,
|
3866
|
+
TypeLiteral = 188,
|
3867
|
+
ArrayType = 189,
|
3868
|
+
TupleType = 190,
|
3869
|
+
OptionalType = 191,
|
3870
|
+
RestType = 192,
|
3871
|
+
UnionType = 193,
|
3872
|
+
IntersectionType = 194,
|
3873
|
+
ConditionalType = 195,
|
3874
|
+
InferType = 196,
|
3875
|
+
ParenthesizedType = 197,
|
3876
|
+
ThisType = 198,
|
3877
|
+
TypeOperator = 199,
|
3878
|
+
IndexedAccessType = 200,
|
3879
|
+
MappedType = 201,
|
3880
|
+
LiteralType = 202,
|
3881
|
+
NamedTupleMember = 203,
|
3882
|
+
TemplateLiteralType = 204,
|
3883
|
+
TemplateLiteralTypeSpan = 205,
|
3884
|
+
ImportType = 206,
|
3885
|
+
ObjectBindingPattern = 207,
|
3886
|
+
ArrayBindingPattern = 208,
|
3887
|
+
BindingElement = 209,
|
3888
|
+
ArrayLiteralExpression = 210,
|
3889
|
+
ObjectLiteralExpression = 211,
|
3890
|
+
PropertyAccessExpression = 212,
|
3891
|
+
ElementAccessExpression = 213,
|
3892
|
+
CallExpression = 214,
|
3893
|
+
NewExpression = 215,
|
3894
|
+
TaggedTemplateExpression = 216,
|
3895
|
+
TypeAssertionExpression = 217,
|
3896
|
+
ParenthesizedExpression = 218,
|
3897
|
+
FunctionExpression = 219,
|
3898
|
+
ArrowFunction = 220,
|
3899
|
+
DeleteExpression = 221,
|
3900
|
+
TypeOfExpression = 222,
|
3901
|
+
VoidExpression = 223,
|
3902
|
+
AwaitExpression = 224,
|
3903
|
+
PrefixUnaryExpression = 225,
|
3904
|
+
PostfixUnaryExpression = 226,
|
3905
|
+
BinaryExpression = 227,
|
3906
|
+
ConditionalExpression = 228,
|
3907
|
+
TemplateExpression = 229,
|
3908
|
+
YieldExpression = 230,
|
3909
|
+
SpreadElement = 231,
|
3910
|
+
ClassExpression = 232,
|
3911
|
+
OmittedExpression = 233,
|
3912
|
+
ExpressionWithTypeArguments = 234,
|
3913
|
+
AsExpression = 235,
|
3914
|
+
NonNullExpression = 236,
|
3915
|
+
MetaProperty = 237,
|
3916
|
+
SyntheticExpression = 238,
|
3917
|
+
SatisfiesExpression = 239,
|
3918
|
+
TemplateSpan = 240,
|
3919
|
+
SemicolonClassElement = 241,
|
3920
|
+
Block = 242,
|
3921
|
+
EmptyStatement = 243,
|
3922
|
+
VariableStatement = 244,
|
3923
|
+
ExpressionStatement = 245,
|
3924
|
+
IfStatement = 246,
|
3925
|
+
DoStatement = 247,
|
3926
|
+
WhileStatement = 248,
|
3927
|
+
ForStatement = 249,
|
3928
|
+
ForInStatement = 250,
|
3929
|
+
ForOfStatement = 251,
|
3930
|
+
ContinueStatement = 252,
|
3931
|
+
BreakStatement = 253,
|
3932
|
+
ReturnStatement = 254,
|
3933
|
+
WithStatement = 255,
|
3934
|
+
SwitchStatement = 256,
|
3935
|
+
LabeledStatement = 257,
|
3936
|
+
ThrowStatement = 258,
|
3937
|
+
TryStatement = 259,
|
3938
|
+
DebuggerStatement = 260,
|
3939
|
+
VariableDeclaration = 261,
|
3940
|
+
VariableDeclarationList = 262,
|
3941
|
+
FunctionDeclaration = 263,
|
3942
|
+
ClassDeclaration = 264,
|
3943
|
+
InterfaceDeclaration = 265,
|
3944
|
+
TypeAliasDeclaration = 266,
|
3945
|
+
EnumDeclaration = 267,
|
3946
|
+
ModuleDeclaration = 268,
|
3947
|
+
ModuleBlock = 269,
|
3948
|
+
CaseBlock = 270,
|
3949
|
+
NamespaceExportDeclaration = 271,
|
3950
|
+
ImportEqualsDeclaration = 272,
|
3951
|
+
ImportDeclaration = 273,
|
3952
|
+
ImportClause = 274,
|
3953
|
+
NamespaceImport = 275,
|
3954
|
+
NamedImports = 276,
|
3955
|
+
ImportSpecifier = 277,
|
3956
|
+
ExportAssignment = 278,
|
3957
|
+
ExportDeclaration = 279,
|
3958
|
+
NamedExports = 280,
|
3959
|
+
NamespaceExport = 281,
|
3960
|
+
ExportSpecifier = 282,
|
3961
|
+
MissingDeclaration = 283,
|
3962
|
+
ExternalModuleReference = 284,
|
3963
|
+
JsxElement = 285,
|
3964
|
+
JsxSelfClosingElement = 286,
|
3965
|
+
JsxOpeningElement = 287,
|
3966
|
+
JsxClosingElement = 288,
|
3967
|
+
JsxFragment = 289,
|
3968
|
+
JsxOpeningFragment = 290,
|
3969
|
+
JsxClosingFragment = 291,
|
3970
|
+
JsxAttribute = 292,
|
3971
|
+
JsxAttributes = 293,
|
3972
|
+
JsxSpreadAttribute = 294,
|
3973
|
+
JsxExpression = 295,
|
3974
|
+
JsxNamespacedName = 296,
|
3975
|
+
CaseClause = 297,
|
3976
|
+
DefaultClause = 298,
|
3977
|
+
HeritageClause = 299,
|
3978
|
+
CatchClause = 300,
|
3979
|
+
ImportAttributes = 301,
|
3980
|
+
ImportAttribute = 302,
|
3981
|
+
/** @deprecated */ AssertClause = 301,
|
3982
|
+
/** @deprecated */ AssertEntry = 302,
|
3983
|
+
/** @deprecated */ ImportTypeAssertionContainer = 303,
|
3984
|
+
PropertyAssignment = 304,
|
3985
|
+
ShorthandPropertyAssignment = 305,
|
3986
|
+
SpreadAssignment = 306,
|
3987
|
+
EnumMember = 307,
|
3988
|
+
SourceFile = 308,
|
3989
|
+
Bundle = 309,
|
3990
|
+
JSDocTypeExpression = 310,
|
3991
|
+
JSDocNameReference = 311,
|
3992
|
+
JSDocMemberName = 312,
|
3993
|
+
JSDocAllType = 313,
|
3994
|
+
JSDocUnknownType = 314,
|
3995
|
+
JSDocNullableType = 315,
|
3996
|
+
JSDocNonNullableType = 316,
|
3997
|
+
JSDocOptionalType = 317,
|
3998
|
+
JSDocFunctionType = 318,
|
3999
|
+
JSDocVariadicType = 319,
|
4000
|
+
JSDocNamepathType = 320,
|
4001
|
+
JSDoc = 321,
|
4001
4002
|
/** @deprecated Use SyntaxKind.JSDoc */
|
4002
|
-
JSDocComment =
|
4003
|
-
JSDocText =
|
4004
|
-
JSDocTypeLiteral =
|
4005
|
-
JSDocSignature =
|
4006
|
-
JSDocLink =
|
4007
|
-
JSDocLinkCode =
|
4008
|
-
JSDocLinkPlain =
|
4009
|
-
JSDocTag =
|
4010
|
-
JSDocAugmentsTag =
|
4011
|
-
JSDocImplementsTag =
|
4012
|
-
JSDocAuthorTag =
|
4013
|
-
JSDocDeprecatedTag =
|
4014
|
-
JSDocClassTag =
|
4015
|
-
JSDocPublicTag =
|
4016
|
-
JSDocPrivateTag =
|
4017
|
-
JSDocProtectedTag =
|
4018
|
-
JSDocReadonlyTag =
|
4019
|
-
JSDocOverrideTag =
|
4020
|
-
JSDocCallbackTag =
|
4021
|
-
JSDocOverloadTag =
|
4022
|
-
JSDocEnumTag =
|
4023
|
-
JSDocParameterTag =
|
4024
|
-
JSDocReturnTag =
|
4025
|
-
JSDocThisTag =
|
4026
|
-
JSDocTypeTag =
|
4027
|
-
JSDocTemplateTag =
|
4028
|
-
JSDocTypedefTag =
|
4029
|
-
JSDocSeeTag =
|
4030
|
-
JSDocPropertyTag =
|
4031
|
-
JSDocThrowsTag =
|
4032
|
-
JSDocSatisfiesTag =
|
4033
|
-
JSDocImportTag =
|
4034
|
-
SyntaxList =
|
4035
|
-
NotEmittedStatement =
|
4036
|
-
NotEmittedTypeElement =
|
4037
|
-
PartiallyEmittedExpression =
|
4038
|
-
CommaListExpression =
|
4039
|
-
SyntheticReferenceExpression =
|
4040
|
-
Count =
|
4003
|
+
JSDocComment = 321,
|
4004
|
+
JSDocText = 322,
|
4005
|
+
JSDocTypeLiteral = 323,
|
4006
|
+
JSDocSignature = 324,
|
4007
|
+
JSDocLink = 325,
|
4008
|
+
JSDocLinkCode = 326,
|
4009
|
+
JSDocLinkPlain = 327,
|
4010
|
+
JSDocTag = 328,
|
4011
|
+
JSDocAugmentsTag = 329,
|
4012
|
+
JSDocImplementsTag = 330,
|
4013
|
+
JSDocAuthorTag = 331,
|
4014
|
+
JSDocDeprecatedTag = 332,
|
4015
|
+
JSDocClassTag = 333,
|
4016
|
+
JSDocPublicTag = 334,
|
4017
|
+
JSDocPrivateTag = 335,
|
4018
|
+
JSDocProtectedTag = 336,
|
4019
|
+
JSDocReadonlyTag = 337,
|
4020
|
+
JSDocOverrideTag = 338,
|
4021
|
+
JSDocCallbackTag = 339,
|
4022
|
+
JSDocOverloadTag = 340,
|
4023
|
+
JSDocEnumTag = 341,
|
4024
|
+
JSDocParameterTag = 342,
|
4025
|
+
JSDocReturnTag = 343,
|
4026
|
+
JSDocThisTag = 344,
|
4027
|
+
JSDocTypeTag = 345,
|
4028
|
+
JSDocTemplateTag = 346,
|
4029
|
+
JSDocTypedefTag = 347,
|
4030
|
+
JSDocSeeTag = 348,
|
4031
|
+
JSDocPropertyTag = 349,
|
4032
|
+
JSDocThrowsTag = 350,
|
4033
|
+
JSDocSatisfiesTag = 351,
|
4034
|
+
JSDocImportTag = 352,
|
4035
|
+
SyntaxList = 353,
|
4036
|
+
NotEmittedStatement = 354,
|
4037
|
+
NotEmittedTypeElement = 355,
|
4038
|
+
PartiallyEmittedExpression = 356,
|
4039
|
+
CommaListExpression = 357,
|
4040
|
+
SyntheticReferenceExpression = 358,
|
4041
|
+
Count = 359,
|
4041
4042
|
FirstAssignment = 64,
|
4042
4043
|
LastAssignment = 79,
|
4043
4044
|
FirstCompoundAssignment = 65,
|
@@ -4045,15 +4046,15 @@ declare namespace ts {
|
|
4045
4046
|
FirstReservedWord = 83,
|
4046
4047
|
LastReservedWord = 118,
|
4047
4048
|
FirstKeyword = 83,
|
4048
|
-
LastKeyword =
|
4049
|
+
LastKeyword = 166,
|
4049
4050
|
FirstFutureReservedWord = 119,
|
4050
4051
|
LastFutureReservedWord = 127,
|
4051
|
-
FirstTypeNode =
|
4052
|
-
LastTypeNode =
|
4052
|
+
FirstTypeNode = 183,
|
4053
|
+
LastTypeNode = 206,
|
4053
4054
|
FirstPunctuation = 19,
|
4054
4055
|
LastPunctuation = 79,
|
4055
4056
|
FirstToken = 0,
|
4056
|
-
LastToken =
|
4057
|
+
LastToken = 166,
|
4057
4058
|
FirstTriviaToken = 2,
|
4058
4059
|
LastTriviaToken = 7,
|
4059
4060
|
FirstLiteralToken = 9,
|
@@ -4062,13 +4063,13 @@ declare namespace ts {
|
|
4062
4063
|
LastTemplateToken = 18,
|
4063
4064
|
FirstBinaryOperator = 30,
|
4064
4065
|
LastBinaryOperator = 79,
|
4065
|
-
FirstStatement =
|
4066
|
-
LastStatement =
|
4067
|
-
FirstNode =
|
4068
|
-
FirstJSDocNode =
|
4069
|
-
LastJSDocNode =
|
4070
|
-
FirstJSDocTagNode =
|
4071
|
-
LastJSDocTagNode =
|
4066
|
+
FirstStatement = 244,
|
4067
|
+
LastStatement = 260,
|
4068
|
+
FirstNode = 167,
|
4069
|
+
FirstJSDocNode = 310,
|
4070
|
+
LastJSDocNode = 352,
|
4071
|
+
FirstJSDocTagNode = 328,
|
4072
|
+
LastJSDocTagNode = 352,
|
4072
4073
|
}
|
4073
4074
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
4074
4075
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
@@ -4156,6 +4157,7 @@ declare namespace ts {
|
|
4156
4157
|
| SyntaxKind.DebuggerKeyword
|
4157
4158
|
| SyntaxKind.DeclareKeyword
|
4158
4159
|
| SyntaxKind.DefaultKeyword
|
4160
|
+
| SyntaxKind.DeferKeyword
|
4159
4161
|
| SyntaxKind.DeleteKeyword
|
4160
4162
|
| SyntaxKind.DoKeyword
|
4161
4163
|
| SyntaxKind.ElseKeyword
|
@@ -5128,7 +5130,7 @@ declare namespace ts {
|
|
5128
5130
|
readonly expression: SuperExpression;
|
5129
5131
|
}
|
5130
5132
|
interface ImportCall extends CallExpression {
|
5131
|
-
readonly expression: ImportExpression;
|
5133
|
+
readonly expression: ImportExpression | ImportDeferProperty;
|
5132
5134
|
}
|
5133
5135
|
interface ExpressionWithTypeArguments extends MemberExpression, NodeWithTypeArguments {
|
5134
5136
|
readonly kind: SyntaxKind.ExpressionWithTypeArguments;
|
@@ -5178,6 +5180,12 @@ declare namespace ts {
|
|
5178
5180
|
readonly keywordToken: SyntaxKind.NewKeyword | SyntaxKind.ImportKeyword;
|
5179
5181
|
readonly name: Identifier;
|
5180
5182
|
}
|
5183
|
+
interface ImportDeferProperty extends MetaProperty {
|
5184
|
+
readonly keywordToken: SyntaxKind.ImportKeyword;
|
5185
|
+
readonly name: Identifier & {
|
5186
|
+
readonly escapedText: __String & "defer";
|
5187
|
+
};
|
5188
|
+
}
|
5181
5189
|
interface JsxElement extends PrimaryExpression {
|
5182
5190
|
readonly kind: SyntaxKind.JsxElement;
|
5183
5191
|
readonly openingElement: JsxOpeningElement;
|
@@ -5517,10 +5525,13 @@ declare namespace ts {
|
|
5517
5525
|
interface ImportClause extends NamedDeclaration {
|
5518
5526
|
readonly kind: SyntaxKind.ImportClause;
|
5519
5527
|
readonly parent: ImportDeclaration | JSDocImportTag;
|
5528
|
+
/** @deprecated Use `phaseModifier` instead */
|
5520
5529
|
readonly isTypeOnly: boolean;
|
5530
|
+
readonly phaseModifier: undefined | ImportPhaseModifierSyntaxKind;
|
5521
5531
|
readonly name?: Identifier;
|
5522
5532
|
readonly namedBindings?: NamedImportBindings;
|
5523
5533
|
}
|
5534
|
+
type ImportPhaseModifierSyntaxKind = SyntaxKind.TypeKeyword | SyntaxKind.DeferKeyword;
|
5524
5535
|
/** @deprecated */
|
5525
5536
|
type AssertionKey = ImportAttributeName;
|
5526
5537
|
/** @deprecated */
|
@@ -7728,8 +7739,10 @@ declare namespace ts {
|
|
7728
7739
|
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, modifiers: readonly ModifierLike[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
7729
7740
|
createImportDeclaration(modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes?: ImportAttributes): ImportDeclaration;
|
7730
7741
|
updateImportDeclaration(node: ImportDeclaration, modifiers: readonly ModifierLike[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes: ImportAttributes | undefined): ImportDeclaration;
|
7731
|
-
createImportClause(
|
7732
|
-
|
7742
|
+
createImportClause(phaseModifier: ImportPhaseModifierSyntaxKind | undefined, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
7743
|
+
/** @deprecated */ createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
7744
|
+
updateImportClause(node: ImportClause, phaseModifier: ImportPhaseModifierSyntaxKind | undefined, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
7745
|
+
/** @deprecated */ updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
7733
7746
|
/** @deprecated */ createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
7734
7747
|
/** @deprecated */ updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
7735
7748
|
/** @deprecated */ createAssertEntry(name: AssertionKey, value: Expression): AssertEntry;
|