typescript 4.5.0-dev.20210917 → 4.5.0-dev.20210921
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/cs/diagnosticMessages.generated.json +5 -5
- package/lib/de/diagnosticMessages.generated.json +5 -0
- package/lib/es/diagnosticMessages.generated.json +5 -0
- package/lib/fr/diagnosticMessages.generated.json +6 -0
- package/lib/ja/diagnosticMessages.generated.json +5 -0
- package/lib/lib.es5.d.ts +17 -0
- package/lib/pl/diagnosticMessages.generated.json +5 -0
- package/lib/ru/diagnosticMessages.generated.json +5 -0
- package/lib/tsc.js +4581 -4421
- package/lib/tsserver.js +7320 -7118
- package/lib/tsserverlibrary.d.ts +267 -240
- package/lib/tsserverlibrary.js +7320 -7118
- package/lib/typescript.d.ts +267 -240
- package/lib/typescript.js +7320 -7118
- package/lib/typescriptServices.d.ts +267 -240
- package/lib/typescriptServices.js +7320 -7118
- package/lib/typingsInstaller.js +5377 -5197
- package/lib/zh-cn/diagnosticMessages.generated.json +5 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +5 -5
- package/package.json +1 -1
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -234,228 +234,231 @@ declare namespace ts {
|
|
|
234
234
|
AbstractKeyword = 126,
|
|
235
235
|
AsKeyword = 127,
|
|
236
236
|
AssertsKeyword = 128,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
237
|
+
AssertKeyword = 129,
|
|
238
|
+
AnyKeyword = 130,
|
|
239
|
+
AsyncKeyword = 131,
|
|
240
|
+
AwaitKeyword = 132,
|
|
241
|
+
BooleanKeyword = 133,
|
|
242
|
+
ConstructorKeyword = 134,
|
|
243
|
+
DeclareKeyword = 135,
|
|
244
|
+
GetKeyword = 136,
|
|
245
|
+
InferKeyword = 137,
|
|
246
|
+
IntrinsicKeyword = 138,
|
|
247
|
+
IsKeyword = 139,
|
|
248
|
+
KeyOfKeyword = 140,
|
|
249
|
+
ModuleKeyword = 141,
|
|
250
|
+
NamespaceKeyword = 142,
|
|
251
|
+
NeverKeyword = 143,
|
|
252
|
+
ReadonlyKeyword = 144,
|
|
253
|
+
RequireKeyword = 145,
|
|
254
|
+
NumberKeyword = 146,
|
|
255
|
+
ObjectKeyword = 147,
|
|
256
|
+
SetKeyword = 148,
|
|
257
|
+
StringKeyword = 149,
|
|
258
|
+
SymbolKeyword = 150,
|
|
259
|
+
TypeKeyword = 151,
|
|
260
|
+
UndefinedKeyword = 152,
|
|
261
|
+
UniqueKeyword = 153,
|
|
262
|
+
UnknownKeyword = 154,
|
|
263
|
+
FromKeyword = 155,
|
|
264
|
+
GlobalKeyword = 156,
|
|
265
|
+
BigIntKeyword = 157,
|
|
266
|
+
OverrideKeyword = 158,
|
|
267
|
+
OfKeyword = 159,
|
|
268
|
+
QualifiedName = 160,
|
|
269
|
+
ComputedPropertyName = 161,
|
|
270
|
+
TypeParameter = 162,
|
|
271
|
+
Parameter = 163,
|
|
272
|
+
Decorator = 164,
|
|
273
|
+
PropertySignature = 165,
|
|
274
|
+
PropertyDeclaration = 166,
|
|
275
|
+
MethodSignature = 167,
|
|
276
|
+
MethodDeclaration = 168,
|
|
277
|
+
ClassStaticBlockDeclaration = 169,
|
|
278
|
+
Constructor = 170,
|
|
279
|
+
GetAccessor = 171,
|
|
280
|
+
SetAccessor = 172,
|
|
281
|
+
CallSignature = 173,
|
|
282
|
+
ConstructSignature = 174,
|
|
283
|
+
IndexSignature = 175,
|
|
284
|
+
TypePredicate = 176,
|
|
285
|
+
TypeReference = 177,
|
|
286
|
+
FunctionType = 178,
|
|
287
|
+
ConstructorType = 179,
|
|
288
|
+
TypeQuery = 180,
|
|
289
|
+
TypeLiteral = 181,
|
|
290
|
+
ArrayType = 182,
|
|
291
|
+
TupleType = 183,
|
|
292
|
+
OptionalType = 184,
|
|
293
|
+
RestType = 185,
|
|
294
|
+
UnionType = 186,
|
|
295
|
+
IntersectionType = 187,
|
|
296
|
+
ConditionalType = 188,
|
|
297
|
+
InferType = 189,
|
|
298
|
+
ParenthesizedType = 190,
|
|
299
|
+
ThisType = 191,
|
|
300
|
+
TypeOperator = 192,
|
|
301
|
+
IndexedAccessType = 193,
|
|
302
|
+
MappedType = 194,
|
|
303
|
+
LiteralType = 195,
|
|
304
|
+
NamedTupleMember = 196,
|
|
305
|
+
TemplateLiteralType = 197,
|
|
306
|
+
TemplateLiteralTypeSpan = 198,
|
|
307
|
+
ImportType = 199,
|
|
308
|
+
ObjectBindingPattern = 200,
|
|
309
|
+
ArrayBindingPattern = 201,
|
|
310
|
+
BindingElement = 202,
|
|
311
|
+
ArrayLiteralExpression = 203,
|
|
312
|
+
ObjectLiteralExpression = 204,
|
|
313
|
+
PropertyAccessExpression = 205,
|
|
314
|
+
ElementAccessExpression = 206,
|
|
315
|
+
CallExpression = 207,
|
|
316
|
+
NewExpression = 208,
|
|
317
|
+
TaggedTemplateExpression = 209,
|
|
318
|
+
TypeAssertionExpression = 210,
|
|
319
|
+
ParenthesizedExpression = 211,
|
|
320
|
+
FunctionExpression = 212,
|
|
321
|
+
ArrowFunction = 213,
|
|
322
|
+
DeleteExpression = 214,
|
|
323
|
+
TypeOfExpression = 215,
|
|
324
|
+
VoidExpression = 216,
|
|
325
|
+
AwaitExpression = 217,
|
|
326
|
+
PrefixUnaryExpression = 218,
|
|
327
|
+
PostfixUnaryExpression = 219,
|
|
328
|
+
BinaryExpression = 220,
|
|
329
|
+
ConditionalExpression = 221,
|
|
330
|
+
TemplateExpression = 222,
|
|
331
|
+
YieldExpression = 223,
|
|
332
|
+
SpreadElement = 224,
|
|
333
|
+
ClassExpression = 225,
|
|
334
|
+
OmittedExpression = 226,
|
|
335
|
+
ExpressionWithTypeArguments = 227,
|
|
336
|
+
AsExpression = 228,
|
|
337
|
+
NonNullExpression = 229,
|
|
338
|
+
MetaProperty = 230,
|
|
339
|
+
SyntheticExpression = 231,
|
|
340
|
+
TemplateSpan = 232,
|
|
341
|
+
SemicolonClassElement = 233,
|
|
342
|
+
Block = 234,
|
|
343
|
+
EmptyStatement = 235,
|
|
344
|
+
VariableStatement = 236,
|
|
345
|
+
ExpressionStatement = 237,
|
|
346
|
+
IfStatement = 238,
|
|
347
|
+
DoStatement = 239,
|
|
348
|
+
WhileStatement = 240,
|
|
349
|
+
ForStatement = 241,
|
|
350
|
+
ForInStatement = 242,
|
|
351
|
+
ForOfStatement = 243,
|
|
352
|
+
ContinueStatement = 244,
|
|
353
|
+
BreakStatement = 245,
|
|
354
|
+
ReturnStatement = 246,
|
|
355
|
+
WithStatement = 247,
|
|
356
|
+
SwitchStatement = 248,
|
|
357
|
+
LabeledStatement = 249,
|
|
358
|
+
ThrowStatement = 250,
|
|
359
|
+
TryStatement = 251,
|
|
360
|
+
DebuggerStatement = 252,
|
|
361
|
+
VariableDeclaration = 253,
|
|
362
|
+
VariableDeclarationList = 254,
|
|
363
|
+
FunctionDeclaration = 255,
|
|
364
|
+
ClassDeclaration = 256,
|
|
365
|
+
InterfaceDeclaration = 257,
|
|
366
|
+
TypeAliasDeclaration = 258,
|
|
367
|
+
EnumDeclaration = 259,
|
|
368
|
+
ModuleDeclaration = 260,
|
|
369
|
+
ModuleBlock = 261,
|
|
370
|
+
CaseBlock = 262,
|
|
371
|
+
NamespaceExportDeclaration = 263,
|
|
372
|
+
ImportEqualsDeclaration = 264,
|
|
373
|
+
ImportDeclaration = 265,
|
|
374
|
+
ImportClause = 266,
|
|
375
|
+
NamespaceImport = 267,
|
|
376
|
+
NamedImports = 268,
|
|
377
|
+
ImportSpecifier = 269,
|
|
378
|
+
ExportAssignment = 270,
|
|
379
|
+
ExportDeclaration = 271,
|
|
380
|
+
NamedExports = 272,
|
|
381
|
+
NamespaceExport = 273,
|
|
382
|
+
ExportSpecifier = 274,
|
|
383
|
+
MissingDeclaration = 275,
|
|
384
|
+
ExternalModuleReference = 276,
|
|
385
|
+
JsxElement = 277,
|
|
386
|
+
JsxSelfClosingElement = 278,
|
|
387
|
+
JsxOpeningElement = 279,
|
|
388
|
+
JsxClosingElement = 280,
|
|
389
|
+
JsxFragment = 281,
|
|
390
|
+
JsxOpeningFragment = 282,
|
|
391
|
+
JsxClosingFragment = 283,
|
|
392
|
+
JsxAttribute = 284,
|
|
393
|
+
JsxAttributes = 285,
|
|
394
|
+
JsxSpreadAttribute = 286,
|
|
395
|
+
JsxExpression = 287,
|
|
396
|
+
CaseClause = 288,
|
|
397
|
+
DefaultClause = 289,
|
|
398
|
+
HeritageClause = 290,
|
|
399
|
+
CatchClause = 291,
|
|
400
|
+
AssertClause = 292,
|
|
401
|
+
AssertEntry = 293,
|
|
402
|
+
PropertyAssignment = 294,
|
|
403
|
+
ShorthandPropertyAssignment = 295,
|
|
404
|
+
SpreadAssignment = 296,
|
|
405
|
+
EnumMember = 297,
|
|
406
|
+
UnparsedPrologue = 298,
|
|
407
|
+
UnparsedPrepend = 299,
|
|
408
|
+
UnparsedText = 300,
|
|
409
|
+
UnparsedInternalText = 301,
|
|
410
|
+
UnparsedSyntheticReference = 302,
|
|
411
|
+
SourceFile = 303,
|
|
412
|
+
Bundle = 304,
|
|
413
|
+
UnparsedSource = 305,
|
|
414
|
+
InputFiles = 306,
|
|
415
|
+
JSDocTypeExpression = 307,
|
|
416
|
+
JSDocNameReference = 308,
|
|
417
|
+
JSDocMemberName = 309,
|
|
418
|
+
JSDocAllType = 310,
|
|
419
|
+
JSDocUnknownType = 311,
|
|
420
|
+
JSDocNullableType = 312,
|
|
421
|
+
JSDocNonNullableType = 313,
|
|
422
|
+
JSDocOptionalType = 314,
|
|
423
|
+
JSDocFunctionType = 315,
|
|
424
|
+
JSDocVariadicType = 316,
|
|
425
|
+
JSDocNamepathType = 317,
|
|
426
|
+
JSDocComment = 318,
|
|
427
|
+
JSDocText = 319,
|
|
428
|
+
JSDocTypeLiteral = 320,
|
|
429
|
+
JSDocSignature = 321,
|
|
430
|
+
JSDocLink = 322,
|
|
431
|
+
JSDocLinkCode = 323,
|
|
432
|
+
JSDocLinkPlain = 324,
|
|
433
|
+
JSDocTag = 325,
|
|
434
|
+
JSDocAugmentsTag = 326,
|
|
435
|
+
JSDocImplementsTag = 327,
|
|
436
|
+
JSDocAuthorTag = 328,
|
|
437
|
+
JSDocDeprecatedTag = 329,
|
|
438
|
+
JSDocClassTag = 330,
|
|
439
|
+
JSDocPublicTag = 331,
|
|
440
|
+
JSDocPrivateTag = 332,
|
|
441
|
+
JSDocProtectedTag = 333,
|
|
442
|
+
JSDocReadonlyTag = 334,
|
|
443
|
+
JSDocOverrideTag = 335,
|
|
444
|
+
JSDocCallbackTag = 336,
|
|
445
|
+
JSDocEnumTag = 337,
|
|
446
|
+
JSDocParameterTag = 338,
|
|
447
|
+
JSDocReturnTag = 339,
|
|
448
|
+
JSDocThisTag = 340,
|
|
449
|
+
JSDocTypeTag = 341,
|
|
450
|
+
JSDocTemplateTag = 342,
|
|
451
|
+
JSDocTypedefTag = 343,
|
|
452
|
+
JSDocSeeTag = 344,
|
|
453
|
+
JSDocPropertyTag = 345,
|
|
454
|
+
SyntaxList = 346,
|
|
455
|
+
NotEmittedStatement = 347,
|
|
456
|
+
PartiallyEmittedExpression = 348,
|
|
457
|
+
CommaListExpression = 349,
|
|
458
|
+
MergeDeclarationMarker = 350,
|
|
459
|
+
EndOfDeclarationMarker = 351,
|
|
460
|
+
SyntheticReferenceExpression = 352,
|
|
461
|
+
Count = 353,
|
|
459
462
|
FirstAssignment = 63,
|
|
460
463
|
LastAssignment = 78,
|
|
461
464
|
FirstCompoundAssignment = 64,
|
|
@@ -463,15 +466,15 @@ declare namespace ts {
|
|
|
463
466
|
FirstReservedWord = 81,
|
|
464
467
|
LastReservedWord = 116,
|
|
465
468
|
FirstKeyword = 81,
|
|
466
|
-
LastKeyword =
|
|
469
|
+
LastKeyword = 159,
|
|
467
470
|
FirstFutureReservedWord = 117,
|
|
468
471
|
LastFutureReservedWord = 125,
|
|
469
|
-
FirstTypeNode =
|
|
470
|
-
LastTypeNode =
|
|
472
|
+
FirstTypeNode = 176,
|
|
473
|
+
LastTypeNode = 199,
|
|
471
474
|
FirstPunctuation = 18,
|
|
472
475
|
LastPunctuation = 78,
|
|
473
476
|
FirstToken = 0,
|
|
474
|
-
LastToken =
|
|
477
|
+
LastToken = 159,
|
|
475
478
|
FirstTriviaToken = 2,
|
|
476
479
|
LastTriviaToken = 7,
|
|
477
480
|
FirstLiteralToken = 8,
|
|
@@ -480,19 +483,19 @@ declare namespace ts {
|
|
|
480
483
|
LastTemplateToken = 17,
|
|
481
484
|
FirstBinaryOperator = 29,
|
|
482
485
|
LastBinaryOperator = 78,
|
|
483
|
-
FirstStatement =
|
|
484
|
-
LastStatement =
|
|
485
|
-
FirstNode =
|
|
486
|
-
FirstJSDocNode =
|
|
487
|
-
LastJSDocNode =
|
|
488
|
-
FirstJSDocTagNode =
|
|
489
|
-
LastJSDocTagNode =
|
|
486
|
+
FirstStatement = 236,
|
|
487
|
+
LastStatement = 252,
|
|
488
|
+
FirstNode = 160,
|
|
489
|
+
FirstJSDocNode = 307,
|
|
490
|
+
LastJSDocNode = 345,
|
|
491
|
+
FirstJSDocTagNode = 325,
|
|
492
|
+
LastJSDocTagNode = 345,
|
|
490
493
|
}
|
|
491
494
|
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
492
495
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
493
496
|
export type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
494
497
|
export type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
|
|
495
|
-
export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
498
|
+
export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
496
499
|
export type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
|
497
500
|
export type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
|
|
498
501
|
export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
|
@@ -597,6 +600,7 @@ declare namespace ts {
|
|
|
597
600
|
export interface KeywordToken<TKind extends KeywordSyntaxKind> extends Token<TKind> {
|
|
598
601
|
}
|
|
599
602
|
export type AssertsKeyword = KeywordToken<SyntaxKind.AssertsKeyword>;
|
|
603
|
+
export type AssertKeyword = KeywordToken<SyntaxKind.AssertKeyword>;
|
|
600
604
|
export type AwaitKeyword = KeywordToken<SyntaxKind.AwaitKeyword>;
|
|
601
605
|
/** @deprecated Use `AwaitKeyword` instead. */
|
|
602
606
|
export type AwaitKeywordToken = AwaitKeyword;
|
|
@@ -1630,6 +1634,7 @@ declare namespace ts {
|
|
|
1630
1634
|
readonly importClause?: ImportClause;
|
|
1631
1635
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1632
1636
|
readonly moduleSpecifier: Expression;
|
|
1637
|
+
readonly assertClause?: AssertClause;
|
|
1633
1638
|
}
|
|
1634
1639
|
export type NamedImportBindings = NamespaceImport | NamedImports;
|
|
1635
1640
|
export type NamedExportBindings = NamespaceExport | NamedExports;
|
|
@@ -1640,6 +1645,19 @@ declare namespace ts {
|
|
|
1640
1645
|
readonly name?: Identifier;
|
|
1641
1646
|
readonly namedBindings?: NamedImportBindings;
|
|
1642
1647
|
}
|
|
1648
|
+
export type AssertionKey = Identifier | StringLiteral;
|
|
1649
|
+
export interface AssertEntry extends Node {
|
|
1650
|
+
readonly kind: SyntaxKind.AssertEntry;
|
|
1651
|
+
readonly parent: AssertClause;
|
|
1652
|
+
readonly name: AssertionKey;
|
|
1653
|
+
readonly value: StringLiteral;
|
|
1654
|
+
}
|
|
1655
|
+
export interface AssertClause extends Node {
|
|
1656
|
+
readonly kind: SyntaxKind.AssertClause;
|
|
1657
|
+
readonly parent: ImportDeclaration | ExportDeclaration;
|
|
1658
|
+
readonly elements: NodeArray<AssertEntry>;
|
|
1659
|
+
readonly multiLine?: boolean;
|
|
1660
|
+
}
|
|
1643
1661
|
export interface NamespaceImport extends NamedDeclaration {
|
|
1644
1662
|
readonly kind: SyntaxKind.NamespaceImport;
|
|
1645
1663
|
readonly parent: ImportClause;
|
|
@@ -1662,6 +1680,7 @@ declare namespace ts {
|
|
|
1662
1680
|
readonly exportClause?: NamedExportBindings;
|
|
1663
1681
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1664
1682
|
readonly moduleSpecifier?: Expression;
|
|
1683
|
+
readonly assertClause?: AssertClause;
|
|
1665
1684
|
}
|
|
1666
1685
|
export interface NamedImports extends Node {
|
|
1667
1686
|
readonly kind: SyntaxKind.NamedImports;
|
|
@@ -3519,10 +3538,14 @@ declare namespace ts {
|
|
|
3519
3538
|
updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
|
|
3520
3539
|
createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3521
3540
|
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3522
|
-
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration;
|
|
3523
|
-
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration;
|
|
3541
|
+
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
3542
|
+
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
3524
3543
|
createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3525
3544
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3545
|
+
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3546
|
+
updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3547
|
+
createAssertEntry(name: AssertionKey, value: StringLiteral): AssertEntry;
|
|
3548
|
+
updateAssertEntry(node: AssertEntry, name: AssertionKey, value: StringLiteral): AssertEntry;
|
|
3526
3549
|
createNamespaceImport(name: Identifier): NamespaceImport;
|
|
3527
3550
|
updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport;
|
|
3528
3551
|
createNamespaceExport(name: Identifier): NamespaceExport;
|
|
@@ -3533,8 +3556,8 @@ declare namespace ts {
|
|
|
3533
3556
|
updateImportSpecifier(node: ImportSpecifier, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3534
3557
|
createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
3535
3558
|
updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
3536
|
-
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression): ExportDeclaration;
|
|
3537
|
-
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined): ExportDeclaration;
|
|
3559
|
+
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
3560
|
+
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
3538
3561
|
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
|
|
3539
3562
|
updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
|
|
3540
3563
|
createExportSpecifier(propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
@@ -3951,6 +3974,7 @@ declare namespace ts {
|
|
|
3951
3974
|
ObjectBindingPatternElements = 525136,
|
|
3952
3975
|
ArrayBindingPatternElements = 524880,
|
|
3953
3976
|
ObjectLiteralExpressionProperties = 526226,
|
|
3977
|
+
ImportClauseEntries = 526226,
|
|
3954
3978
|
ArrayLiteralExpressionElements = 8914,
|
|
3955
3979
|
CommaListElements = 528,
|
|
3956
3980
|
CallExpressionArguments = 2576,
|
|
@@ -4345,6 +4369,7 @@ declare namespace ts {
|
|
|
4345
4369
|
function isTemplateMiddleOrTemplateTail(node: Node): node is TemplateMiddle | TemplateTail;
|
|
4346
4370
|
function isImportOrExportSpecifier(node: Node): node is ImportSpecifier | ExportSpecifier;
|
|
4347
4371
|
function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
|
|
4372
|
+
function isAssertionKey(node: Node): node is AssertionKey;
|
|
4348
4373
|
function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
|
|
4349
4374
|
function isModifier(node: Node): node is Modifier;
|
|
4350
4375
|
function isEntityName(node: Node): node is EntityName;
|
|
@@ -4592,6 +4617,8 @@ declare namespace ts {
|
|
|
4592
4617
|
function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration;
|
|
4593
4618
|
function isImportDeclaration(node: Node): node is ImportDeclaration;
|
|
4594
4619
|
function isImportClause(node: Node): node is ImportClause;
|
|
4620
|
+
function isAssertClause(node: Node): node is AssertClause;
|
|
4621
|
+
function isAssertEntry(node: Node): node is AssertEntry;
|
|
4595
4622
|
function isNamespaceImport(node: Node): node is NamespaceImport;
|
|
4596
4623
|
function isNamespaceExport(node: Node): node is NamespaceExport;
|
|
4597
4624
|
function isNamedImports(node: Node): node is NamedImports;
|
|
@@ -10961,9 +10988,9 @@ declare namespace ts {
|
|
|
10961
10988
|
/** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
10962
10989
|
const updateImportEqualsDeclaration: (node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference) => ImportEqualsDeclaration;
|
|
10963
10990
|
/** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
10964
|
-
const createImportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression) => ImportDeclaration;
|
|
10991
|
+
const createImportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined) => ImportDeclaration;
|
|
10965
10992
|
/** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
10966
|
-
const updateImportDeclaration: (node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression) => ImportDeclaration;
|
|
10993
|
+
const updateImportDeclaration: (node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined) => ImportDeclaration;
|
|
10967
10994
|
/** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
10968
10995
|
const createNamespaceImport: (name: Identifier) => NamespaceImport;
|
|
10969
10996
|
/** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */
|