@typescript-deploys/pr-build 4.7.0-pr-36747-12 → 4.7.0-pr-48581-7
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 +6 -1
- package/lib/de/diagnosticMessages.generated.json +6 -1
- package/lib/es/diagnosticMessages.generated.json +6 -1
- package/lib/fr/diagnosticMessages.generated.json +6 -1
- package/lib/it/diagnosticMessages.generated.json +6 -1
- package/lib/ja/diagnosticMessages.generated.json +6 -1
- package/lib/ko/diagnosticMessages.generated.json +6 -1
- package/lib/lib.dom.d.ts +404 -31
- package/lib/lib.dom.iterable.d.ts +16 -3
- package/lib/lib.es2020.intl.d.ts +32 -8
- package/lib/lib.es2021.intl.d.ts +102 -0
- package/lib/lib.es5.d.ts +1 -1
- package/lib/lib.webworker.d.ts +110 -25
- package/lib/lib.webworker.iterable.d.ts +3 -3
- package/lib/pl/diagnosticMessages.generated.json +6 -1
- package/lib/protocol.d.ts +35 -2
- package/lib/pt-br/diagnosticMessages.generated.json +6 -1
- package/lib/ru/diagnosticMessages.generated.json +6 -1
- package/lib/tr/diagnosticMessages.generated.json +42 -37
- package/lib/tsc.js +5196 -4814
- package/lib/tsserver.js +8709 -7844
- package/lib/tsserverlibrary.d.ts +312 -252
- package/lib/tsserverlibrary.js +8709 -7844
- package/lib/typescript.d.ts +277 -250
- package/lib/typescript.js +8637 -7805
- package/lib/typescriptServices.d.ts +277 -250
- package/lib/typescriptServices.js +8637 -7805
- package/lib/typingsInstaller.js +6188 -5697
- package/lib/zh-cn/diagnosticMessages.generated.json +6 -1
- package/lib/zh-tw/diagnosticMessages.generated.json +6 -1
- package/package.json +1 -1
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -249,218 +249,219 @@ declare namespace ts {
|
|
|
249
249
|
ModuleKeyword = 141,
|
|
250
250
|
NamespaceKeyword = 142,
|
|
251
251
|
NeverKeyword = 143,
|
|
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
|
-
|
|
252
|
+
OutKeyword = 144,
|
|
253
|
+
ReadonlyKeyword = 145,
|
|
254
|
+
RequireKeyword = 146,
|
|
255
|
+
NumberKeyword = 147,
|
|
256
|
+
ObjectKeyword = 148,
|
|
257
|
+
SetKeyword = 149,
|
|
258
|
+
StringKeyword = 150,
|
|
259
|
+
SymbolKeyword = 151,
|
|
260
|
+
TypeKeyword = 152,
|
|
261
|
+
UndefinedKeyword = 153,
|
|
262
|
+
UniqueKeyword = 154,
|
|
263
|
+
UnknownKeyword = 155,
|
|
264
|
+
FromKeyword = 156,
|
|
265
|
+
GlobalKeyword = 157,
|
|
266
|
+
BigIntKeyword = 158,
|
|
267
|
+
OverrideKeyword = 159,
|
|
268
|
+
OfKeyword = 160,
|
|
269
|
+
QualifiedName = 161,
|
|
270
|
+
ComputedPropertyName = 162,
|
|
271
|
+
TypeParameter = 163,
|
|
272
|
+
Parameter = 164,
|
|
273
|
+
Decorator = 165,
|
|
274
|
+
PropertySignature = 166,
|
|
275
|
+
PropertyDeclaration = 167,
|
|
276
|
+
MethodSignature = 168,
|
|
277
|
+
MethodDeclaration = 169,
|
|
278
|
+
ClassStaticBlockDeclaration = 170,
|
|
279
|
+
Constructor = 171,
|
|
280
|
+
GetAccessor = 172,
|
|
281
|
+
SetAccessor = 173,
|
|
282
|
+
CallSignature = 174,
|
|
283
|
+
ConstructSignature = 175,
|
|
284
|
+
IndexSignature = 176,
|
|
285
|
+
TypePredicate = 177,
|
|
286
|
+
TypeReference = 178,
|
|
287
|
+
FunctionType = 179,
|
|
288
|
+
ConstructorType = 180,
|
|
289
|
+
TypeQuery = 181,
|
|
290
|
+
TypeLiteral = 182,
|
|
291
|
+
ArrayType = 183,
|
|
292
|
+
TupleType = 184,
|
|
293
|
+
OptionalType = 185,
|
|
294
|
+
RestType = 186,
|
|
295
|
+
UnionType = 187,
|
|
296
|
+
IntersectionType = 188,
|
|
297
|
+
ConditionalType = 189,
|
|
298
|
+
InferType = 190,
|
|
299
|
+
ParenthesizedType = 191,
|
|
300
|
+
ThisType = 192,
|
|
301
|
+
TypeOperator = 193,
|
|
302
|
+
IndexedAccessType = 194,
|
|
303
|
+
MappedType = 195,
|
|
304
|
+
LiteralType = 196,
|
|
305
|
+
NamedTupleMember = 197,
|
|
306
|
+
TemplateLiteralType = 198,
|
|
307
|
+
TemplateLiteralTypeSpan = 199,
|
|
308
|
+
ImportType = 200,
|
|
309
|
+
ObjectBindingPattern = 201,
|
|
310
|
+
ArrayBindingPattern = 202,
|
|
311
|
+
BindingElement = 203,
|
|
312
|
+
ArrayLiteralExpression = 204,
|
|
313
|
+
ObjectLiteralExpression = 205,
|
|
314
|
+
PropertyAccessExpression = 206,
|
|
315
|
+
ElementAccessExpression = 207,
|
|
316
|
+
CallExpression = 208,
|
|
317
|
+
NewExpression = 209,
|
|
318
|
+
TaggedTemplateExpression = 210,
|
|
319
|
+
TypeAssertionExpression = 211,
|
|
320
|
+
ParenthesizedExpression = 212,
|
|
321
|
+
FunctionExpression = 213,
|
|
322
|
+
ArrowFunction = 214,
|
|
323
|
+
DeleteExpression = 215,
|
|
324
|
+
TypeOfExpression = 216,
|
|
325
|
+
VoidExpression = 217,
|
|
326
|
+
AwaitExpression = 218,
|
|
327
|
+
PrefixUnaryExpression = 219,
|
|
328
|
+
PostfixUnaryExpression = 220,
|
|
329
|
+
BinaryExpression = 221,
|
|
330
|
+
ConditionalExpression = 222,
|
|
331
|
+
TemplateExpression = 223,
|
|
332
|
+
YieldExpression = 224,
|
|
333
|
+
SpreadElement = 225,
|
|
334
|
+
ClassExpression = 226,
|
|
335
|
+
OmittedExpression = 227,
|
|
336
|
+
ExpressionWithTypeArguments = 228,
|
|
337
|
+
AsExpression = 229,
|
|
338
|
+
NonNullExpression = 230,
|
|
339
|
+
MetaProperty = 231,
|
|
340
|
+
SyntheticExpression = 232,
|
|
341
|
+
TemplateSpan = 233,
|
|
342
|
+
SemicolonClassElement = 234,
|
|
343
|
+
Block = 235,
|
|
344
|
+
EmptyStatement = 236,
|
|
345
|
+
VariableStatement = 237,
|
|
346
|
+
ExpressionStatement = 238,
|
|
347
|
+
IfStatement = 239,
|
|
348
|
+
DoStatement = 240,
|
|
349
|
+
WhileStatement = 241,
|
|
350
|
+
ForStatement = 242,
|
|
351
|
+
ForInStatement = 243,
|
|
352
|
+
ForOfStatement = 244,
|
|
353
|
+
ContinueStatement = 245,
|
|
354
|
+
BreakStatement = 246,
|
|
355
|
+
ReturnStatement = 247,
|
|
356
|
+
WithStatement = 248,
|
|
357
|
+
SwitchStatement = 249,
|
|
358
|
+
LabeledStatement = 250,
|
|
359
|
+
ThrowStatement = 251,
|
|
360
|
+
TryStatement = 252,
|
|
361
|
+
DebuggerStatement = 253,
|
|
362
|
+
VariableDeclaration = 254,
|
|
363
|
+
VariableDeclarationList = 255,
|
|
364
|
+
FunctionDeclaration = 256,
|
|
365
|
+
ClassDeclaration = 257,
|
|
366
|
+
InterfaceDeclaration = 258,
|
|
367
|
+
TypeAliasDeclaration = 259,
|
|
368
|
+
EnumDeclaration = 260,
|
|
369
|
+
ModuleDeclaration = 261,
|
|
370
|
+
ModuleBlock = 262,
|
|
371
|
+
CaseBlock = 263,
|
|
372
|
+
NamespaceExportDeclaration = 264,
|
|
373
|
+
ImportEqualsDeclaration = 265,
|
|
374
|
+
ImportDeclaration = 266,
|
|
375
|
+
ImportClause = 267,
|
|
376
|
+
NamespaceImport = 268,
|
|
377
|
+
NamedImports = 269,
|
|
378
|
+
ImportSpecifier = 270,
|
|
379
|
+
ExportAssignment = 271,
|
|
380
|
+
ExportDeclaration = 272,
|
|
381
|
+
NamedExports = 273,
|
|
382
|
+
NamespaceExport = 274,
|
|
383
|
+
ExportSpecifier = 275,
|
|
384
|
+
MissingDeclaration = 276,
|
|
385
|
+
ExternalModuleReference = 277,
|
|
386
|
+
JsxElement = 278,
|
|
387
|
+
JsxSelfClosingElement = 279,
|
|
388
|
+
JsxOpeningElement = 280,
|
|
389
|
+
JsxClosingElement = 281,
|
|
390
|
+
JsxFragment = 282,
|
|
391
|
+
JsxOpeningFragment = 283,
|
|
392
|
+
JsxClosingFragment = 284,
|
|
393
|
+
JsxAttribute = 285,
|
|
394
|
+
JsxAttributes = 286,
|
|
395
|
+
JsxSpreadAttribute = 287,
|
|
396
|
+
JsxExpression = 288,
|
|
397
|
+
CaseClause = 289,
|
|
398
|
+
DefaultClause = 290,
|
|
399
|
+
HeritageClause = 291,
|
|
400
|
+
CatchClause = 292,
|
|
401
|
+
AssertClause = 293,
|
|
402
|
+
AssertEntry = 294,
|
|
403
|
+
ImportTypeAssertionContainer = 295,
|
|
404
|
+
PropertyAssignment = 296,
|
|
405
|
+
ShorthandPropertyAssignment = 297,
|
|
406
|
+
SpreadAssignment = 298,
|
|
407
|
+
EnumMember = 299,
|
|
408
|
+
UnparsedPrologue = 300,
|
|
409
|
+
UnparsedPrepend = 301,
|
|
410
|
+
UnparsedText = 302,
|
|
411
|
+
UnparsedInternalText = 303,
|
|
412
|
+
UnparsedSyntheticReference = 304,
|
|
413
|
+
SourceFile = 305,
|
|
414
|
+
Bundle = 306,
|
|
415
|
+
UnparsedSource = 307,
|
|
416
|
+
InputFiles = 308,
|
|
417
|
+
JSDocTypeExpression = 309,
|
|
418
|
+
JSDocNameReference = 310,
|
|
419
|
+
JSDocMemberName = 311,
|
|
420
|
+
JSDocAllType = 312,
|
|
421
|
+
JSDocUnknownType = 313,
|
|
422
|
+
JSDocNullableType = 314,
|
|
423
|
+
JSDocNonNullableType = 315,
|
|
424
|
+
JSDocOptionalType = 316,
|
|
425
|
+
JSDocFunctionType = 317,
|
|
426
|
+
JSDocVariadicType = 318,
|
|
427
|
+
JSDocNamepathType = 319,
|
|
427
428
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
428
|
-
JSDocComment =
|
|
429
|
-
JSDocText =
|
|
430
|
-
JSDocTypeLiteral =
|
|
431
|
-
JSDocSignature =
|
|
432
|
-
JSDocLink =
|
|
433
|
-
JSDocLinkCode =
|
|
434
|
-
JSDocLinkPlain =
|
|
435
|
-
JSDocTag =
|
|
436
|
-
JSDocAugmentsTag =
|
|
437
|
-
JSDocImplementsTag =
|
|
438
|
-
JSDocAuthorTag =
|
|
439
|
-
JSDocDeprecatedTag =
|
|
440
|
-
JSDocClassTag =
|
|
441
|
-
JSDocPublicTag =
|
|
442
|
-
JSDocPrivateTag =
|
|
443
|
-
JSDocProtectedTag =
|
|
444
|
-
JSDocReadonlyTag =
|
|
445
|
-
JSDocOverrideTag =
|
|
446
|
-
JSDocCallbackTag =
|
|
447
|
-
JSDocEnumTag =
|
|
448
|
-
JSDocParameterTag =
|
|
449
|
-
JSDocReturnTag =
|
|
450
|
-
JSDocThisTag =
|
|
451
|
-
JSDocTypeTag =
|
|
452
|
-
JSDocTemplateTag =
|
|
453
|
-
JSDocTypedefTag =
|
|
454
|
-
JSDocSeeTag =
|
|
455
|
-
JSDocPropertyTag =
|
|
456
|
-
SyntaxList =
|
|
457
|
-
NotEmittedStatement =
|
|
458
|
-
PartiallyEmittedExpression =
|
|
459
|
-
CommaListExpression =
|
|
460
|
-
MergeDeclarationMarker =
|
|
461
|
-
EndOfDeclarationMarker =
|
|
462
|
-
SyntheticReferenceExpression =
|
|
463
|
-
Count =
|
|
429
|
+
JSDocComment = 320,
|
|
430
|
+
JSDocText = 321,
|
|
431
|
+
JSDocTypeLiteral = 322,
|
|
432
|
+
JSDocSignature = 323,
|
|
433
|
+
JSDocLink = 324,
|
|
434
|
+
JSDocLinkCode = 325,
|
|
435
|
+
JSDocLinkPlain = 326,
|
|
436
|
+
JSDocTag = 327,
|
|
437
|
+
JSDocAugmentsTag = 328,
|
|
438
|
+
JSDocImplementsTag = 329,
|
|
439
|
+
JSDocAuthorTag = 330,
|
|
440
|
+
JSDocDeprecatedTag = 331,
|
|
441
|
+
JSDocClassTag = 332,
|
|
442
|
+
JSDocPublicTag = 333,
|
|
443
|
+
JSDocPrivateTag = 334,
|
|
444
|
+
JSDocProtectedTag = 335,
|
|
445
|
+
JSDocReadonlyTag = 336,
|
|
446
|
+
JSDocOverrideTag = 337,
|
|
447
|
+
JSDocCallbackTag = 338,
|
|
448
|
+
JSDocEnumTag = 339,
|
|
449
|
+
JSDocParameterTag = 340,
|
|
450
|
+
JSDocReturnTag = 341,
|
|
451
|
+
JSDocThisTag = 342,
|
|
452
|
+
JSDocTypeTag = 343,
|
|
453
|
+
JSDocTemplateTag = 344,
|
|
454
|
+
JSDocTypedefTag = 345,
|
|
455
|
+
JSDocSeeTag = 346,
|
|
456
|
+
JSDocPropertyTag = 347,
|
|
457
|
+
SyntaxList = 348,
|
|
458
|
+
NotEmittedStatement = 349,
|
|
459
|
+
PartiallyEmittedExpression = 350,
|
|
460
|
+
CommaListExpression = 351,
|
|
461
|
+
MergeDeclarationMarker = 352,
|
|
462
|
+
EndOfDeclarationMarker = 353,
|
|
463
|
+
SyntheticReferenceExpression = 354,
|
|
464
|
+
Count = 355,
|
|
464
465
|
FirstAssignment = 63,
|
|
465
466
|
LastAssignment = 78,
|
|
466
467
|
FirstCompoundAssignment = 64,
|
|
@@ -468,15 +469,15 @@ declare namespace ts {
|
|
|
468
469
|
FirstReservedWord = 81,
|
|
469
470
|
LastReservedWord = 116,
|
|
470
471
|
FirstKeyword = 81,
|
|
471
|
-
LastKeyword =
|
|
472
|
+
LastKeyword = 160,
|
|
472
473
|
FirstFutureReservedWord = 117,
|
|
473
474
|
LastFutureReservedWord = 125,
|
|
474
|
-
FirstTypeNode =
|
|
475
|
-
LastTypeNode =
|
|
475
|
+
FirstTypeNode = 177,
|
|
476
|
+
LastTypeNode = 200,
|
|
476
477
|
FirstPunctuation = 18,
|
|
477
478
|
LastPunctuation = 78,
|
|
478
479
|
FirstToken = 0,
|
|
479
|
-
LastToken =
|
|
480
|
+
LastToken = 160,
|
|
480
481
|
FirstTriviaToken = 2,
|
|
481
482
|
LastTriviaToken = 7,
|
|
482
483
|
FirstLiteralToken = 8,
|
|
@@ -485,21 +486,21 @@ declare namespace ts {
|
|
|
485
486
|
LastTemplateToken = 17,
|
|
486
487
|
FirstBinaryOperator = 29,
|
|
487
488
|
LastBinaryOperator = 78,
|
|
488
|
-
FirstStatement =
|
|
489
|
-
LastStatement =
|
|
490
|
-
FirstNode =
|
|
491
|
-
FirstJSDocNode =
|
|
492
|
-
LastJSDocNode =
|
|
493
|
-
FirstJSDocTagNode =
|
|
494
|
-
LastJSDocTagNode =
|
|
495
|
-
JSDoc =
|
|
489
|
+
FirstStatement = 237,
|
|
490
|
+
LastStatement = 253,
|
|
491
|
+
FirstNode = 161,
|
|
492
|
+
FirstJSDocNode = 309,
|
|
493
|
+
LastJSDocNode = 347,
|
|
494
|
+
FirstJSDocTagNode = 327,
|
|
495
|
+
LastJSDocTagNode = 347,
|
|
496
|
+
JSDoc = 320
|
|
496
497
|
}
|
|
497
498
|
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
498
499
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
499
500
|
export type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
500
501
|
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;
|
|
501
|
-
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;
|
|
502
|
-
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;
|
|
502
|
+
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.OutKeyword | 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;
|
|
503
|
+
export type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | 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;
|
|
503
504
|
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;
|
|
504
505
|
export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
|
505
506
|
export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
|
|
@@ -522,16 +523,17 @@ declare namespace ts {
|
|
|
522
523
|
YieldContext = 8192,
|
|
523
524
|
DecoratorContext = 16384,
|
|
524
525
|
AwaitContext = 32768,
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
526
|
+
DisallowConditionalTypesContext = 65536,
|
|
527
|
+
ThisNodeHasError = 131072,
|
|
528
|
+
JavaScriptFile = 262144,
|
|
529
|
+
ThisNodeOrAnySubNodesHasError = 524288,
|
|
530
|
+
HasAggregatedChildData = 1048576,
|
|
531
|
+
JSDoc = 8388608,
|
|
532
|
+
JsonFile = 67108864,
|
|
531
533
|
BlockScoped = 3,
|
|
532
534
|
ReachabilityCheckFlags = 768,
|
|
533
535
|
ReachabilityAndEmitFlags = 2816,
|
|
534
|
-
ContextFlags =
|
|
536
|
+
ContextFlags = 50720768,
|
|
535
537
|
TypeExcludesFlags = 40960,
|
|
536
538
|
}
|
|
537
539
|
export enum ModifierFlags {
|
|
@@ -550,13 +552,15 @@ declare namespace ts {
|
|
|
550
552
|
HasComputedJSDocModifiers = 4096,
|
|
551
553
|
Deprecated = 8192,
|
|
552
554
|
Override = 16384,
|
|
555
|
+
In = 32768,
|
|
556
|
+
Out = 65536,
|
|
553
557
|
HasComputedFlags = 536870912,
|
|
554
558
|
AccessibilityModifier = 28,
|
|
555
559
|
ParameterPropertyModifier = 16476,
|
|
556
560
|
NonPublicAccessibilityModifier = 24,
|
|
557
|
-
TypeScriptModifier =
|
|
561
|
+
TypeScriptModifier = 116958,
|
|
558
562
|
ExportDefault = 513,
|
|
559
|
-
All =
|
|
563
|
+
All = 125951
|
|
560
564
|
}
|
|
561
565
|
export enum JsxFlags {
|
|
562
566
|
None = 0,
|
|
@@ -617,15 +621,17 @@ declare namespace ts {
|
|
|
617
621
|
export type DeclareKeyword = ModifierToken<SyntaxKind.DeclareKeyword>;
|
|
618
622
|
export type DefaultKeyword = ModifierToken<SyntaxKind.DefaultKeyword>;
|
|
619
623
|
export type ExportKeyword = ModifierToken<SyntaxKind.ExportKeyword>;
|
|
624
|
+
export type InKeyword = ModifierToken<SyntaxKind.InKeyword>;
|
|
620
625
|
export type PrivateKeyword = ModifierToken<SyntaxKind.PrivateKeyword>;
|
|
621
626
|
export type ProtectedKeyword = ModifierToken<SyntaxKind.ProtectedKeyword>;
|
|
622
627
|
export type PublicKeyword = ModifierToken<SyntaxKind.PublicKeyword>;
|
|
623
628
|
export type ReadonlyKeyword = ModifierToken<SyntaxKind.ReadonlyKeyword>;
|
|
629
|
+
export type OutKeyword = ModifierToken<SyntaxKind.OutKeyword>;
|
|
624
630
|
export type OverrideKeyword = ModifierToken<SyntaxKind.OverrideKeyword>;
|
|
625
631
|
export type StaticKeyword = ModifierToken<SyntaxKind.StaticKeyword>;
|
|
626
632
|
/** @deprecated Use `ReadonlyKeyword` instead. */
|
|
627
633
|
export type ReadonlyToken = ReadonlyKeyword;
|
|
628
|
-
export type Modifier = AbstractKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
|
|
634
|
+
export type Modifier = AbstractKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | InKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OutKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
|
|
629
635
|
export type AccessibilityModifier = PublicKeyword | PrivateKeyword | ProtectedKeyword;
|
|
630
636
|
export type ParameterPropertyModifier = AccessibilityModifier | ReadonlyKeyword;
|
|
631
637
|
export type ClassMemberModifier = AccessibilityModifier | ReadonlyKeyword | StaticKeyword;
|
|
@@ -1800,10 +1806,12 @@ declare namespace ts {
|
|
|
1800
1806
|
export interface JSDocNonNullableType extends JSDocType {
|
|
1801
1807
|
readonly kind: SyntaxKind.JSDocNonNullableType;
|
|
1802
1808
|
readonly type: TypeNode;
|
|
1809
|
+
readonly postfix: boolean;
|
|
1803
1810
|
}
|
|
1804
1811
|
export interface JSDocNullableType extends JSDocType {
|
|
1805
1812
|
readonly kind: SyntaxKind.JSDocNullableType;
|
|
1806
1813
|
readonly type: TypeNode;
|
|
1814
|
+
readonly postfix: boolean;
|
|
1807
1815
|
}
|
|
1808
1816
|
export interface JSDocOptionalType extends JSDocType {
|
|
1809
1817
|
readonly kind: SyntaxKind.JSDocOptionalType;
|
|
@@ -1978,7 +1986,7 @@ declare namespace ts {
|
|
|
1978
1986
|
Label = 12,
|
|
1979
1987
|
Condition = 96
|
|
1980
1988
|
}
|
|
1981
|
-
export type FlowNode = FlowStart | FlowLabel | FlowAssignment |
|
|
1989
|
+
export type FlowNode = FlowStart | FlowLabel | FlowAssignment | FlowCondition | FlowSwitchClause | FlowArrayMutation | FlowCall | FlowReduceLabel;
|
|
1982
1990
|
export interface FlowNodeBase {
|
|
1983
1991
|
flags: FlowFlags;
|
|
1984
1992
|
id?: number;
|
|
@@ -2670,14 +2678,13 @@ declare namespace ts {
|
|
|
2670
2678
|
ObjectLiteralPatternWithComputedProperties = 512,
|
|
2671
2679
|
ReverseMapped = 1024,
|
|
2672
2680
|
JsxAttributes = 2048,
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
ArrayLiteral = 32768,
|
|
2681
|
+
JSLiteral = 4096,
|
|
2682
|
+
FreshLiteral = 8192,
|
|
2683
|
+
ArrayLiteral = 16384,
|
|
2677
2684
|
ClassOrInterface = 3,
|
|
2678
|
-
ContainsSpread =
|
|
2679
|
-
ObjectRestType =
|
|
2680
|
-
InstantiationExpressionType =
|
|
2685
|
+
ContainsSpread = 2097152,
|
|
2686
|
+
ObjectRestType = 4194304,
|
|
2687
|
+
InstantiationExpressionType = 8388608,
|
|
2681
2688
|
}
|
|
2682
2689
|
export interface ObjectType extends Type {
|
|
2683
2690
|
objectFlags: ObjectFlags;
|
|
@@ -2973,6 +2980,7 @@ declare namespace ts {
|
|
|
2973
2980
|
maxNodeModuleJsDepth?: number;
|
|
2974
2981
|
module?: ModuleKind;
|
|
2975
2982
|
moduleResolution?: ModuleResolutionKind;
|
|
2983
|
+
moduleSuffixes?: string[];
|
|
2976
2984
|
moduleDetection?: ModuleDetectionKind;
|
|
2977
2985
|
newLine?: NewLineKind;
|
|
2978
2986
|
noEmit?: boolean;
|
|
@@ -3159,7 +3167,7 @@ declare namespace ts {
|
|
|
3159
3167
|
realpath?(path: string): string;
|
|
3160
3168
|
getCurrentDirectory?(): string;
|
|
3161
3169
|
getDirectories?(path: string): string[];
|
|
3162
|
-
useCaseSensitiveFileNames?: boolean | (() => boolean);
|
|
3170
|
+
useCaseSensitiveFileNames?: boolean | (() => boolean) | undefined;
|
|
3163
3171
|
}
|
|
3164
3172
|
/**
|
|
3165
3173
|
* Used by services to specify the minimum host area required to set up source files under any compilation settings
|
|
@@ -3392,7 +3400,11 @@ declare namespace ts {
|
|
|
3392
3400
|
updateQualifiedName(node: QualifiedName, left: EntityName, right: Identifier): QualifiedName;
|
|
3393
3401
|
createComputedPropertyName(expression: Expression): ComputedPropertyName;
|
|
3394
3402
|
updateComputedPropertyName(node: ComputedPropertyName, expression: Expression): ComputedPropertyName;
|
|
3403
|
+
createTypeParameterDeclaration(modifiers: readonly Modifier[] | undefined, name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
3404
|
+
/** @deprecated */
|
|
3395
3405
|
createTypeParameterDeclaration(name: string | Identifier, constraint?: TypeNode, defaultType?: TypeNode): TypeParameterDeclaration;
|
|
3406
|
+
updateTypeParameterDeclaration(node: TypeParameterDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
3407
|
+
/** @deprecated */
|
|
3396
3408
|
updateTypeParameterDeclaration(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
3397
3409
|
createParameterDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken, type?: TypeNode, initializer?: Expression): ParameterDeclaration;
|
|
3398
3410
|
updateParameterDeclaration(node: ParameterDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken: QuestionToken | undefined, type: TypeNode | undefined, initializer: Expression | undefined): ParameterDeclaration;
|
|
@@ -3645,9 +3657,9 @@ declare namespace ts {
|
|
|
3645
3657
|
updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference;
|
|
3646
3658
|
createJSDocAllType(): JSDocAllType;
|
|
3647
3659
|
createJSDocUnknownType(): JSDocUnknownType;
|
|
3648
|
-
createJSDocNonNullableType(type: TypeNode): JSDocNonNullableType;
|
|
3660
|
+
createJSDocNonNullableType(type: TypeNode, postfix?: boolean): JSDocNonNullableType;
|
|
3649
3661
|
updateJSDocNonNullableType(node: JSDocNonNullableType, type: TypeNode): JSDocNonNullableType;
|
|
3650
|
-
createJSDocNullableType(type: TypeNode): JSDocNullableType;
|
|
3662
|
+
createJSDocNullableType(type: TypeNode, postfix?: boolean): JSDocNullableType;
|
|
3651
3663
|
updateJSDocNullableType(node: JSDocNullableType, type: TypeNode): JSDocNullableType;
|
|
3652
3664
|
createJSDocOptionalType(type: TypeNode): JSDocOptionalType;
|
|
3653
3665
|
updateJSDocOptionalType(node: JSDocOptionalType, type: TypeNode): JSDocOptionalType;
|
|
@@ -4091,6 +4103,8 @@ declare namespace ts {
|
|
|
4091
4103
|
readonly includeAutomaticOptionalChainCompletions?: boolean;
|
|
4092
4104
|
readonly includeCompletionsWithInsertText?: boolean;
|
|
4093
4105
|
readonly includeCompletionsWithClassMemberSnippets?: boolean;
|
|
4106
|
+
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
|
|
4107
|
+
readonly useLabelDetailsInCompletionEntries?: boolean;
|
|
4094
4108
|
readonly allowIncompleteCompletions?: boolean;
|
|
4095
4109
|
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
|
|
4096
4110
|
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */
|
|
@@ -6195,7 +6209,6 @@ declare namespace ts {
|
|
|
6195
6209
|
}
|
|
6196
6210
|
interface ReferenceEntry extends DocumentSpan {
|
|
6197
6211
|
isWriteAccess: boolean;
|
|
6198
|
-
isDefinition: boolean;
|
|
6199
6212
|
isInString?: true;
|
|
6200
6213
|
}
|
|
6201
6214
|
interface ImplementationLocation extends DocumentSpan {
|
|
@@ -6309,7 +6322,10 @@ declare namespace ts {
|
|
|
6309
6322
|
}
|
|
6310
6323
|
interface ReferencedSymbol {
|
|
6311
6324
|
definition: ReferencedSymbolDefinitionInfo;
|
|
6312
|
-
references:
|
|
6325
|
+
references: ReferencedSymbolEntry[];
|
|
6326
|
+
}
|
|
6327
|
+
interface ReferencedSymbolEntry extends ReferenceEntry {
|
|
6328
|
+
isDefinition?: boolean;
|
|
6313
6329
|
}
|
|
6314
6330
|
enum SymbolDisplayPartKind {
|
|
6315
6331
|
aliasName = 0,
|
|
@@ -6476,6 +6492,7 @@ declare namespace ts {
|
|
|
6476
6492
|
hasAction?: true;
|
|
6477
6493
|
source?: string;
|
|
6478
6494
|
sourceDisplay?: SymbolDisplayPart[];
|
|
6495
|
+
labelDetails?: CompletionEntryLabelDetails;
|
|
6479
6496
|
isRecommended?: true;
|
|
6480
6497
|
isFromUncheckedFile?: true;
|
|
6481
6498
|
isPackageJsonImport?: true;
|
|
@@ -6490,6 +6507,10 @@ declare namespace ts {
|
|
|
6490
6507
|
*/
|
|
6491
6508
|
data?: CompletionEntryData;
|
|
6492
6509
|
}
|
|
6510
|
+
interface CompletionEntryLabelDetails {
|
|
6511
|
+
detail?: string;
|
|
6512
|
+
description?: string;
|
|
6513
|
+
}
|
|
6493
6514
|
interface CompletionEntryDetails {
|
|
6494
6515
|
name: string;
|
|
6495
6516
|
kind: ScriptElementKind;
|
|
@@ -7836,9 +7857,12 @@ declare namespace ts.server.protocol {
|
|
|
7836
7857
|
*/
|
|
7837
7858
|
isWriteAccess: boolean;
|
|
7838
7859
|
/**
|
|
7839
|
-
*
|
|
7860
|
+
* Present only if the search was triggered from a declaration.
|
|
7861
|
+
* True indicates that the references refers to the same symbol
|
|
7862
|
+
* (i.e. has the same meaning) as the declaration that began the
|
|
7863
|
+
* search.
|
|
7840
7864
|
*/
|
|
7841
|
-
isDefinition
|
|
7865
|
+
isDefinition?: boolean;
|
|
7842
7866
|
}
|
|
7843
7867
|
/**
|
|
7844
7868
|
* The body of a "references" response message.
|
|
@@ -8699,6 +8723,10 @@ declare namespace ts.server.protocol {
|
|
|
8699
8723
|
* Human-readable description of the `source`.
|
|
8700
8724
|
*/
|
|
8701
8725
|
sourceDisplay?: SymbolDisplayPart[];
|
|
8726
|
+
/**
|
|
8727
|
+
* Additional details for the label.
|
|
8728
|
+
*/
|
|
8729
|
+
labelDetails?: CompletionEntryLabelDetails;
|
|
8702
8730
|
/**
|
|
8703
8731
|
* If true, this completion should be highlighted as recommended. There will only be one of these.
|
|
8704
8732
|
* This will be set when we know the user should write an expression with a certain type and that type is an enum or constructable class.
|
|
@@ -8727,6 +8755,20 @@ declare namespace ts.server.protocol {
|
|
|
8727
8755
|
*/
|
|
8728
8756
|
data?: unknown;
|
|
8729
8757
|
}
|
|
8758
|
+
interface CompletionEntryLabelDetails {
|
|
8759
|
+
/**
|
|
8760
|
+
* An optional string which is rendered less prominently directly after
|
|
8761
|
+
* {@link CompletionEntry.name name}, without any spacing. Should be
|
|
8762
|
+
* used for function signatures or type annotations.
|
|
8763
|
+
*/
|
|
8764
|
+
detail?: string;
|
|
8765
|
+
/**
|
|
8766
|
+
* An optional string which is rendered less prominently after
|
|
8767
|
+
* {@link CompletionEntryLabelDetails.detail}. Should be used for fully qualified
|
|
8768
|
+
* names or file path.
|
|
8769
|
+
*/
|
|
8770
|
+
description?: string;
|
|
8771
|
+
}
|
|
8730
8772
|
/**
|
|
8731
8773
|
* Additional completion entry details, available on demand
|
|
8732
8774
|
*/
|
|
@@ -9620,6 +9662,18 @@ declare namespace ts.server.protocol {
|
|
|
9620
9662
|
* `class A { foo }`.
|
|
9621
9663
|
*/
|
|
9622
9664
|
readonly includeCompletionsWithClassMemberSnippets?: boolean;
|
|
9665
|
+
/**
|
|
9666
|
+
* If enabled, object literal methods will have a method declaration completion entry in addition
|
|
9667
|
+
* to the regular completion entry containing just the method name.
|
|
9668
|
+
* E.g., `const objectLiteral: T = { f| }` could be completed to `const objectLiteral: T = { foo(): void {} }`,
|
|
9669
|
+
* in addition to `const objectLiteral: T = { foo }`.
|
|
9670
|
+
*/
|
|
9671
|
+
readonly includeCompletionsWithObjectLiteralMethodSnippets?: boolean;
|
|
9672
|
+
/**
|
|
9673
|
+
* Indicates whether {@link CompletionEntry.labelDetails completion entry label details} are supported.
|
|
9674
|
+
* If not, contents of `labelDetails` may be included in the {@link CompletionEntry.name} property.
|
|
9675
|
+
*/
|
|
9676
|
+
readonly useLabelDetailsInCompletionEntries?: boolean;
|
|
9623
9677
|
readonly allowIncompleteCompletions?: boolean;
|
|
9624
9678
|
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
|
|
9625
9679
|
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */
|
|
@@ -10758,9 +10812,15 @@ declare namespace ts {
|
|
|
10758
10812
|
/** @deprecated Use `factory.updateComputedPropertyName` or the factory supplied by your transformation context instead. */
|
|
10759
10813
|
const updateComputedPropertyName: (node: ComputedPropertyName, expression: Expression) => ComputedPropertyName;
|
|
10760
10814
|
/** @deprecated Use `factory.createTypeParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
10761
|
-
const createTypeParameterDeclaration:
|
|
10815
|
+
const createTypeParameterDeclaration: {
|
|
10816
|
+
(modifiers: readonly Modifier[] | undefined, name: string | Identifier, constraint?: TypeNode | undefined, defaultType?: TypeNode | undefined): TypeParameterDeclaration;
|
|
10817
|
+
(name: string | Identifier, constraint?: TypeNode | undefined, defaultType?: TypeNode | undefined): TypeParameterDeclaration;
|
|
10818
|
+
};
|
|
10762
10819
|
/** @deprecated Use `factory.updateTypeParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
10763
|
-
const updateTypeParameterDeclaration:
|
|
10820
|
+
const updateTypeParameterDeclaration: {
|
|
10821
|
+
(node: TypeParameterDeclaration, modifiers: readonly Modifier[] | undefined, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
10822
|
+
(node: TypeParameterDeclaration, name: Identifier, constraint: TypeNode | undefined, defaultType: TypeNode | undefined): TypeParameterDeclaration;
|
|
10823
|
+
};
|
|
10764
10824
|
/** @deprecated Use `factory.createParameterDeclaration` or the factory supplied by your transformation context instead. */
|
|
10765
10825
|
const createParameter: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, dotDotDotToken: DotDotDotToken | undefined, name: string | BindingName, questionToken?: QuestionToken | undefined, type?: TypeNode | undefined, initializer?: Expression | undefined) => ParameterDeclaration;
|
|
10766
10826
|
/** @deprecated Use `factory.updateParameterDeclaration` or the factory supplied by your transformation context instead. */
|