typescript 4.5.0-dev.20210920 → 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.
@@ -234,228 +234,231 @@ declare namespace ts {
234
234
  AbstractKeyword = 126,
235
235
  AsKeyword = 127,
236
236
  AssertsKeyword = 128,
237
- AnyKeyword = 129,
238
- AsyncKeyword = 130,
239
- AwaitKeyword = 131,
240
- BooleanKeyword = 132,
241
- ConstructorKeyword = 133,
242
- DeclareKeyword = 134,
243
- GetKeyword = 135,
244
- InferKeyword = 136,
245
- IntrinsicKeyword = 137,
246
- IsKeyword = 138,
247
- KeyOfKeyword = 139,
248
- ModuleKeyword = 140,
249
- NamespaceKeyword = 141,
250
- NeverKeyword = 142,
251
- ReadonlyKeyword = 143,
252
- RequireKeyword = 144,
253
- NumberKeyword = 145,
254
- ObjectKeyword = 146,
255
- SetKeyword = 147,
256
- StringKeyword = 148,
257
- SymbolKeyword = 149,
258
- TypeKeyword = 150,
259
- UndefinedKeyword = 151,
260
- UniqueKeyword = 152,
261
- UnknownKeyword = 153,
262
- FromKeyword = 154,
263
- GlobalKeyword = 155,
264
- BigIntKeyword = 156,
265
- OverrideKeyword = 157,
266
- OfKeyword = 158,
267
- QualifiedName = 159,
268
- ComputedPropertyName = 160,
269
- TypeParameter = 161,
270
- Parameter = 162,
271
- Decorator = 163,
272
- PropertySignature = 164,
273
- PropertyDeclaration = 165,
274
- MethodSignature = 166,
275
- MethodDeclaration = 167,
276
- ClassStaticBlockDeclaration = 168,
277
- Constructor = 169,
278
- GetAccessor = 170,
279
- SetAccessor = 171,
280
- CallSignature = 172,
281
- ConstructSignature = 173,
282
- IndexSignature = 174,
283
- TypePredicate = 175,
284
- TypeReference = 176,
285
- FunctionType = 177,
286
- ConstructorType = 178,
287
- TypeQuery = 179,
288
- TypeLiteral = 180,
289
- ArrayType = 181,
290
- TupleType = 182,
291
- OptionalType = 183,
292
- RestType = 184,
293
- UnionType = 185,
294
- IntersectionType = 186,
295
- ConditionalType = 187,
296
- InferType = 188,
297
- ParenthesizedType = 189,
298
- ThisType = 190,
299
- TypeOperator = 191,
300
- IndexedAccessType = 192,
301
- MappedType = 193,
302
- LiteralType = 194,
303
- NamedTupleMember = 195,
304
- TemplateLiteralType = 196,
305
- TemplateLiteralTypeSpan = 197,
306
- ImportType = 198,
307
- ObjectBindingPattern = 199,
308
- ArrayBindingPattern = 200,
309
- BindingElement = 201,
310
- ArrayLiteralExpression = 202,
311
- ObjectLiteralExpression = 203,
312
- PropertyAccessExpression = 204,
313
- ElementAccessExpression = 205,
314
- CallExpression = 206,
315
- NewExpression = 207,
316
- TaggedTemplateExpression = 208,
317
- TypeAssertionExpression = 209,
318
- ParenthesizedExpression = 210,
319
- FunctionExpression = 211,
320
- ArrowFunction = 212,
321
- DeleteExpression = 213,
322
- TypeOfExpression = 214,
323
- VoidExpression = 215,
324
- AwaitExpression = 216,
325
- PrefixUnaryExpression = 217,
326
- PostfixUnaryExpression = 218,
327
- BinaryExpression = 219,
328
- ConditionalExpression = 220,
329
- TemplateExpression = 221,
330
- YieldExpression = 222,
331
- SpreadElement = 223,
332
- ClassExpression = 224,
333
- OmittedExpression = 225,
334
- ExpressionWithTypeArguments = 226,
335
- AsExpression = 227,
336
- NonNullExpression = 228,
337
- MetaProperty = 229,
338
- SyntheticExpression = 230,
339
- TemplateSpan = 231,
340
- SemicolonClassElement = 232,
341
- Block = 233,
342
- EmptyStatement = 234,
343
- VariableStatement = 235,
344
- ExpressionStatement = 236,
345
- IfStatement = 237,
346
- DoStatement = 238,
347
- WhileStatement = 239,
348
- ForStatement = 240,
349
- ForInStatement = 241,
350
- ForOfStatement = 242,
351
- ContinueStatement = 243,
352
- BreakStatement = 244,
353
- ReturnStatement = 245,
354
- WithStatement = 246,
355
- SwitchStatement = 247,
356
- LabeledStatement = 248,
357
- ThrowStatement = 249,
358
- TryStatement = 250,
359
- DebuggerStatement = 251,
360
- VariableDeclaration = 252,
361
- VariableDeclarationList = 253,
362
- FunctionDeclaration = 254,
363
- ClassDeclaration = 255,
364
- InterfaceDeclaration = 256,
365
- TypeAliasDeclaration = 257,
366
- EnumDeclaration = 258,
367
- ModuleDeclaration = 259,
368
- ModuleBlock = 260,
369
- CaseBlock = 261,
370
- NamespaceExportDeclaration = 262,
371
- ImportEqualsDeclaration = 263,
372
- ImportDeclaration = 264,
373
- ImportClause = 265,
374
- NamespaceImport = 266,
375
- NamedImports = 267,
376
- ImportSpecifier = 268,
377
- ExportAssignment = 269,
378
- ExportDeclaration = 270,
379
- NamedExports = 271,
380
- NamespaceExport = 272,
381
- ExportSpecifier = 273,
382
- MissingDeclaration = 274,
383
- ExternalModuleReference = 275,
384
- JsxElement = 276,
385
- JsxSelfClosingElement = 277,
386
- JsxOpeningElement = 278,
387
- JsxClosingElement = 279,
388
- JsxFragment = 280,
389
- JsxOpeningFragment = 281,
390
- JsxClosingFragment = 282,
391
- JsxAttribute = 283,
392
- JsxAttributes = 284,
393
- JsxSpreadAttribute = 285,
394
- JsxExpression = 286,
395
- CaseClause = 287,
396
- DefaultClause = 288,
397
- HeritageClause = 289,
398
- CatchClause = 290,
399
- PropertyAssignment = 291,
400
- ShorthandPropertyAssignment = 292,
401
- SpreadAssignment = 293,
402
- EnumMember = 294,
403
- UnparsedPrologue = 295,
404
- UnparsedPrepend = 296,
405
- UnparsedText = 297,
406
- UnparsedInternalText = 298,
407
- UnparsedSyntheticReference = 299,
408
- SourceFile = 300,
409
- Bundle = 301,
410
- UnparsedSource = 302,
411
- InputFiles = 303,
412
- JSDocTypeExpression = 304,
413
- JSDocNameReference = 305,
414
- JSDocMemberName = 306,
415
- JSDocAllType = 307,
416
- JSDocUnknownType = 308,
417
- JSDocNullableType = 309,
418
- JSDocNonNullableType = 310,
419
- JSDocOptionalType = 311,
420
- JSDocFunctionType = 312,
421
- JSDocVariadicType = 313,
422
- JSDocNamepathType = 314,
423
- JSDocComment = 315,
424
- JSDocText = 316,
425
- JSDocTypeLiteral = 317,
426
- JSDocSignature = 318,
427
- JSDocLink = 319,
428
- JSDocLinkCode = 320,
429
- JSDocLinkPlain = 321,
430
- JSDocTag = 322,
431
- JSDocAugmentsTag = 323,
432
- JSDocImplementsTag = 324,
433
- JSDocAuthorTag = 325,
434
- JSDocDeprecatedTag = 326,
435
- JSDocClassTag = 327,
436
- JSDocPublicTag = 328,
437
- JSDocPrivateTag = 329,
438
- JSDocProtectedTag = 330,
439
- JSDocReadonlyTag = 331,
440
- JSDocOverrideTag = 332,
441
- JSDocCallbackTag = 333,
442
- JSDocEnumTag = 334,
443
- JSDocParameterTag = 335,
444
- JSDocReturnTag = 336,
445
- JSDocThisTag = 337,
446
- JSDocTypeTag = 338,
447
- JSDocTemplateTag = 339,
448
- JSDocTypedefTag = 340,
449
- JSDocSeeTag = 341,
450
- JSDocPropertyTag = 342,
451
- SyntaxList = 343,
452
- NotEmittedStatement = 344,
453
- PartiallyEmittedExpression = 345,
454
- CommaListExpression = 346,
455
- MergeDeclarationMarker = 347,
456
- EndOfDeclarationMarker = 348,
457
- SyntheticReferenceExpression = 349,
458
- Count = 350,
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 = 158,
469
+ LastKeyword = 159,
467
470
  FirstFutureReservedWord = 117,
468
471
  LastFutureReservedWord = 125,
469
- FirstTypeNode = 175,
470
- LastTypeNode = 198,
472
+ FirstTypeNode = 176,
473
+ LastTypeNode = 199,
471
474
  FirstPunctuation = 18,
472
475
  LastPunctuation = 78,
473
476
  FirstToken = 0,
474
- LastToken = 158,
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 = 235,
484
- LastStatement = 251,
485
- FirstNode = 159,
486
- FirstJSDocNode = 304,
487
- LastJSDocNode = 342,
488
- FirstJSDocTagNode = 322,
489
- LastJSDocTagNode = 342,
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. */