@typescript-deploys/pr-build 4.9.0-pr-50976-13 → 4.9.0-pr-51026-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.
- package/lib/protocol.d.ts +0 -2
- package/lib/tsc.js +114 -68
- package/lib/tsserver.js +203 -93
- package/lib/tsserverlibrary.d.ts +14 -0
- package/lib/tsserverlibrary.js +203 -93
- package/lib/typescript.d.ts +7 -0
- package/lib/typescript.js +194 -92
- package/lib/typescriptServices.d.ts +258 -285
- package/lib/typescriptServices.js +9520 -10726
- package/lib/typingsInstaller.js +144 -74
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
declare namespace ts {
|
|
17
|
-
const versionMajorMinor = "4.
|
|
17
|
+
const versionMajorMinor = "4.8";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -232,240 +232,237 @@ declare namespace ts {
|
|
|
232
232
|
StaticKeyword = 124,
|
|
233
233
|
YieldKeyword = 125,
|
|
234
234
|
AbstractKeyword = 126,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
JSDocVariadicType = 321,
|
|
430
|
-
JSDocNamepathType = 322,
|
|
431
|
-
JSDoc = 323,
|
|
235
|
+
AsKeyword = 127,
|
|
236
|
+
AssertsKeyword = 128,
|
|
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
|
+
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,
|
|
428
|
+
JSDoc = 320,
|
|
432
429
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
433
|
-
JSDocComment =
|
|
434
|
-
JSDocText =
|
|
435
|
-
JSDocTypeLiteral =
|
|
436
|
-
JSDocSignature =
|
|
437
|
-
JSDocLink =
|
|
438
|
-
JSDocLinkCode =
|
|
439
|
-
JSDocLinkPlain =
|
|
440
|
-
JSDocTag =
|
|
441
|
-
JSDocAugmentsTag =
|
|
442
|
-
JSDocImplementsTag =
|
|
443
|
-
JSDocAuthorTag =
|
|
444
|
-
JSDocDeprecatedTag =
|
|
445
|
-
JSDocClassTag =
|
|
446
|
-
JSDocPublicTag =
|
|
447
|
-
JSDocPrivateTag =
|
|
448
|
-
JSDocProtectedTag =
|
|
449
|
-
JSDocReadonlyTag =
|
|
450
|
-
JSDocOverrideTag =
|
|
451
|
-
JSDocCallbackTag =
|
|
452
|
-
JSDocEnumTag =
|
|
453
|
-
JSDocParameterTag =
|
|
454
|
-
JSDocReturnTag =
|
|
455
|
-
JSDocThisTag =
|
|
456
|
-
JSDocTypeTag =
|
|
457
|
-
JSDocTemplateTag =
|
|
458
|
-
JSDocTypedefTag =
|
|
459
|
-
JSDocSeeTag =
|
|
460
|
-
JSDocPropertyTag =
|
|
461
|
-
SyntaxList =
|
|
462
|
-
NotEmittedStatement =
|
|
463
|
-
PartiallyEmittedExpression =
|
|
464
|
-
CommaListExpression =
|
|
465
|
-
MergeDeclarationMarker =
|
|
466
|
-
EndOfDeclarationMarker =
|
|
467
|
-
SyntheticReferenceExpression =
|
|
468
|
-
Count =
|
|
430
|
+
JSDocComment = 320,
|
|
431
|
+
JSDocText = 321,
|
|
432
|
+
JSDocTypeLiteral = 322,
|
|
433
|
+
JSDocSignature = 323,
|
|
434
|
+
JSDocLink = 324,
|
|
435
|
+
JSDocLinkCode = 325,
|
|
436
|
+
JSDocLinkPlain = 326,
|
|
437
|
+
JSDocTag = 327,
|
|
438
|
+
JSDocAugmentsTag = 328,
|
|
439
|
+
JSDocImplementsTag = 329,
|
|
440
|
+
JSDocAuthorTag = 330,
|
|
441
|
+
JSDocDeprecatedTag = 331,
|
|
442
|
+
JSDocClassTag = 332,
|
|
443
|
+
JSDocPublicTag = 333,
|
|
444
|
+
JSDocPrivateTag = 334,
|
|
445
|
+
JSDocProtectedTag = 335,
|
|
446
|
+
JSDocReadonlyTag = 336,
|
|
447
|
+
JSDocOverrideTag = 337,
|
|
448
|
+
JSDocCallbackTag = 338,
|
|
449
|
+
JSDocEnumTag = 339,
|
|
450
|
+
JSDocParameterTag = 340,
|
|
451
|
+
JSDocReturnTag = 341,
|
|
452
|
+
JSDocThisTag = 342,
|
|
453
|
+
JSDocTypeTag = 343,
|
|
454
|
+
JSDocTemplateTag = 344,
|
|
455
|
+
JSDocTypedefTag = 345,
|
|
456
|
+
JSDocSeeTag = 346,
|
|
457
|
+
JSDocPropertyTag = 347,
|
|
458
|
+
SyntaxList = 348,
|
|
459
|
+
NotEmittedStatement = 349,
|
|
460
|
+
PartiallyEmittedExpression = 350,
|
|
461
|
+
CommaListExpression = 351,
|
|
462
|
+
MergeDeclarationMarker = 352,
|
|
463
|
+
EndOfDeclarationMarker = 353,
|
|
464
|
+
SyntheticReferenceExpression = 354,
|
|
465
|
+
Count = 355,
|
|
469
466
|
FirstAssignment = 63,
|
|
470
467
|
LastAssignment = 78,
|
|
471
468
|
FirstCompoundAssignment = 64,
|
|
@@ -473,15 +470,15 @@ declare namespace ts {
|
|
|
473
470
|
FirstReservedWord = 81,
|
|
474
471
|
LastReservedWord = 116,
|
|
475
472
|
FirstKeyword = 81,
|
|
476
|
-
LastKeyword =
|
|
473
|
+
LastKeyword = 160,
|
|
477
474
|
FirstFutureReservedWord = 117,
|
|
478
475
|
LastFutureReservedWord = 125,
|
|
479
|
-
FirstTypeNode =
|
|
480
|
-
LastTypeNode =
|
|
476
|
+
FirstTypeNode = 177,
|
|
477
|
+
LastTypeNode = 200,
|
|
481
478
|
FirstPunctuation = 18,
|
|
482
479
|
LastPunctuation = 78,
|
|
483
480
|
FirstToken = 0,
|
|
484
|
-
LastToken =
|
|
481
|
+
LastToken = 160,
|
|
485
482
|
FirstTriviaToken = 2,
|
|
486
483
|
LastTriviaToken = 7,
|
|
487
484
|
FirstLiteralToken = 8,
|
|
@@ -490,20 +487,20 @@ declare namespace ts {
|
|
|
490
487
|
LastTemplateToken = 17,
|
|
491
488
|
FirstBinaryOperator = 29,
|
|
492
489
|
LastBinaryOperator = 78,
|
|
493
|
-
FirstStatement =
|
|
494
|
-
LastStatement =
|
|
495
|
-
FirstNode =
|
|
496
|
-
FirstJSDocNode =
|
|
497
|
-
LastJSDocNode =
|
|
498
|
-
FirstJSDocTagNode =
|
|
499
|
-
LastJSDocTagNode =
|
|
490
|
+
FirstStatement = 237,
|
|
491
|
+
LastStatement = 253,
|
|
492
|
+
FirstNode = 161,
|
|
493
|
+
FirstJSDocNode = 309,
|
|
494
|
+
LastJSDocNode = 347,
|
|
495
|
+
FirstJSDocTagNode = 327,
|
|
496
|
+
LastJSDocTagNode = 347,
|
|
500
497
|
}
|
|
501
498
|
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
502
499
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
503
500
|
export type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
504
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;
|
|
505
|
-
export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.
|
|
506
|
-
export type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.
|
|
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;
|
|
507
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;
|
|
508
505
|
export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
|
509
506
|
export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
|
|
@@ -548,10 +545,9 @@ declare namespace ts {
|
|
|
548
545
|
Protected = 16,
|
|
549
546
|
Static = 32,
|
|
550
547
|
Readonly = 64,
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
Default = 1024,
|
|
548
|
+
Abstract = 128,
|
|
549
|
+
Async = 256,
|
|
550
|
+
Default = 512,
|
|
555
551
|
Const = 2048,
|
|
556
552
|
HasComputedJSDocModifiers = 4096,
|
|
557
553
|
Deprecated = 8192,
|
|
@@ -563,10 +559,10 @@ declare namespace ts {
|
|
|
563
559
|
AccessibilityModifier = 28,
|
|
564
560
|
ParameterPropertyModifier = 16476,
|
|
565
561
|
NonPublicAccessibilityModifier = 24,
|
|
566
|
-
TypeScriptModifier =
|
|
567
|
-
ExportDefault =
|
|
568
|
-
All =
|
|
569
|
-
Modifier =
|
|
562
|
+
TypeScriptModifier = 116958,
|
|
563
|
+
ExportDefault = 513,
|
|
564
|
+
All = 257023,
|
|
565
|
+
Modifier = 125951
|
|
570
566
|
}
|
|
571
567
|
export enum JsxFlags {
|
|
572
568
|
None = 0,
|
|
@@ -622,7 +618,6 @@ declare namespace ts {
|
|
|
622
618
|
export interface ModifierToken<TKind extends ModifierSyntaxKind> extends KeywordToken<TKind> {
|
|
623
619
|
}
|
|
624
620
|
export type AbstractKeyword = ModifierToken<SyntaxKind.AbstractKeyword>;
|
|
625
|
-
export type AccessorKeyword = ModifierToken<SyntaxKind.AccessorKeyword>;
|
|
626
621
|
export type AsyncKeyword = ModifierToken<SyntaxKind.AsyncKeyword>;
|
|
627
622
|
export type ConstKeyword = ModifierToken<SyntaxKind.ConstKeyword>;
|
|
628
623
|
export type DeclareKeyword = ModifierToken<SyntaxKind.DeclareKeyword>;
|
|
@@ -638,11 +633,11 @@ declare namespace ts {
|
|
|
638
633
|
export type StaticKeyword = ModifierToken<SyntaxKind.StaticKeyword>;
|
|
639
634
|
/** @deprecated Use `ReadonlyKeyword` instead. */
|
|
640
635
|
export type ReadonlyToken = ReadonlyKeyword;
|
|
641
|
-
export type Modifier = AbstractKeyword |
|
|
636
|
+
export type Modifier = AbstractKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | InKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OutKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
|
|
642
637
|
export type ModifierLike = Modifier | Decorator;
|
|
643
638
|
export type AccessibilityModifier = PublicKeyword | PrivateKeyword | ProtectedKeyword;
|
|
644
639
|
export type ParameterPropertyModifier = AccessibilityModifier | ReadonlyKeyword;
|
|
645
|
-
export type ClassMemberModifier = AccessibilityModifier | ReadonlyKeyword | StaticKeyword
|
|
640
|
+
export type ClassMemberModifier = AccessibilityModifier | ReadonlyKeyword | StaticKeyword;
|
|
646
641
|
export type ModifiersArray = NodeArray<Modifier>;
|
|
647
642
|
export enum GeneratedIdentifierFlags {
|
|
648
643
|
None = 0,
|
|
@@ -769,9 +764,6 @@ declare namespace ts {
|
|
|
769
764
|
readonly type?: TypeNode;
|
|
770
765
|
readonly initializer?: Expression;
|
|
771
766
|
}
|
|
772
|
-
export interface AutoAccessorPropertyDeclaration extends PropertyDeclaration {
|
|
773
|
-
_autoAccessorBrand: any;
|
|
774
|
-
}
|
|
775
767
|
export interface ObjectLiteralElement extends NamedDeclaration {
|
|
776
768
|
_objectLiteralBrand: any;
|
|
777
769
|
readonly name?: PropertyName;
|
|
@@ -1348,11 +1340,6 @@ declare namespace ts {
|
|
|
1348
1340
|
readonly type: TypeNode;
|
|
1349
1341
|
readonly expression: UnaryExpression;
|
|
1350
1342
|
}
|
|
1351
|
-
export interface SatisfiesExpression extends Expression {
|
|
1352
|
-
readonly kind: SyntaxKind.SatisfiesExpression;
|
|
1353
|
-
readonly expression: Expression;
|
|
1354
|
-
readonly type: TypeNode;
|
|
1355
|
-
}
|
|
1356
1343
|
export type AssertionExpression = TypeAssertion | AsExpression;
|
|
1357
1344
|
export interface NonNullExpression extends LeftHandSideExpression {
|
|
1358
1345
|
readonly kind: SyntaxKind.NonNullExpression;
|
|
@@ -2329,7 +2316,6 @@ declare namespace ts {
|
|
|
2329
2316
|
getPrivateIdentifierPropertyOfType(leftType: Type, name: string, location: Node): Symbol | undefined;
|
|
2330
2317
|
getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined;
|
|
2331
2318
|
getIndexInfosOfType(type: Type): readonly IndexInfo[];
|
|
2332
|
-
getIndexInfosOfIndexSymbol: (indexSymbol: Symbol) => IndexInfo[];
|
|
2333
2319
|
getSignaturesOfType(type: Type, kind: SignatureKind): readonly Signature[];
|
|
2334
2320
|
getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined;
|
|
2335
2321
|
getBaseTypes(type: InterfaceType): BaseType[];
|
|
@@ -2576,7 +2562,6 @@ declare namespace ts {
|
|
|
2576
2562
|
MethodExcludes = 103359,
|
|
2577
2563
|
GetAccessorExcludes = 46015,
|
|
2578
2564
|
SetAccessorExcludes = 78783,
|
|
2579
|
-
AccessorExcludes = 13247,
|
|
2580
2565
|
TypeParameterExcludes = 526824,
|
|
2581
2566
|
TypeAliasExcludes = 788968,
|
|
2582
2567
|
AliasExcludes = 2097152,
|
|
@@ -2847,7 +2832,7 @@ declare namespace ts {
|
|
|
2847
2832
|
export interface SubstitutionType extends InstantiableType {
|
|
2848
2833
|
objectFlags: ObjectFlags;
|
|
2849
2834
|
baseType: Type;
|
|
2850
|
-
|
|
2835
|
+
substitute: Type;
|
|
2851
2836
|
}
|
|
2852
2837
|
export enum SignatureKind {
|
|
2853
2838
|
Call = 0,
|
|
@@ -3320,8 +3305,6 @@ declare namespace ts {
|
|
|
3320
3305
|
*/
|
|
3321
3306
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
3322
3307
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
3323
|
-
/** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */
|
|
3324
|
-
hasInvalidatedResolutions?(filePath: Path): boolean;
|
|
3325
3308
|
createHash?(data: string): string;
|
|
3326
3309
|
getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
|
|
3327
3310
|
}
|
|
@@ -3404,7 +3387,7 @@ declare namespace ts {
|
|
|
3404
3387
|
createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral;
|
|
3405
3388
|
createBigIntLiteral(value: string | PseudoBigInt): BigIntLiteral;
|
|
3406
3389
|
createStringLiteral(text: string, isSingleQuote?: boolean): StringLiteral;
|
|
3407
|
-
createStringLiteralFromNode(sourceNode: PropertyNameLiteral
|
|
3390
|
+
createStringLiteralFromNode(sourceNode: PropertyNameLiteral, isSingleQuote?: boolean): StringLiteral;
|
|
3408
3391
|
createRegularExpressionLiteral(text: string): RegularExpressionLiteral;
|
|
3409
3392
|
createIdentifier(text: string): Identifier;
|
|
3410
3393
|
/**
|
|
@@ -3429,8 +3412,6 @@ declare namespace ts {
|
|
|
3429
3412
|
/** Create a unique name generated for a node. */
|
|
3430
3413
|
getGeneratedNameForNode(node: Node | undefined, flags?: GeneratedIdentifierFlags): Identifier;
|
|
3431
3414
|
createPrivateIdentifier(text: string): PrivateIdentifier;
|
|
3432
|
-
createUniquePrivateName(text?: string): PrivateIdentifier;
|
|
3433
|
-
getGeneratedPrivateNameForNode(node: Node): PrivateIdentifier;
|
|
3434
3415
|
createToken(token: SyntaxKind.SuperKeyword): SuperExpression;
|
|
3435
3416
|
createToken(token: SyntaxKind.ThisKeyword): ThisExpression;
|
|
3436
3417
|
createToken(token: SyntaxKind.NullKeyword): NullLiteral;
|
|
@@ -3606,8 +3587,6 @@ declare namespace ts {
|
|
|
3606
3587
|
updateNonNullChain(node: NonNullChain, expression: Expression): NonNullChain;
|
|
3607
3588
|
createMetaProperty(keywordToken: MetaProperty["keywordToken"], name: Identifier): MetaProperty;
|
|
3608
3589
|
updateMetaProperty(node: MetaProperty, name: Identifier): MetaProperty;
|
|
3609
|
-
createSatisfiesExpression(expression: Expression, type: TypeNode): SatisfiesExpression;
|
|
3610
|
-
updateSatisfiesExpression(node: SatisfiesExpression, expression: Expression, type: TypeNode): SatisfiesExpression;
|
|
3611
3590
|
createTemplateSpan(expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan;
|
|
3612
3591
|
updateTemplateSpan(node: TemplateSpan, expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan;
|
|
3613
3592
|
createSemicolonClassElement(): SemicolonClassElement;
|
|
@@ -3969,7 +3948,7 @@ declare namespace ts {
|
|
|
3969
3948
|
<T extends Node>(nodes: NodeArray<T>, visitor: Visitor | undefined, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T>;
|
|
3970
3949
|
<T extends Node>(nodes: NodeArray<T> | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T> | undefined;
|
|
3971
3950
|
}
|
|
3972
|
-
export type VisitResult<T extends Node> = T |
|
|
3951
|
+
export type VisitResult<T extends Node> = T | T[] | undefined;
|
|
3973
3952
|
export interface Printer {
|
|
3974
3953
|
/**
|
|
3975
3954
|
* Print a node and its subtree as-is, without any emit transformations.
|
|
@@ -4536,7 +4515,6 @@ declare namespace ts {
|
|
|
4536
4515
|
function isClassElement(node: Node): node is ClassElement;
|
|
4537
4516
|
function isClassLike(node: Node): node is ClassLikeDeclaration;
|
|
4538
4517
|
function isAccessor(node: Node): node is AccessorDeclaration;
|
|
4539
|
-
function isAutoAccessorPropertyDeclaration(node: Node): node is AutoAccessorPropertyDeclaration;
|
|
4540
4518
|
function isModifierLike(node: Node): node is ModifierLike;
|
|
4541
4519
|
function isTypeElement(node: Node): node is TypeElement;
|
|
4542
4520
|
function isClassOrTypeElement(node: Node): node is ClassElement | TypeElement;
|
|
@@ -4738,7 +4716,6 @@ declare namespace ts {
|
|
|
4738
4716
|
function isOmittedExpression(node: Node): node is OmittedExpression;
|
|
4739
4717
|
function isExpressionWithTypeArguments(node: Node): node is ExpressionWithTypeArguments;
|
|
4740
4718
|
function isAsExpression(node: Node): node is AsExpression;
|
|
4741
|
-
function isSatisfiesExpression(node: Node): node is SatisfiesExpression;
|
|
4742
4719
|
function isNonNullExpression(node: Node): node is NonNullExpression;
|
|
4743
4720
|
function isMetaProperty(node: Node): node is MetaProperty;
|
|
4744
4721
|
function isSyntheticExpression(node: Node): node is SyntheticExpression;
|
|
@@ -5444,8 +5421,6 @@ declare namespace ts {
|
|
|
5444
5421
|
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5445
5422
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5446
5423
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5447
|
-
/** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */
|
|
5448
|
-
hasInvalidatedResolutions?(filePath: Path): boolean;
|
|
5449
5424
|
/**
|
|
5450
5425
|
* Returns the module resolution cache used by a provided `resolveModuleNames` implementation so that any non-name module resolution operations (eg, package.json lookup) can reuse it
|
|
5451
5426
|
*/
|
|
@@ -6551,7 +6526,7 @@ declare namespace ts {
|
|
|
6551
6526
|
isGlobalCompletion: boolean;
|
|
6552
6527
|
isMemberCompletion: boolean;
|
|
6553
6528
|
/**
|
|
6554
|
-
* In the absence of `CompletionEntry["replacementSpan"]
|
|
6529
|
+
* In the absence of `CompletionEntry["replacementSpan"], the editor may choose whether to use
|
|
6555
6530
|
* this span or its default one. If `CompletionEntry["replacementSpan"]` is defined, that span
|
|
6556
6531
|
* must be used to commit that completion entry.
|
|
6557
6532
|
*/
|
|
@@ -6764,8 +6739,6 @@ declare namespace ts {
|
|
|
6764
6739
|
* interface Y { foo:number; }
|
|
6765
6740
|
*/
|
|
6766
6741
|
memberVariableElement = "property",
|
|
6767
|
-
/** class X { [public|private]* accessor foo: number; } */
|
|
6768
|
-
memberAccessorVariableElement = "accessor",
|
|
6769
6742
|
/**
|
|
6770
6743
|
* class X { constructor() { } }
|
|
6771
6744
|
* class X { static { } }
|
|
@@ -7045,7 +7018,7 @@ declare namespace ts {
|
|
|
7045
7018
|
(text: string, isSingleQuote?: boolean | undefined, hasExtendedUnicodeEscape?: boolean | undefined): StringLiteral;
|
|
7046
7019
|
};
|
|
7047
7020
|
/** @deprecated Use `factory.createStringLiteralFromNode` or the factory supplied by your transformation context instead. */
|
|
7048
|
-
const createStringLiteralFromNode: (sourceNode:
|
|
7021
|
+
const createStringLiteralFromNode: (sourceNode: PropertyNameLiteral, isSingleQuote?: boolean | undefined) => StringLiteral;
|
|
7049
7022
|
/** @deprecated Use `factory.createRegularExpressionLiteral` or the factory supplied by your transformation context instead. */
|
|
7050
7023
|
const createRegularExpressionLiteral: (text: string) => RegularExpressionLiteral;
|
|
7051
7024
|
/** @deprecated Use `factory.createLoopVariable` or the factory supplied by your transformation context instead. */
|