typescript 5.1.6 → 5.2.2

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.
@@ -1830,6 +1830,11 @@ declare namespace ts {
1830
1830
  * coupled with `replacementSpan` to replace a dotted access with a bracket access.
1831
1831
  */
1832
1832
  insertText?: string;
1833
+ /**
1834
+ * A string that should be used when filtering a set of
1835
+ * completion items.
1836
+ */
1837
+ filterText?: string;
1833
1838
  /**
1834
1839
  * `insertText` should be interpreted as a snippet if true.
1835
1840
  */
@@ -2119,11 +2124,17 @@ declare namespace ts {
2119
2124
  arguments: InlayHintsRequestArgs;
2120
2125
  }
2121
2126
  interface InlayHintItem {
2127
+ /** This property will be the empty string when displayParts is set. */
2122
2128
  text: string;
2123
2129
  position: Location;
2124
2130
  kind: InlayHintKind;
2125
2131
  whitespaceBefore?: boolean;
2126
2132
  whitespaceAfter?: boolean;
2133
+ displayParts?: InlayHintItemDisplayPart[];
2134
+ }
2135
+ interface InlayHintItemDisplayPart {
2136
+ text: string;
2137
+ span?: FileSpan;
2127
2138
  }
2128
2139
  interface InlayHintsResponse extends Response {
2129
2140
  body?: InlayHintItem[];
@@ -2827,6 +2838,7 @@ declare namespace ts {
2827
2838
  readonly includeInlayPropertyDeclarationTypeHints?: boolean;
2828
2839
  readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
2829
2840
  readonly includeInlayEnumMemberValueHints?: boolean;
2841
+ readonly interactiveInlayHints?: boolean;
2830
2842
  readonly autoImportFileExcludePatterns?: string[];
2831
2843
  /**
2832
2844
  * Indicates whether imports should be organized in a case-insensitive manner.
@@ -3395,7 +3407,7 @@ declare namespace ts {
3395
3407
  markAsDirty(): void;
3396
3408
  getScriptFileNames(): string[];
3397
3409
  getLanguageService(): never;
3398
- getModuleResolutionHostForAutoImportProvider(): never;
3410
+ getHostForAutoImportProvider(): never;
3399
3411
  getProjectReferences(): readonly ts.ProjectReference[] | undefined;
3400
3412
  getTypeAcquisition(): TypeAcquisition;
3401
3413
  }
@@ -4062,7 +4074,7 @@ declare namespace ts {
4062
4074
  responseRequired?: boolean;
4063
4075
  }
4064
4076
  }
4065
- const versionMajorMinor = "5.1";
4077
+ const versionMajorMinor = "5.2";
4066
4078
  /** The version of the TypeScript compiler release */
4067
4079
  const version: string;
4068
4080
  /**
@@ -4252,211 +4264,212 @@ declare namespace ts {
4252
4264
  UndefinedKeyword = 157,
4253
4265
  UniqueKeyword = 158,
4254
4266
  UnknownKeyword = 159,
4255
- FromKeyword = 160,
4256
- GlobalKeyword = 161,
4257
- BigIntKeyword = 162,
4258
- OverrideKeyword = 163,
4259
- OfKeyword = 164,
4260
- QualifiedName = 165,
4261
- ComputedPropertyName = 166,
4262
- TypeParameter = 167,
4263
- Parameter = 168,
4264
- Decorator = 169,
4265
- PropertySignature = 170,
4266
- PropertyDeclaration = 171,
4267
- MethodSignature = 172,
4268
- MethodDeclaration = 173,
4269
- ClassStaticBlockDeclaration = 174,
4270
- Constructor = 175,
4271
- GetAccessor = 176,
4272
- SetAccessor = 177,
4273
- CallSignature = 178,
4274
- ConstructSignature = 179,
4275
- IndexSignature = 180,
4276
- TypePredicate = 181,
4277
- TypeReference = 182,
4278
- FunctionType = 183,
4279
- ConstructorType = 184,
4280
- TypeQuery = 185,
4281
- TypeLiteral = 186,
4282
- ArrayType = 187,
4283
- TupleType = 188,
4284
- OptionalType = 189,
4285
- RestType = 190,
4286
- UnionType = 191,
4287
- IntersectionType = 192,
4288
- ConditionalType = 193,
4289
- InferType = 194,
4290
- ParenthesizedType = 195,
4291
- ThisType = 196,
4292
- TypeOperator = 197,
4293
- IndexedAccessType = 198,
4294
- MappedType = 199,
4295
- LiteralType = 200,
4296
- NamedTupleMember = 201,
4297
- TemplateLiteralType = 202,
4298
- TemplateLiteralTypeSpan = 203,
4299
- ImportType = 204,
4300
- ObjectBindingPattern = 205,
4301
- ArrayBindingPattern = 206,
4302
- BindingElement = 207,
4303
- ArrayLiteralExpression = 208,
4304
- ObjectLiteralExpression = 209,
4305
- PropertyAccessExpression = 210,
4306
- ElementAccessExpression = 211,
4307
- CallExpression = 212,
4308
- NewExpression = 213,
4309
- TaggedTemplateExpression = 214,
4310
- TypeAssertionExpression = 215,
4311
- ParenthesizedExpression = 216,
4312
- FunctionExpression = 217,
4313
- ArrowFunction = 218,
4314
- DeleteExpression = 219,
4315
- TypeOfExpression = 220,
4316
- VoidExpression = 221,
4317
- AwaitExpression = 222,
4318
- PrefixUnaryExpression = 223,
4319
- PostfixUnaryExpression = 224,
4320
- BinaryExpression = 225,
4321
- ConditionalExpression = 226,
4322
- TemplateExpression = 227,
4323
- YieldExpression = 228,
4324
- SpreadElement = 229,
4325
- ClassExpression = 230,
4326
- OmittedExpression = 231,
4327
- ExpressionWithTypeArguments = 232,
4328
- AsExpression = 233,
4329
- NonNullExpression = 234,
4330
- MetaProperty = 235,
4331
- SyntheticExpression = 236,
4332
- SatisfiesExpression = 237,
4333
- TemplateSpan = 238,
4334
- SemicolonClassElement = 239,
4335
- Block = 240,
4336
- EmptyStatement = 241,
4337
- VariableStatement = 242,
4338
- ExpressionStatement = 243,
4339
- IfStatement = 244,
4340
- DoStatement = 245,
4341
- WhileStatement = 246,
4342
- ForStatement = 247,
4343
- ForInStatement = 248,
4344
- ForOfStatement = 249,
4345
- ContinueStatement = 250,
4346
- BreakStatement = 251,
4347
- ReturnStatement = 252,
4348
- WithStatement = 253,
4349
- SwitchStatement = 254,
4350
- LabeledStatement = 255,
4351
- ThrowStatement = 256,
4352
- TryStatement = 257,
4353
- DebuggerStatement = 258,
4354
- VariableDeclaration = 259,
4355
- VariableDeclarationList = 260,
4356
- FunctionDeclaration = 261,
4357
- ClassDeclaration = 262,
4358
- InterfaceDeclaration = 263,
4359
- TypeAliasDeclaration = 264,
4360
- EnumDeclaration = 265,
4361
- ModuleDeclaration = 266,
4362
- ModuleBlock = 267,
4363
- CaseBlock = 268,
4364
- NamespaceExportDeclaration = 269,
4365
- ImportEqualsDeclaration = 270,
4366
- ImportDeclaration = 271,
4367
- ImportClause = 272,
4368
- NamespaceImport = 273,
4369
- NamedImports = 274,
4370
- ImportSpecifier = 275,
4371
- ExportAssignment = 276,
4372
- ExportDeclaration = 277,
4373
- NamedExports = 278,
4374
- NamespaceExport = 279,
4375
- ExportSpecifier = 280,
4376
- MissingDeclaration = 281,
4377
- ExternalModuleReference = 282,
4378
- JsxElement = 283,
4379
- JsxSelfClosingElement = 284,
4380
- JsxOpeningElement = 285,
4381
- JsxClosingElement = 286,
4382
- JsxFragment = 287,
4383
- JsxOpeningFragment = 288,
4384
- JsxClosingFragment = 289,
4385
- JsxAttribute = 290,
4386
- JsxAttributes = 291,
4387
- JsxSpreadAttribute = 292,
4388
- JsxExpression = 293,
4389
- JsxNamespacedName = 294,
4390
- CaseClause = 295,
4391
- DefaultClause = 296,
4392
- HeritageClause = 297,
4393
- CatchClause = 298,
4394
- AssertClause = 299,
4395
- AssertEntry = 300,
4396
- ImportTypeAssertionContainer = 301,
4397
- PropertyAssignment = 302,
4398
- ShorthandPropertyAssignment = 303,
4399
- SpreadAssignment = 304,
4400
- EnumMember = 305,
4401
- /** @deprecated */ UnparsedPrologue = 306,
4402
- /** @deprecated */ UnparsedPrepend = 307,
4403
- /** @deprecated */ UnparsedText = 308,
4404
- /** @deprecated */ UnparsedInternalText = 309,
4405
- /** @deprecated */ UnparsedSyntheticReference = 310,
4406
- SourceFile = 311,
4407
- Bundle = 312,
4408
- /** @deprecated */ UnparsedSource = 313,
4409
- /** @deprecated */ InputFiles = 314,
4410
- JSDocTypeExpression = 315,
4411
- JSDocNameReference = 316,
4412
- JSDocMemberName = 317,
4413
- JSDocAllType = 318,
4414
- JSDocUnknownType = 319,
4415
- JSDocNullableType = 320,
4416
- JSDocNonNullableType = 321,
4417
- JSDocOptionalType = 322,
4418
- JSDocFunctionType = 323,
4419
- JSDocVariadicType = 324,
4420
- JSDocNamepathType = 325,
4421
- JSDoc = 326,
4267
+ UsingKeyword = 160,
4268
+ FromKeyword = 161,
4269
+ GlobalKeyword = 162,
4270
+ BigIntKeyword = 163,
4271
+ OverrideKeyword = 164,
4272
+ OfKeyword = 165,
4273
+ QualifiedName = 166,
4274
+ ComputedPropertyName = 167,
4275
+ TypeParameter = 168,
4276
+ Parameter = 169,
4277
+ Decorator = 170,
4278
+ PropertySignature = 171,
4279
+ PropertyDeclaration = 172,
4280
+ MethodSignature = 173,
4281
+ MethodDeclaration = 174,
4282
+ ClassStaticBlockDeclaration = 175,
4283
+ Constructor = 176,
4284
+ GetAccessor = 177,
4285
+ SetAccessor = 178,
4286
+ CallSignature = 179,
4287
+ ConstructSignature = 180,
4288
+ IndexSignature = 181,
4289
+ TypePredicate = 182,
4290
+ TypeReference = 183,
4291
+ FunctionType = 184,
4292
+ ConstructorType = 185,
4293
+ TypeQuery = 186,
4294
+ TypeLiteral = 187,
4295
+ ArrayType = 188,
4296
+ TupleType = 189,
4297
+ OptionalType = 190,
4298
+ RestType = 191,
4299
+ UnionType = 192,
4300
+ IntersectionType = 193,
4301
+ ConditionalType = 194,
4302
+ InferType = 195,
4303
+ ParenthesizedType = 196,
4304
+ ThisType = 197,
4305
+ TypeOperator = 198,
4306
+ IndexedAccessType = 199,
4307
+ MappedType = 200,
4308
+ LiteralType = 201,
4309
+ NamedTupleMember = 202,
4310
+ TemplateLiteralType = 203,
4311
+ TemplateLiteralTypeSpan = 204,
4312
+ ImportType = 205,
4313
+ ObjectBindingPattern = 206,
4314
+ ArrayBindingPattern = 207,
4315
+ BindingElement = 208,
4316
+ ArrayLiteralExpression = 209,
4317
+ ObjectLiteralExpression = 210,
4318
+ PropertyAccessExpression = 211,
4319
+ ElementAccessExpression = 212,
4320
+ CallExpression = 213,
4321
+ NewExpression = 214,
4322
+ TaggedTemplateExpression = 215,
4323
+ TypeAssertionExpression = 216,
4324
+ ParenthesizedExpression = 217,
4325
+ FunctionExpression = 218,
4326
+ ArrowFunction = 219,
4327
+ DeleteExpression = 220,
4328
+ TypeOfExpression = 221,
4329
+ VoidExpression = 222,
4330
+ AwaitExpression = 223,
4331
+ PrefixUnaryExpression = 224,
4332
+ PostfixUnaryExpression = 225,
4333
+ BinaryExpression = 226,
4334
+ ConditionalExpression = 227,
4335
+ TemplateExpression = 228,
4336
+ YieldExpression = 229,
4337
+ SpreadElement = 230,
4338
+ ClassExpression = 231,
4339
+ OmittedExpression = 232,
4340
+ ExpressionWithTypeArguments = 233,
4341
+ AsExpression = 234,
4342
+ NonNullExpression = 235,
4343
+ MetaProperty = 236,
4344
+ SyntheticExpression = 237,
4345
+ SatisfiesExpression = 238,
4346
+ TemplateSpan = 239,
4347
+ SemicolonClassElement = 240,
4348
+ Block = 241,
4349
+ EmptyStatement = 242,
4350
+ VariableStatement = 243,
4351
+ ExpressionStatement = 244,
4352
+ IfStatement = 245,
4353
+ DoStatement = 246,
4354
+ WhileStatement = 247,
4355
+ ForStatement = 248,
4356
+ ForInStatement = 249,
4357
+ ForOfStatement = 250,
4358
+ ContinueStatement = 251,
4359
+ BreakStatement = 252,
4360
+ ReturnStatement = 253,
4361
+ WithStatement = 254,
4362
+ SwitchStatement = 255,
4363
+ LabeledStatement = 256,
4364
+ ThrowStatement = 257,
4365
+ TryStatement = 258,
4366
+ DebuggerStatement = 259,
4367
+ VariableDeclaration = 260,
4368
+ VariableDeclarationList = 261,
4369
+ FunctionDeclaration = 262,
4370
+ ClassDeclaration = 263,
4371
+ InterfaceDeclaration = 264,
4372
+ TypeAliasDeclaration = 265,
4373
+ EnumDeclaration = 266,
4374
+ ModuleDeclaration = 267,
4375
+ ModuleBlock = 268,
4376
+ CaseBlock = 269,
4377
+ NamespaceExportDeclaration = 270,
4378
+ ImportEqualsDeclaration = 271,
4379
+ ImportDeclaration = 272,
4380
+ ImportClause = 273,
4381
+ NamespaceImport = 274,
4382
+ NamedImports = 275,
4383
+ ImportSpecifier = 276,
4384
+ ExportAssignment = 277,
4385
+ ExportDeclaration = 278,
4386
+ NamedExports = 279,
4387
+ NamespaceExport = 280,
4388
+ ExportSpecifier = 281,
4389
+ MissingDeclaration = 282,
4390
+ ExternalModuleReference = 283,
4391
+ JsxElement = 284,
4392
+ JsxSelfClosingElement = 285,
4393
+ JsxOpeningElement = 286,
4394
+ JsxClosingElement = 287,
4395
+ JsxFragment = 288,
4396
+ JsxOpeningFragment = 289,
4397
+ JsxClosingFragment = 290,
4398
+ JsxAttribute = 291,
4399
+ JsxAttributes = 292,
4400
+ JsxSpreadAttribute = 293,
4401
+ JsxExpression = 294,
4402
+ JsxNamespacedName = 295,
4403
+ CaseClause = 296,
4404
+ DefaultClause = 297,
4405
+ HeritageClause = 298,
4406
+ CatchClause = 299,
4407
+ AssertClause = 300,
4408
+ AssertEntry = 301,
4409
+ ImportTypeAssertionContainer = 302,
4410
+ PropertyAssignment = 303,
4411
+ ShorthandPropertyAssignment = 304,
4412
+ SpreadAssignment = 305,
4413
+ EnumMember = 306,
4414
+ /** @deprecated */ UnparsedPrologue = 307,
4415
+ /** @deprecated */ UnparsedPrepend = 308,
4416
+ /** @deprecated */ UnparsedText = 309,
4417
+ /** @deprecated */ UnparsedInternalText = 310,
4418
+ /** @deprecated */ UnparsedSyntheticReference = 311,
4419
+ SourceFile = 312,
4420
+ Bundle = 313,
4421
+ /** @deprecated */ UnparsedSource = 314,
4422
+ /** @deprecated */ InputFiles = 315,
4423
+ JSDocTypeExpression = 316,
4424
+ JSDocNameReference = 317,
4425
+ JSDocMemberName = 318,
4426
+ JSDocAllType = 319,
4427
+ JSDocUnknownType = 320,
4428
+ JSDocNullableType = 321,
4429
+ JSDocNonNullableType = 322,
4430
+ JSDocOptionalType = 323,
4431
+ JSDocFunctionType = 324,
4432
+ JSDocVariadicType = 325,
4433
+ JSDocNamepathType = 326,
4434
+ JSDoc = 327,
4422
4435
  /** @deprecated Use SyntaxKind.JSDoc */
4423
- JSDocComment = 326,
4424
- JSDocText = 327,
4425
- JSDocTypeLiteral = 328,
4426
- JSDocSignature = 329,
4427
- JSDocLink = 330,
4428
- JSDocLinkCode = 331,
4429
- JSDocLinkPlain = 332,
4430
- JSDocTag = 333,
4431
- JSDocAugmentsTag = 334,
4432
- JSDocImplementsTag = 335,
4433
- JSDocAuthorTag = 336,
4434
- JSDocDeprecatedTag = 337,
4435
- JSDocClassTag = 338,
4436
- JSDocPublicTag = 339,
4437
- JSDocPrivateTag = 340,
4438
- JSDocProtectedTag = 341,
4439
- JSDocReadonlyTag = 342,
4440
- JSDocOverrideTag = 343,
4441
- JSDocCallbackTag = 344,
4442
- JSDocOverloadTag = 345,
4443
- JSDocEnumTag = 346,
4444
- JSDocParameterTag = 347,
4445
- JSDocReturnTag = 348,
4446
- JSDocThisTag = 349,
4447
- JSDocTypeTag = 350,
4448
- JSDocTemplateTag = 351,
4449
- JSDocTypedefTag = 352,
4450
- JSDocSeeTag = 353,
4451
- JSDocPropertyTag = 354,
4452
- JSDocThrowsTag = 355,
4453
- JSDocSatisfiesTag = 356,
4454
- SyntaxList = 357,
4455
- NotEmittedStatement = 358,
4456
- PartiallyEmittedExpression = 359,
4457
- CommaListExpression = 360,
4458
- SyntheticReferenceExpression = 361,
4459
- Count = 362,
4436
+ JSDocComment = 327,
4437
+ JSDocText = 328,
4438
+ JSDocTypeLiteral = 329,
4439
+ JSDocSignature = 330,
4440
+ JSDocLink = 331,
4441
+ JSDocLinkCode = 332,
4442
+ JSDocLinkPlain = 333,
4443
+ JSDocTag = 334,
4444
+ JSDocAugmentsTag = 335,
4445
+ JSDocImplementsTag = 336,
4446
+ JSDocAuthorTag = 337,
4447
+ JSDocDeprecatedTag = 338,
4448
+ JSDocClassTag = 339,
4449
+ JSDocPublicTag = 340,
4450
+ JSDocPrivateTag = 341,
4451
+ JSDocProtectedTag = 342,
4452
+ JSDocReadonlyTag = 343,
4453
+ JSDocOverrideTag = 344,
4454
+ JSDocCallbackTag = 345,
4455
+ JSDocOverloadTag = 346,
4456
+ JSDocEnumTag = 347,
4457
+ JSDocParameterTag = 348,
4458
+ JSDocReturnTag = 349,
4459
+ JSDocThisTag = 350,
4460
+ JSDocTypeTag = 351,
4461
+ JSDocTemplateTag = 352,
4462
+ JSDocTypedefTag = 353,
4463
+ JSDocSeeTag = 354,
4464
+ JSDocPropertyTag = 355,
4465
+ JSDocThrowsTag = 356,
4466
+ JSDocSatisfiesTag = 357,
4467
+ SyntaxList = 358,
4468
+ NotEmittedStatement = 359,
4469
+ PartiallyEmittedExpression = 360,
4470
+ CommaListExpression = 361,
4471
+ SyntheticReferenceExpression = 362,
4472
+ Count = 363,
4460
4473
  FirstAssignment = 64,
4461
4474
  LastAssignment = 79,
4462
4475
  FirstCompoundAssignment = 65,
@@ -4464,15 +4477,15 @@ declare namespace ts {
4464
4477
  FirstReservedWord = 83,
4465
4478
  LastReservedWord = 118,
4466
4479
  FirstKeyword = 83,
4467
- LastKeyword = 164,
4480
+ LastKeyword = 165,
4468
4481
  FirstFutureReservedWord = 119,
4469
4482
  LastFutureReservedWord = 127,
4470
- FirstTypeNode = 181,
4471
- LastTypeNode = 204,
4483
+ FirstTypeNode = 182,
4484
+ LastTypeNode = 205,
4472
4485
  FirstPunctuation = 19,
4473
4486
  LastPunctuation = 79,
4474
4487
  FirstToken = 0,
4475
- LastToken = 164,
4488
+ LastToken = 165,
4476
4489
  FirstTriviaToken = 2,
4477
4490
  LastTriviaToken = 7,
4478
4491
  FirstLiteralToken = 9,
@@ -4481,19 +4494,19 @@ declare namespace ts {
4481
4494
  LastTemplateToken = 18,
4482
4495
  FirstBinaryOperator = 30,
4483
4496
  LastBinaryOperator = 79,
4484
- FirstStatement = 242,
4485
- LastStatement = 258,
4486
- FirstNode = 165,
4487
- FirstJSDocNode = 315,
4488
- LastJSDocNode = 356,
4489
- FirstJSDocTagNode = 333,
4490
- LastJSDocTagNode = 356
4497
+ FirstStatement = 243,
4498
+ LastStatement = 259,
4499
+ FirstNode = 166,
4500
+ FirstJSDocNode = 316,
4501
+ LastJSDocNode = 357,
4502
+ FirstJSDocTagNode = 334,
4503
+ LastJSDocTagNode = 357
4491
4504
  }
4492
4505
  type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
4493
4506
  type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
4494
4507
  type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
4495
4508
  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.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionQuestionEqualsToken | 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;
4496
- type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | 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.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | 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;
4509
+ type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | 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.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | 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.UsingKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
4497
4510
  type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
4498
4511
  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;
4499
4512
  type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
@@ -4503,32 +4516,35 @@ declare namespace ts {
4503
4516
  None = 0,
4504
4517
  Let = 1,
4505
4518
  Const = 2,
4506
- NestedNamespace = 4,
4507
- Synthesized = 8,
4508
- Namespace = 16,
4509
- OptionalChain = 32,
4510
- ExportContext = 64,
4511
- ContainsThis = 128,
4512
- HasImplicitReturn = 256,
4513
- HasExplicitReturn = 512,
4514
- GlobalAugmentation = 1024,
4515
- HasAsyncFunctions = 2048,
4516
- DisallowInContext = 4096,
4517
- YieldContext = 8192,
4518
- DecoratorContext = 16384,
4519
- AwaitContext = 32768,
4520
- DisallowConditionalTypesContext = 65536,
4521
- ThisNodeHasError = 131072,
4522
- JavaScriptFile = 262144,
4523
- ThisNodeOrAnySubNodesHasError = 524288,
4524
- HasAggregatedChildData = 1048576,
4525
- JSDoc = 8388608,
4526
- JsonFile = 67108864,
4527
- BlockScoped = 3,
4528
- ReachabilityCheckFlags = 768,
4529
- ReachabilityAndEmitFlags = 2816,
4530
- ContextFlags = 50720768,
4531
- TypeExcludesFlags = 40960
4519
+ Using = 4,
4520
+ AwaitUsing = 6,
4521
+ NestedNamespace = 8,
4522
+ Synthesized = 16,
4523
+ Namespace = 32,
4524
+ OptionalChain = 64,
4525
+ ExportContext = 128,
4526
+ ContainsThis = 256,
4527
+ HasImplicitReturn = 512,
4528
+ HasExplicitReturn = 1024,
4529
+ GlobalAugmentation = 2048,
4530
+ HasAsyncFunctions = 4096,
4531
+ DisallowInContext = 8192,
4532
+ YieldContext = 16384,
4533
+ DecoratorContext = 32768,
4534
+ AwaitContext = 65536,
4535
+ DisallowConditionalTypesContext = 131072,
4536
+ ThisNodeHasError = 262144,
4537
+ JavaScriptFile = 524288,
4538
+ ThisNodeOrAnySubNodesHasError = 1048576,
4539
+ HasAggregatedChildData = 2097152,
4540
+ JSDoc = 16777216,
4541
+ JsonFile = 134217728,
4542
+ BlockScoped = 7,
4543
+ Constant = 6,
4544
+ ReachabilityCheckFlags = 1536,
4545
+ ReachabilityAndEmitFlags = 5632,
4546
+ ContextFlags = 101441536,
4547
+ TypeExcludesFlags = 81920
4532
4548
  }
4533
4549
  enum ModifierFlags {
4534
4550
  None = 0,
@@ -5818,9 +5834,11 @@ declare namespace ts {
5818
5834
  };
5819
5835
  }) | ExportDeclaration & {
5820
5836
  readonly isTypeOnly: true;
5837
+ readonly moduleSpecifier: Expression;
5821
5838
  } | NamespaceExport & {
5822
5839
  readonly parent: ExportDeclaration & {
5823
5840
  readonly isTypeOnly: true;
5841
+ readonly moduleSpecifier: Expression;
5824
5842
  };
5825
5843
  };
5826
5844
  type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration;
@@ -6265,7 +6283,7 @@ declare namespace ts {
6265
6283
  getSourceFileByPath(path: Path): SourceFile | undefined;
6266
6284
  getCurrentDirectory(): string;
6267
6285
  }
6268
- interface ParseConfigHost {
6286
+ interface ParseConfigHost extends ModuleResolutionHost {
6269
6287
  useCaseSensitiveFileNames: boolean;
6270
6288
  readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[];
6271
6289
  /**
@@ -6942,7 +6960,7 @@ declare namespace ts {
6942
6960
  hasRestElement: boolean;
6943
6961
  combinedFlags: ElementFlags;
6944
6962
  readonly: boolean;
6945
- labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration)[];
6963
+ labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration | undefined)[];
6946
6964
  }
6947
6965
  interface TupleTypeReference extends TypeReference {
6948
6966
  target: TupleType;
@@ -7583,7 +7601,14 @@ declare namespace ts {
7583
7601
  All = 15,
7584
7602
  ExcludeJSDocTypeAssertion = 16
7585
7603
  }
7586
- type TypeOfTag = "undefined" | "number" | "bigint" | "boolean" | "string" | "symbol" | "object" | "function";
7604
+ type ImmediatelyInvokedFunctionExpression = CallExpression & {
7605
+ readonly expression: FunctionExpression;
7606
+ };
7607
+ type ImmediatelyInvokedArrowFunction = CallExpression & {
7608
+ readonly expression: ParenthesizedExpression & {
7609
+ readonly expression: ArrowFunction;
7610
+ };
7611
+ };
7587
7612
  interface NodeFactory {
7588
7613
  createNodeArray<T extends Node>(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray<T>;
7589
7614
  createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral;
@@ -8053,8 +8078,8 @@ declare namespace ts {
8053
8078
  createPostfixDecrement(operand: Expression): PostfixUnaryExpression;
8054
8079
  createImmediatelyInvokedFunctionExpression(statements: readonly Statement[]): CallExpression;
8055
8080
  createImmediatelyInvokedFunctionExpression(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
8056
- createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): CallExpression;
8057
- createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
8081
+ createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): ImmediatelyInvokedArrowFunction;
8082
+ createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): ImmediatelyInvokedArrowFunction;
8058
8083
  createVoidZero(): VoidExpression;
8059
8084
  createExportDefault(expression: Expression): ExportAssignment;
8060
8085
  createExternalModuleExport(exportName: Identifier): ExportDeclaration;
@@ -8384,6 +8409,7 @@ declare namespace ts {
8384
8409
  readonly includeInlayPropertyDeclarationTypeHints?: boolean;
8385
8410
  readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
8386
8411
  readonly includeInlayEnumMemberValueHints?: boolean;
8412
+ readonly interactiveInlayHints?: boolean;
8387
8413
  readonly allowRenameOfImportPath?: boolean;
8388
8414
  readonly autoImportFileExcludePatterns?: string[];
8389
8415
  readonly organizeImportsIgnoreCase?: "auto" | boolean;
@@ -10366,11 +10392,18 @@ declare namespace ts {
10366
10392
  Enum = "Enum"
10367
10393
  }
10368
10394
  interface InlayHint {
10395
+ /** This property will be the empty string when displayParts is set. */
10369
10396
  text: string;
10370
10397
  position: number;
10371
10398
  kind: InlayHintKind;
10372
10399
  whitespaceBefore?: boolean;
10373
10400
  whitespaceAfter?: boolean;
10401
+ displayParts?: InlayHintDisplayPart[];
10402
+ }
10403
+ interface InlayHintDisplayPart {
10404
+ text: string;
10405
+ span?: TextSpan;
10406
+ file?: string;
10374
10407
  }
10375
10408
  interface TodoCommentDescriptor {
10376
10409
  text: string;
@@ -10802,6 +10835,7 @@ declare namespace ts {
10802
10835
  kindModifiers?: string;
10803
10836
  sortText: string;
10804
10837
  insertText?: string;
10838
+ filterText?: string;
10805
10839
  isSnippet?: true;
10806
10840
  /**
10807
10841
  * An optional span that indicates the text to be replaced by this completion item.
@@ -10961,6 +10995,10 @@ declare namespace ts {
10961
10995
  variableElement = "var",
10962
10996
  /** Inside function */
10963
10997
  localVariableElement = "local var",
10998
+ /** using foo = ... */
10999
+ variableUsingElement = "using",
11000
+ /** await using foo = ... */
11001
+ variableAwaitUsingElement = "await using",
10964
11002
  /**
10965
11003
  * Inside module and script only
10966
11004
  * function f() { }