@typescript-deploys/pr-build 4.5.0-pr-45884-2 → 4.5.0-pr-45974-3
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 +11 -2
- package/lib/de/diagnosticMessages.generated.json +11 -2
- package/lib/es/diagnosticMessages.generated.json +6 -0
- package/lib/fr/diagnosticMessages.generated.json +11 -2
- package/lib/it/diagnosticMessages.generated.json +11 -2
- package/lib/ja/diagnosticMessages.generated.json +11 -2
- package/lib/ko/diagnosticMessages.generated.json +11 -2
- package/lib/lib.es2018.intl.d.ts +2 -2
- package/lib/lib.es5.d.ts +22 -7
- package/lib/pl/diagnosticMessages.generated.json +6 -0
- package/lib/pt-br/diagnosticMessages.generated.json +11 -2
- package/lib/ru/diagnosticMessages.generated.json +6 -0
- package/lib/tr/diagnosticMessages.generated.json +6 -0
- package/lib/tsc.js +4944 -5404
- package/lib/tsserver.js +7750 -8252
- package/lib/tsserverlibrary.d.ts +283 -307
- package/lib/tsserverlibrary.js +7750 -8252
- package/lib/typescript.d.ts +281 -305
- package/lib/typescript.js +7744 -8247
- package/lib/typescriptServices.d.ts +281 -305
- package/lib/typescriptServices.js +7744 -8247
- package/lib/typingsInstaller.js +5772 -6282
- package/lib/zh-cn/diagnosticMessages.generated.json +6 -0
- package/lib/zh-tw/diagnosticMessages.generated.json +6 -0
- package/package.json +2 -2
package/lib/typescript.d.ts
CHANGED
|
@@ -234,228 +234,231 @@ declare namespace ts {
|
|
|
234
234
|
AbstractKeyword = 126,
|
|
235
235
|
AsKeyword = 127,
|
|
236
236
|
AssertsKeyword = 128,
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
237
|
+
AssertKeyword = 129,
|
|
238
|
+
AnyKeyword = 130,
|
|
239
|
+
AsyncKeyword = 131,
|
|
240
|
+
AwaitKeyword = 132,
|
|
241
|
+
BooleanKeyword = 133,
|
|
242
|
+
ConstructorKeyword = 134,
|
|
243
|
+
DeclareKeyword = 135,
|
|
244
|
+
GetKeyword = 136,
|
|
245
|
+
InferKeyword = 137,
|
|
246
|
+
IntrinsicKeyword = 138,
|
|
247
|
+
IsKeyword = 139,
|
|
248
|
+
KeyOfKeyword = 140,
|
|
249
|
+
ModuleKeyword = 141,
|
|
250
|
+
NamespaceKeyword = 142,
|
|
251
|
+
NeverKeyword = 143,
|
|
252
|
+
ReadonlyKeyword = 144,
|
|
253
|
+
RequireKeyword = 145,
|
|
254
|
+
NumberKeyword = 146,
|
|
255
|
+
ObjectKeyword = 147,
|
|
256
|
+
SetKeyword = 148,
|
|
257
|
+
StringKeyword = 149,
|
|
258
|
+
SymbolKeyword = 150,
|
|
259
|
+
TypeKeyword = 151,
|
|
260
|
+
UndefinedKeyword = 152,
|
|
261
|
+
UniqueKeyword = 153,
|
|
262
|
+
UnknownKeyword = 154,
|
|
263
|
+
FromKeyword = 155,
|
|
264
|
+
GlobalKeyword = 156,
|
|
265
|
+
BigIntKeyword = 157,
|
|
266
|
+
OverrideKeyword = 158,
|
|
267
|
+
OfKeyword = 159,
|
|
268
|
+
QualifiedName = 160,
|
|
269
|
+
ComputedPropertyName = 161,
|
|
270
|
+
TypeParameter = 162,
|
|
271
|
+
Parameter = 163,
|
|
272
|
+
Decorator = 164,
|
|
273
|
+
PropertySignature = 165,
|
|
274
|
+
PropertyDeclaration = 166,
|
|
275
|
+
MethodSignature = 167,
|
|
276
|
+
MethodDeclaration = 168,
|
|
277
|
+
ClassStaticBlockDeclaration = 169,
|
|
278
|
+
Constructor = 170,
|
|
279
|
+
GetAccessor = 171,
|
|
280
|
+
SetAccessor = 172,
|
|
281
|
+
CallSignature = 173,
|
|
282
|
+
ConstructSignature = 174,
|
|
283
|
+
IndexSignature = 175,
|
|
284
|
+
TypePredicate = 176,
|
|
285
|
+
TypeReference = 177,
|
|
286
|
+
FunctionType = 178,
|
|
287
|
+
ConstructorType = 179,
|
|
288
|
+
TypeQuery = 180,
|
|
289
|
+
TypeLiteral = 181,
|
|
290
|
+
ArrayType = 182,
|
|
291
|
+
TupleType = 183,
|
|
292
|
+
OptionalType = 184,
|
|
293
|
+
RestType = 185,
|
|
294
|
+
UnionType = 186,
|
|
295
|
+
IntersectionType = 187,
|
|
296
|
+
ConditionalType = 188,
|
|
297
|
+
InferType = 189,
|
|
298
|
+
ParenthesizedType = 190,
|
|
299
|
+
ThisType = 191,
|
|
300
|
+
TypeOperator = 192,
|
|
301
|
+
IndexedAccessType = 193,
|
|
302
|
+
MappedType = 194,
|
|
303
|
+
LiteralType = 195,
|
|
304
|
+
NamedTupleMember = 196,
|
|
305
|
+
TemplateLiteralType = 197,
|
|
306
|
+
TemplateLiteralTypeSpan = 198,
|
|
307
|
+
ImportType = 199,
|
|
308
|
+
ObjectBindingPattern = 200,
|
|
309
|
+
ArrayBindingPattern = 201,
|
|
310
|
+
BindingElement = 202,
|
|
311
|
+
ArrayLiteralExpression = 203,
|
|
312
|
+
ObjectLiteralExpression = 204,
|
|
313
|
+
PropertyAccessExpression = 205,
|
|
314
|
+
ElementAccessExpression = 206,
|
|
315
|
+
CallExpression = 207,
|
|
316
|
+
NewExpression = 208,
|
|
317
|
+
TaggedTemplateExpression = 209,
|
|
318
|
+
TypeAssertionExpression = 210,
|
|
319
|
+
ParenthesizedExpression = 211,
|
|
320
|
+
FunctionExpression = 212,
|
|
321
|
+
ArrowFunction = 213,
|
|
322
|
+
DeleteExpression = 214,
|
|
323
|
+
TypeOfExpression = 215,
|
|
324
|
+
VoidExpression = 216,
|
|
325
|
+
AwaitExpression = 217,
|
|
326
|
+
PrefixUnaryExpression = 218,
|
|
327
|
+
PostfixUnaryExpression = 219,
|
|
328
|
+
BinaryExpression = 220,
|
|
329
|
+
ConditionalExpression = 221,
|
|
330
|
+
TemplateExpression = 222,
|
|
331
|
+
YieldExpression = 223,
|
|
332
|
+
SpreadElement = 224,
|
|
333
|
+
ClassExpression = 225,
|
|
334
|
+
OmittedExpression = 226,
|
|
335
|
+
ExpressionWithTypeArguments = 227,
|
|
336
|
+
AsExpression = 228,
|
|
337
|
+
NonNullExpression = 229,
|
|
338
|
+
MetaProperty = 230,
|
|
339
|
+
SyntheticExpression = 231,
|
|
340
|
+
TemplateSpan = 232,
|
|
341
|
+
SemicolonClassElement = 233,
|
|
342
|
+
Block = 234,
|
|
343
|
+
EmptyStatement = 235,
|
|
344
|
+
VariableStatement = 236,
|
|
345
|
+
ExpressionStatement = 237,
|
|
346
|
+
IfStatement = 238,
|
|
347
|
+
DoStatement = 239,
|
|
348
|
+
WhileStatement = 240,
|
|
349
|
+
ForStatement = 241,
|
|
350
|
+
ForInStatement = 242,
|
|
351
|
+
ForOfStatement = 243,
|
|
352
|
+
ContinueStatement = 244,
|
|
353
|
+
BreakStatement = 245,
|
|
354
|
+
ReturnStatement = 246,
|
|
355
|
+
WithStatement = 247,
|
|
356
|
+
SwitchStatement = 248,
|
|
357
|
+
LabeledStatement = 249,
|
|
358
|
+
ThrowStatement = 250,
|
|
359
|
+
TryStatement = 251,
|
|
360
|
+
DebuggerStatement = 252,
|
|
361
|
+
VariableDeclaration = 253,
|
|
362
|
+
VariableDeclarationList = 254,
|
|
363
|
+
FunctionDeclaration = 255,
|
|
364
|
+
ClassDeclaration = 256,
|
|
365
|
+
InterfaceDeclaration = 257,
|
|
366
|
+
TypeAliasDeclaration = 258,
|
|
367
|
+
EnumDeclaration = 259,
|
|
368
|
+
ModuleDeclaration = 260,
|
|
369
|
+
ModuleBlock = 261,
|
|
370
|
+
CaseBlock = 262,
|
|
371
|
+
NamespaceExportDeclaration = 263,
|
|
372
|
+
ImportEqualsDeclaration = 264,
|
|
373
|
+
ImportDeclaration = 265,
|
|
374
|
+
ImportClause = 266,
|
|
375
|
+
NamespaceImport = 267,
|
|
376
|
+
NamedImports = 268,
|
|
377
|
+
ImportSpecifier = 269,
|
|
378
|
+
ExportAssignment = 270,
|
|
379
|
+
ExportDeclaration = 271,
|
|
380
|
+
NamedExports = 272,
|
|
381
|
+
NamespaceExport = 273,
|
|
382
|
+
ExportSpecifier = 274,
|
|
383
|
+
MissingDeclaration = 275,
|
|
384
|
+
ExternalModuleReference = 276,
|
|
385
|
+
JsxElement = 277,
|
|
386
|
+
JsxSelfClosingElement = 278,
|
|
387
|
+
JsxOpeningElement = 279,
|
|
388
|
+
JsxClosingElement = 280,
|
|
389
|
+
JsxFragment = 281,
|
|
390
|
+
JsxOpeningFragment = 282,
|
|
391
|
+
JsxClosingFragment = 283,
|
|
392
|
+
JsxAttribute = 284,
|
|
393
|
+
JsxAttributes = 285,
|
|
394
|
+
JsxSpreadAttribute = 286,
|
|
395
|
+
JsxExpression = 287,
|
|
396
|
+
CaseClause = 288,
|
|
397
|
+
DefaultClause = 289,
|
|
398
|
+
HeritageClause = 290,
|
|
399
|
+
CatchClause = 291,
|
|
400
|
+
AssertClause = 292,
|
|
401
|
+
AssertEntry = 293,
|
|
402
|
+
PropertyAssignment = 294,
|
|
403
|
+
ShorthandPropertyAssignment = 295,
|
|
404
|
+
SpreadAssignment = 296,
|
|
405
|
+
EnumMember = 297,
|
|
406
|
+
UnparsedPrologue = 298,
|
|
407
|
+
UnparsedPrepend = 299,
|
|
408
|
+
UnparsedText = 300,
|
|
409
|
+
UnparsedInternalText = 301,
|
|
410
|
+
UnparsedSyntheticReference = 302,
|
|
411
|
+
SourceFile = 303,
|
|
412
|
+
Bundle = 304,
|
|
413
|
+
UnparsedSource = 305,
|
|
414
|
+
InputFiles = 306,
|
|
415
|
+
JSDocTypeExpression = 307,
|
|
416
|
+
JSDocNameReference = 308,
|
|
417
|
+
JSDocMemberName = 309,
|
|
418
|
+
JSDocAllType = 310,
|
|
419
|
+
JSDocUnknownType = 311,
|
|
420
|
+
JSDocNullableType = 312,
|
|
421
|
+
JSDocNonNullableType = 313,
|
|
422
|
+
JSDocOptionalType = 314,
|
|
423
|
+
JSDocFunctionType = 315,
|
|
424
|
+
JSDocVariadicType = 316,
|
|
425
|
+
JSDocNamepathType = 317,
|
|
426
|
+
JSDocComment = 318,
|
|
427
|
+
JSDocText = 319,
|
|
428
|
+
JSDocTypeLiteral = 320,
|
|
429
|
+
JSDocSignature = 321,
|
|
430
|
+
JSDocLink = 322,
|
|
431
|
+
JSDocLinkCode = 323,
|
|
432
|
+
JSDocLinkPlain = 324,
|
|
433
|
+
JSDocTag = 325,
|
|
434
|
+
JSDocAugmentsTag = 326,
|
|
435
|
+
JSDocImplementsTag = 327,
|
|
436
|
+
JSDocAuthorTag = 328,
|
|
437
|
+
JSDocDeprecatedTag = 329,
|
|
438
|
+
JSDocClassTag = 330,
|
|
439
|
+
JSDocPublicTag = 331,
|
|
440
|
+
JSDocPrivateTag = 332,
|
|
441
|
+
JSDocProtectedTag = 333,
|
|
442
|
+
JSDocReadonlyTag = 334,
|
|
443
|
+
JSDocOverrideTag = 335,
|
|
444
|
+
JSDocCallbackTag = 336,
|
|
445
|
+
JSDocEnumTag = 337,
|
|
446
|
+
JSDocParameterTag = 338,
|
|
447
|
+
JSDocReturnTag = 339,
|
|
448
|
+
JSDocThisTag = 340,
|
|
449
|
+
JSDocTypeTag = 341,
|
|
450
|
+
JSDocTemplateTag = 342,
|
|
451
|
+
JSDocTypedefTag = 343,
|
|
452
|
+
JSDocSeeTag = 344,
|
|
453
|
+
JSDocPropertyTag = 345,
|
|
454
|
+
SyntaxList = 346,
|
|
455
|
+
NotEmittedStatement = 347,
|
|
456
|
+
PartiallyEmittedExpression = 348,
|
|
457
|
+
CommaListExpression = 349,
|
|
458
|
+
MergeDeclarationMarker = 350,
|
|
459
|
+
EndOfDeclarationMarker = 351,
|
|
460
|
+
SyntheticReferenceExpression = 352,
|
|
461
|
+
Count = 353,
|
|
459
462
|
FirstAssignment = 63,
|
|
460
463
|
LastAssignment = 78,
|
|
461
464
|
FirstCompoundAssignment = 64,
|
|
@@ -463,15 +466,15 @@ declare namespace ts {
|
|
|
463
466
|
FirstReservedWord = 81,
|
|
464
467
|
LastReservedWord = 116,
|
|
465
468
|
FirstKeyword = 81,
|
|
466
|
-
LastKeyword =
|
|
469
|
+
LastKeyword = 159,
|
|
467
470
|
FirstFutureReservedWord = 117,
|
|
468
471
|
LastFutureReservedWord = 125,
|
|
469
|
-
FirstTypeNode =
|
|
470
|
-
LastTypeNode =
|
|
472
|
+
FirstTypeNode = 176,
|
|
473
|
+
LastTypeNode = 199,
|
|
471
474
|
FirstPunctuation = 18,
|
|
472
475
|
LastPunctuation = 78,
|
|
473
476
|
FirstToken = 0,
|
|
474
|
-
LastToken =
|
|
477
|
+
LastToken = 159,
|
|
475
478
|
FirstTriviaToken = 2,
|
|
476
479
|
LastTriviaToken = 7,
|
|
477
480
|
FirstLiteralToken = 8,
|
|
@@ -480,19 +483,19 @@ declare namespace ts {
|
|
|
480
483
|
LastTemplateToken = 17,
|
|
481
484
|
FirstBinaryOperator = 29,
|
|
482
485
|
LastBinaryOperator = 78,
|
|
483
|
-
FirstStatement =
|
|
484
|
-
LastStatement =
|
|
485
|
-
FirstNode =
|
|
486
|
-
FirstJSDocNode =
|
|
487
|
-
LastJSDocNode =
|
|
488
|
-
FirstJSDocTagNode =
|
|
489
|
-
LastJSDocTagNode =
|
|
486
|
+
FirstStatement = 236,
|
|
487
|
+
LastStatement = 252,
|
|
488
|
+
FirstNode = 160,
|
|
489
|
+
FirstJSDocNode = 307,
|
|
490
|
+
LastJSDocNode = 345,
|
|
491
|
+
FirstJSDocTagNode = 325,
|
|
492
|
+
LastJSDocTagNode = 345,
|
|
490
493
|
}
|
|
491
494
|
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
492
495
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
493
496
|
export type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
494
497
|
export type PunctuationSyntaxKind = SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.DotToken | SyntaxKind.DotDotDotToken | SyntaxKind.SemicolonToken | SyntaxKind.CommaToken | SyntaxKind.QuestionDotToken | SyntaxKind.LessThanToken | SyntaxKind.LessThanSlashToken | SyntaxKind.GreaterThanToken | SyntaxKind.LessThanEqualsToken | SyntaxKind.GreaterThanEqualsToken | SyntaxKind.EqualsEqualsToken | SyntaxKind.ExclamationEqualsToken | SyntaxKind.EqualsEqualsEqualsToken | SyntaxKind.ExclamationEqualsEqualsToken | SyntaxKind.EqualsGreaterThanToken | SyntaxKind.PlusToken | SyntaxKind.MinusToken | SyntaxKind.AsteriskToken | SyntaxKind.AsteriskAsteriskToken | SyntaxKind.SlashToken | SyntaxKind.PercentToken | SyntaxKind.PlusPlusToken | SyntaxKind.MinusMinusToken | SyntaxKind.LessThanLessThanToken | SyntaxKind.GreaterThanGreaterThanToken | SyntaxKind.GreaterThanGreaterThanGreaterThanToken | SyntaxKind.AmpersandToken | SyntaxKind.BarToken | SyntaxKind.CaretToken | SyntaxKind.ExclamationToken | SyntaxKind.TildeToken | SyntaxKind.AmpersandAmpersandToken | SyntaxKind.BarBarToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionToken | SyntaxKind.ColonToken | SyntaxKind.AtToken | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.EqualsToken | SyntaxKind.PlusEqualsToken | SyntaxKind.MinusEqualsToken | SyntaxKind.AsteriskEqualsToken | SyntaxKind.AsteriskAsteriskEqualsToken | SyntaxKind.SlashEqualsToken | SyntaxKind.PercentEqualsToken | SyntaxKind.LessThanLessThanEqualsToken | SyntaxKind.GreaterThanGreaterThanEqualsToken | SyntaxKind.GreaterThanGreaterThanGreaterThanEqualsToken | SyntaxKind.AmpersandEqualsToken | SyntaxKind.BarEqualsToken | SyntaxKind.CaretEqualsToken;
|
|
495
|
-
export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
498
|
+
export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
496
499
|
export type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
|
497
500
|
export type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
|
|
498
501
|
export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
|
@@ -597,6 +600,7 @@ declare namespace ts {
|
|
|
597
600
|
export interface KeywordToken<TKind extends KeywordSyntaxKind> extends Token<TKind> {
|
|
598
601
|
}
|
|
599
602
|
export type AssertsKeyword = KeywordToken<SyntaxKind.AssertsKeyword>;
|
|
603
|
+
export type AssertKeyword = KeywordToken<SyntaxKind.AssertKeyword>;
|
|
600
604
|
export type AwaitKeyword = KeywordToken<SyntaxKind.AwaitKeyword>;
|
|
601
605
|
/** @deprecated Use `AwaitKeyword` instead. */
|
|
602
606
|
export type AwaitKeywordToken = AwaitKeyword;
|
|
@@ -1630,6 +1634,7 @@ declare namespace ts {
|
|
|
1630
1634
|
readonly importClause?: ImportClause;
|
|
1631
1635
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1632
1636
|
readonly moduleSpecifier: Expression;
|
|
1637
|
+
readonly assertClause?: AssertClause;
|
|
1633
1638
|
}
|
|
1634
1639
|
export type NamedImportBindings = NamespaceImport | NamedImports;
|
|
1635
1640
|
export type NamedExportBindings = NamespaceExport | NamedExports;
|
|
@@ -1640,6 +1645,19 @@ declare namespace ts {
|
|
|
1640
1645
|
readonly name?: Identifier;
|
|
1641
1646
|
readonly namedBindings?: NamedImportBindings;
|
|
1642
1647
|
}
|
|
1648
|
+
export type AssertionKey = Identifier | StringLiteral;
|
|
1649
|
+
export interface AssertEntry extends Node {
|
|
1650
|
+
readonly kind: SyntaxKind.AssertEntry;
|
|
1651
|
+
readonly parent: AssertClause;
|
|
1652
|
+
readonly name: AssertionKey;
|
|
1653
|
+
readonly value: StringLiteral;
|
|
1654
|
+
}
|
|
1655
|
+
export interface AssertClause extends Node {
|
|
1656
|
+
readonly kind: SyntaxKind.AssertClause;
|
|
1657
|
+
readonly parent: ImportDeclaration | ExportDeclaration;
|
|
1658
|
+
readonly elements: NodeArray<AssertEntry>;
|
|
1659
|
+
readonly multiLine?: boolean;
|
|
1660
|
+
}
|
|
1643
1661
|
export interface NamespaceImport extends NamedDeclaration {
|
|
1644
1662
|
readonly kind: SyntaxKind.NamespaceImport;
|
|
1645
1663
|
readonly parent: ImportClause;
|
|
@@ -1662,6 +1680,7 @@ declare namespace ts {
|
|
|
1662
1680
|
readonly exportClause?: NamedExportBindings;
|
|
1663
1681
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1664
1682
|
readonly moduleSpecifier?: Expression;
|
|
1683
|
+
readonly assertClause?: AssertClause;
|
|
1665
1684
|
}
|
|
1666
1685
|
export interface NamedImports extends Node {
|
|
1667
1686
|
readonly kind: SyntaxKind.NamedImports;
|
|
@@ -2011,18 +2030,6 @@ declare namespace ts {
|
|
|
2011
2030
|
*/
|
|
2012
2031
|
hasNoDefaultLib: boolean;
|
|
2013
2032
|
languageVersion: ScriptTarget;
|
|
2014
|
-
/**
|
|
2015
|
-
* When `module` is `Node12` or `NodeNext`, this field controls whether the
|
|
2016
|
-
* source file in question is an ESNext-output-format file, or a CommonJS-output-format
|
|
2017
|
-
* module. This is derived by the module resolver as it looks up the file, since
|
|
2018
|
-
* it is derived from either the file extension of the module, or the containing
|
|
2019
|
-
* `package.json` context, and affects both checking and emit.
|
|
2020
|
-
*
|
|
2021
|
-
* It is _public_ so that (pre)transformers can set this field,
|
|
2022
|
-
* since it switches the builtin `node` module transform. Generally speaking, if unset,
|
|
2023
|
-
* the field is treated as though it is `ModuleKind.CommonJS`.
|
|
2024
|
-
*/
|
|
2025
|
-
impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
|
|
2026
2033
|
}
|
|
2027
2034
|
export interface Bundle extends Node {
|
|
2028
2035
|
readonly kind: SyntaxKind.Bundle;
|
|
@@ -2734,8 +2741,8 @@ declare namespace ts {
|
|
|
2734
2741
|
root: ConditionalRoot;
|
|
2735
2742
|
checkType: Type;
|
|
2736
2743
|
extendsType: Type;
|
|
2737
|
-
resolvedTrueType
|
|
2738
|
-
resolvedFalseType
|
|
2744
|
+
resolvedTrueType?: Type;
|
|
2745
|
+
resolvedFalseType?: Type;
|
|
2739
2746
|
}
|
|
2740
2747
|
export interface TemplateLiteralType extends InstantiableType {
|
|
2741
2748
|
texts: readonly string[];
|
|
@@ -2840,9 +2847,7 @@ declare namespace ts {
|
|
|
2840
2847
|
}
|
|
2841
2848
|
export enum ModuleResolutionKind {
|
|
2842
2849
|
Classic = 1,
|
|
2843
|
-
NodeJs = 2
|
|
2844
|
-
Node12 = 3,
|
|
2845
|
-
NodeNext = 99
|
|
2850
|
+
NodeJs = 2
|
|
2846
2851
|
}
|
|
2847
2852
|
export interface PluginImport {
|
|
2848
2853
|
name: string;
|
|
@@ -3004,9 +3009,7 @@ declare namespace ts {
|
|
|
3004
3009
|
System = 4,
|
|
3005
3010
|
ES2015 = 5,
|
|
3006
3011
|
ES2020 = 6,
|
|
3007
|
-
ESNext = 99
|
|
3008
|
-
Node12 = 100,
|
|
3009
|
-
NodeNext = 199
|
|
3012
|
+
ESNext = 99
|
|
3010
3013
|
}
|
|
3011
3014
|
export enum JsxEmit {
|
|
3012
3015
|
None = 0,
|
|
@@ -3152,13 +3155,7 @@ declare namespace ts {
|
|
|
3152
3155
|
Js = ".js",
|
|
3153
3156
|
Jsx = ".jsx",
|
|
3154
3157
|
Json = ".json",
|
|
3155
|
-
TsBuildInfo = ".tsbuildinfo"
|
|
3156
|
-
Mjs = ".mjs",
|
|
3157
|
-
Mts = ".mts",
|
|
3158
|
-
Dmts = ".d.mts",
|
|
3159
|
-
Cjs = ".cjs",
|
|
3160
|
-
Cts = ".cts",
|
|
3161
|
-
Dcts = ".d.cts"
|
|
3158
|
+
TsBuildInfo = ".tsbuildinfo"
|
|
3162
3159
|
}
|
|
3163
3160
|
export interface ResolvedModuleWithFailedLookupLocations {
|
|
3164
3161
|
readonly resolvedModule: ResolvedModuleFull | undefined;
|
|
@@ -3186,11 +3183,7 @@ declare namespace ts {
|
|
|
3186
3183
|
useCaseSensitiveFileNames(): boolean;
|
|
3187
3184
|
getNewLine(): string;
|
|
3188
3185
|
readDirectory?(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): string[];
|
|
3189
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions
|
|
3190
|
-
/**
|
|
3191
|
-
* 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
|
|
3192
|
-
*/
|
|
3193
|
-
getModuleResolutionCache?(): ModuleResolutionCache | undefined;
|
|
3186
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[];
|
|
3194
3187
|
/**
|
|
3195
3188
|
* This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files
|
|
3196
3189
|
*/
|
|
@@ -3545,10 +3538,14 @@ declare namespace ts {
|
|
|
3545
3538
|
updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
|
|
3546
3539
|
createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3547
3540
|
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3548
|
-
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration;
|
|
3549
|
-
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration;
|
|
3541
|
+
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
3542
|
+
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
3550
3543
|
createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3551
3544
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3545
|
+
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3546
|
+
updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3547
|
+
createAssertEntry(name: AssertionKey, value: StringLiteral): AssertEntry;
|
|
3548
|
+
updateAssertEntry(node: AssertEntry, name: AssertionKey, value: StringLiteral): AssertEntry;
|
|
3552
3549
|
createNamespaceImport(name: Identifier): NamespaceImport;
|
|
3553
3550
|
updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport;
|
|
3554
3551
|
createNamespaceExport(name: Identifier): NamespaceExport;
|
|
@@ -3559,8 +3556,8 @@ declare namespace ts {
|
|
|
3559
3556
|
updateImportSpecifier(node: ImportSpecifier, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3560
3557
|
createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
3561
3558
|
updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
3562
|
-
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression): ExportDeclaration;
|
|
3563
|
-
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined): ExportDeclaration;
|
|
3559
|
+
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
3560
|
+
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
3564
3561
|
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
|
|
3565
3562
|
updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
|
|
3566
3563
|
createExportSpecifier(propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
@@ -3977,6 +3974,7 @@ declare namespace ts {
|
|
|
3977
3974
|
ObjectBindingPatternElements = 525136,
|
|
3978
3975
|
ArrayBindingPatternElements = 524880,
|
|
3979
3976
|
ObjectLiteralExpressionProperties = 526226,
|
|
3977
|
+
ImportClauseEntries = 526226,
|
|
3980
3978
|
ArrayLiteralExpressionElements = 8914,
|
|
3981
3979
|
CommaListElements = 528,
|
|
3982
3980
|
CallExpressionArguments = 2576,
|
|
@@ -4371,6 +4369,7 @@ declare namespace ts {
|
|
|
4371
4369
|
function isTemplateMiddleOrTemplateTail(node: Node): node is TemplateMiddle | TemplateTail;
|
|
4372
4370
|
function isImportOrExportSpecifier(node: Node): node is ImportSpecifier | ExportSpecifier;
|
|
4373
4371
|
function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
|
|
4372
|
+
function isAssertionKey(node: Node): node is AssertionKey;
|
|
4374
4373
|
function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
|
|
4375
4374
|
function isModifier(node: Node): node is Modifier;
|
|
4376
4375
|
function isEntityName(node: Node): node is EntityName;
|
|
@@ -4618,6 +4617,8 @@ declare namespace ts {
|
|
|
4618
4617
|
function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration;
|
|
4619
4618
|
function isImportDeclaration(node: Node): node is ImportDeclaration;
|
|
4620
4619
|
function isImportClause(node: Node): node is ImportClause;
|
|
4620
|
+
function isAssertClause(node: Node): node is AssertClause;
|
|
4621
|
+
function isAssertEntry(node: Node): node is AssertEntry;
|
|
4621
4622
|
function isNamespaceImport(node: Node): node is NamespaceImport;
|
|
4622
4623
|
function isNamespaceExport(node: Node): node is NamespaceExport;
|
|
4623
4624
|
function isNamedImports(node: Node): node is NamedImports;
|
|
@@ -4828,20 +4829,12 @@ declare namespace ts {
|
|
|
4828
4829
|
export function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
|
|
4829
4830
|
export interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, PackageJsonInfoCache {
|
|
4830
4831
|
}
|
|
4831
|
-
export interface ModeAwareCache<T> {
|
|
4832
|
-
get(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): T | undefined;
|
|
4833
|
-
set(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined, value: T): this;
|
|
4834
|
-
delete(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): this;
|
|
4835
|
-
has(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): boolean;
|
|
4836
|
-
forEach(cb: (elem: T, key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined) => void): void;
|
|
4837
|
-
size(): number;
|
|
4838
|
-
}
|
|
4839
4832
|
/**
|
|
4840
4833
|
* Cached resolutions per containing directory.
|
|
4841
4834
|
* This assumes that any module id will have the same resolution for sibling files located in the same folder.
|
|
4842
4835
|
*/
|
|
4843
4836
|
export interface PerDirectoryResolutionCache<T> {
|
|
4844
|
-
getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference):
|
|
4837
|
+
getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): Map<T>;
|
|
4845
4838
|
clear(): void;
|
|
4846
4839
|
/**
|
|
4847
4840
|
* Updates with the current compilerOptions the cache will operate with.
|
|
@@ -4857,7 +4850,7 @@ declare namespace ts {
|
|
|
4857
4850
|
* We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive.
|
|
4858
4851
|
*/
|
|
4859
4852
|
export interface NonRelativeModuleNameResolutionCache extends PackageJsonInfoCache {
|
|
4860
|
-
getOrCreateCacheForModuleName(nonRelativeModuleName: string,
|
|
4853
|
+
getOrCreateCacheForModuleName(nonRelativeModuleName: string, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
|
|
4861
4854
|
}
|
|
4862
4855
|
export interface PackageJsonInfoCache {
|
|
4863
4856
|
clear(): void;
|
|
@@ -4868,8 +4861,8 @@ declare namespace ts {
|
|
|
4868
4861
|
}
|
|
4869
4862
|
export function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
|
|
4870
4863
|
export function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
|
|
4871
|
-
export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache
|
|
4872
|
-
export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference
|
|
4864
|
+
export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
4865
|
+
export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
4873
4866
|
export function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
4874
4867
|
export function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
4875
4868
|
export {};
|
|
@@ -4980,17 +4973,6 @@ declare namespace ts {
|
|
|
4980
4973
|
export function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
|
|
4981
4974
|
export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
|
|
4982
4975
|
export function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
4983
|
-
/**
|
|
4984
|
-
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
4985
|
-
* `options` parameter.
|
|
4986
|
-
*
|
|
4987
|
-
* @param fileName The normalized absolute path to check the format of (it need not exist on disk)
|
|
4988
|
-
* @param [packageJsonInfoCache] A cache for package file lookups - it's best to have a cache when this function is called often
|
|
4989
|
-
* @param host The ModuleResolutionHost which can perform the filesystem lookups for package json data
|
|
4990
|
-
* @param options The compiler options to perform the analysis under - relevant options are `moduleResolution` and `traceResolution`
|
|
4991
|
-
* @returns `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format
|
|
4992
|
-
*/
|
|
4993
|
-
export function getImpliedNodeFormatForFile(fileName: Path, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ModuleKind.ESNext | ModuleKind.CommonJS | undefined;
|
|
4994
4976
|
/**
|
|
4995
4977
|
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
|
|
4996
4978
|
* that represent a compilation unit.
|
|
@@ -5235,7 +5217,7 @@ declare namespace ts {
|
|
|
5235
5217
|
/** If provided is used to get the environment variable */
|
|
5236
5218
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
5237
5219
|
/** If provided, used to resolve the module names, otherwise typescript's default module resolution */
|
|
5238
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions
|
|
5220
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[];
|
|
5239
5221
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5240
5222
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5241
5223
|
}
|
|
@@ -5625,8 +5607,8 @@ declare namespace ts {
|
|
|
5625
5607
|
realpath?(path: string): string;
|
|
5626
5608
|
fileExists?(path: string): boolean;
|
|
5627
5609
|
getTypeRootsVersion?(): number;
|
|
5628
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions
|
|
5629
|
-
getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string
|
|
5610
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[];
|
|
5611
|
+
getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
5630
5612
|
resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5631
5613
|
getDirectories?(directoryName: string): string[];
|
|
5632
5614
|
/**
|
|
@@ -6574,13 +6556,7 @@ declare namespace ts {
|
|
|
6574
6556
|
tsxModifier = ".tsx",
|
|
6575
6557
|
jsModifier = ".js",
|
|
6576
6558
|
jsxModifier = ".jsx",
|
|
6577
|
-
jsonModifier = ".json"
|
|
6578
|
-
dmtsModifier = ".d.mts",
|
|
6579
|
-
mtsModifier = ".mts",
|
|
6580
|
-
mjsModifier = ".mjs",
|
|
6581
|
-
dctsModifier = ".d.cts",
|
|
6582
|
-
ctsModifier = ".cts",
|
|
6583
|
-
cjsModifier = ".cjs"
|
|
6559
|
+
jsonModifier = ".json"
|
|
6584
6560
|
}
|
|
6585
6561
|
enum ClassificationTypeNames {
|
|
6586
6562
|
comment = "comment",
|
|
@@ -7212,9 +7188,9 @@ declare namespace ts {
|
|
|
7212
7188
|
/** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
7213
7189
|
const updateImportEqualsDeclaration: (node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference) => ImportEqualsDeclaration;
|
|
7214
7190
|
/** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7215
|
-
const createImportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression) => ImportDeclaration;
|
|
7191
|
+
const createImportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined) => ImportDeclaration;
|
|
7216
7192
|
/** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7217
|
-
const updateImportDeclaration: (node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression) => ImportDeclaration;
|
|
7193
|
+
const updateImportDeclaration: (node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined) => ImportDeclaration;
|
|
7218
7194
|
/** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
7219
7195
|
const createNamespaceImport: (name: Identifier) => NamespaceImport;
|
|
7220
7196
|
/** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */
|