@schematics/angular 13.1.0 → 13.2.0-next.1
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/package.json +3 -3
- package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +6 -2
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +401 -285
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +12487 -9225
- package/utility/latest-versions.js +1 -1
|
@@ -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.5";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -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;
|
|
@@ -666,7 +670,7 @@ declare namespace ts {
|
|
|
666
670
|
readonly parent: Declaration;
|
|
667
671
|
readonly expression: Expression;
|
|
668
672
|
}
|
|
669
|
-
export interface PrivateIdentifier extends
|
|
673
|
+
export interface PrivateIdentifier extends PrimaryExpression {
|
|
670
674
|
readonly kind: SyntaxKind.PrivateIdentifier;
|
|
671
675
|
readonly escapedText: __String;
|
|
672
676
|
}
|
|
@@ -969,6 +973,8 @@ declare namespace ts {
|
|
|
969
973
|
readonly nameType?: TypeNode;
|
|
970
974
|
readonly questionToken?: QuestionToken | PlusToken | MinusToken;
|
|
971
975
|
readonly type?: TypeNode;
|
|
976
|
+
/** Used only to produce grammar errors */
|
|
977
|
+
readonly members?: NodeArray<TypeElement>;
|
|
972
978
|
}
|
|
973
979
|
export interface LiteralTypeNode extends TypeNode {
|
|
974
980
|
readonly kind: SyntaxKind.LiteralType;
|
|
@@ -1381,13 +1387,13 @@ declare namespace ts {
|
|
|
1381
1387
|
}
|
|
1382
1388
|
export interface JsxExpression extends Expression {
|
|
1383
1389
|
readonly kind: SyntaxKind.JsxExpression;
|
|
1384
|
-
readonly parent: JsxElement | JsxAttributeLike;
|
|
1390
|
+
readonly parent: JsxElement | JsxFragment | JsxAttributeLike;
|
|
1385
1391
|
readonly dotDotDotToken?: Token<SyntaxKind.DotDotDotToken>;
|
|
1386
1392
|
readonly expression?: Expression;
|
|
1387
1393
|
}
|
|
1388
1394
|
export interface JsxText extends LiteralLikeNode {
|
|
1389
1395
|
readonly kind: SyntaxKind.JsxText;
|
|
1390
|
-
readonly parent: JsxElement;
|
|
1396
|
+
readonly parent: JsxElement | JsxFragment;
|
|
1391
1397
|
readonly containsOnlyTriviaWhiteSpaces: boolean;
|
|
1392
1398
|
}
|
|
1393
1399
|
export type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
|
|
@@ -1630,6 +1636,7 @@ declare namespace ts {
|
|
|
1630
1636
|
readonly importClause?: ImportClause;
|
|
1631
1637
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1632
1638
|
readonly moduleSpecifier: Expression;
|
|
1639
|
+
readonly assertClause?: AssertClause;
|
|
1633
1640
|
}
|
|
1634
1641
|
export type NamedImportBindings = NamespaceImport | NamedImports;
|
|
1635
1642
|
export type NamedExportBindings = NamespaceExport | NamedExports;
|
|
@@ -1640,6 +1647,19 @@ declare namespace ts {
|
|
|
1640
1647
|
readonly name?: Identifier;
|
|
1641
1648
|
readonly namedBindings?: NamedImportBindings;
|
|
1642
1649
|
}
|
|
1650
|
+
export type AssertionKey = Identifier | StringLiteral;
|
|
1651
|
+
export interface AssertEntry extends Node {
|
|
1652
|
+
readonly kind: SyntaxKind.AssertEntry;
|
|
1653
|
+
readonly parent: AssertClause;
|
|
1654
|
+
readonly name: AssertionKey;
|
|
1655
|
+
readonly value: StringLiteral;
|
|
1656
|
+
}
|
|
1657
|
+
export interface AssertClause extends Node {
|
|
1658
|
+
readonly kind: SyntaxKind.AssertClause;
|
|
1659
|
+
readonly parent: ImportDeclaration | ExportDeclaration;
|
|
1660
|
+
readonly elements: NodeArray<AssertEntry>;
|
|
1661
|
+
readonly multiLine?: boolean;
|
|
1662
|
+
}
|
|
1643
1663
|
export interface NamespaceImport extends NamedDeclaration {
|
|
1644
1664
|
readonly kind: SyntaxKind.NamespaceImport;
|
|
1645
1665
|
readonly parent: ImportClause;
|
|
@@ -1662,6 +1682,7 @@ declare namespace ts {
|
|
|
1662
1682
|
readonly exportClause?: NamedExportBindings;
|
|
1663
1683
|
/** If this is not a StringLiteral it will be a grammar error. */
|
|
1664
1684
|
readonly moduleSpecifier?: Expression;
|
|
1685
|
+
readonly assertClause?: AssertClause;
|
|
1665
1686
|
}
|
|
1666
1687
|
export interface NamedImports extends Node {
|
|
1667
1688
|
readonly kind: SyntaxKind.NamedImports;
|
|
@@ -1679,15 +1700,39 @@ declare namespace ts {
|
|
|
1679
1700
|
readonly parent: NamedImports;
|
|
1680
1701
|
readonly propertyName?: Identifier;
|
|
1681
1702
|
readonly name: Identifier;
|
|
1703
|
+
readonly isTypeOnly: boolean;
|
|
1682
1704
|
}
|
|
1683
1705
|
export interface ExportSpecifier extends NamedDeclaration {
|
|
1684
1706
|
readonly kind: SyntaxKind.ExportSpecifier;
|
|
1685
1707
|
readonly parent: NamedExports;
|
|
1708
|
+
readonly isTypeOnly: boolean;
|
|
1686
1709
|
readonly propertyName?: Identifier;
|
|
1687
1710
|
readonly name: Identifier;
|
|
1688
1711
|
}
|
|
1689
1712
|
export type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier;
|
|
1690
1713
|
export type TypeOnlyCompatibleAliasDeclaration = ImportClause | ImportEqualsDeclaration | NamespaceImport | ImportOrExportSpecifier;
|
|
1714
|
+
export type TypeOnlyAliasDeclaration = ImportClause & {
|
|
1715
|
+
readonly isTypeOnly: true;
|
|
1716
|
+
readonly name: Identifier;
|
|
1717
|
+
} | ImportEqualsDeclaration & {
|
|
1718
|
+
readonly isTypeOnly: true;
|
|
1719
|
+
} | NamespaceImport & {
|
|
1720
|
+
readonly parent: ImportClause & {
|
|
1721
|
+
readonly isTypeOnly: true;
|
|
1722
|
+
};
|
|
1723
|
+
} | ImportSpecifier & {
|
|
1724
|
+
readonly parent: NamedImports & {
|
|
1725
|
+
readonly parent: ImportClause & {
|
|
1726
|
+
readonly isTypeOnly: true;
|
|
1727
|
+
};
|
|
1728
|
+
};
|
|
1729
|
+
} | ExportSpecifier & {
|
|
1730
|
+
readonly parent: NamedExports & {
|
|
1731
|
+
readonly parent: ExportDeclaration & {
|
|
1732
|
+
readonly isTypeOnly: true;
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1691
1736
|
/**
|
|
1692
1737
|
* This is either an `export =` or an `export default` declaration.
|
|
1693
1738
|
* Unless `isExportEquals` is set, this node was parsed as an `export default`.
|
|
@@ -1925,7 +1970,7 @@ declare namespace ts {
|
|
|
1925
1970
|
id?: number;
|
|
1926
1971
|
}
|
|
1927
1972
|
export interface FlowStart extends FlowNodeBase {
|
|
1928
|
-
node?: FunctionExpression | ArrowFunction | MethodDeclaration;
|
|
1973
|
+
node?: FunctionExpression | ArrowFunction | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration;
|
|
1929
1974
|
}
|
|
1930
1975
|
export interface FlowLabel extends FlowNodeBase {
|
|
1931
1976
|
antecedents: FlowNode[] | undefined;
|
|
@@ -1989,6 +2034,18 @@ declare namespace ts {
|
|
|
1989
2034
|
*/
|
|
1990
2035
|
hasNoDefaultLib: boolean;
|
|
1991
2036
|
languageVersion: ScriptTarget;
|
|
2037
|
+
/**
|
|
2038
|
+
* When `module` is `Node12` or `NodeNext`, this field controls whether the
|
|
2039
|
+
* source file in question is an ESNext-output-format file, or a CommonJS-output-format
|
|
2040
|
+
* module. This is derived by the module resolver as it looks up the file, since
|
|
2041
|
+
* it is derived from either the file extension of the module, or the containing
|
|
2042
|
+
* `package.json` context, and affects both checking and emit.
|
|
2043
|
+
*
|
|
2044
|
+
* It is _public_ so that (pre)transformers can set this field,
|
|
2045
|
+
* since it switches the builtin `node` module transform. Generally speaking, if unset,
|
|
2046
|
+
* the field is treated as though it is `ModuleKind.CommonJS`.
|
|
2047
|
+
*/
|
|
2048
|
+
impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
|
|
1992
2049
|
}
|
|
1993
2050
|
export interface Bundle extends Node {
|
|
1994
2051
|
readonly kind: SyntaxKind.Bundle;
|
|
@@ -2282,6 +2339,7 @@ declare namespace ts {
|
|
|
2282
2339
|
getApparentType(type: Type): Type;
|
|
2283
2340
|
getBaseConstraintOfType(type: Type): Type | undefined;
|
|
2284
2341
|
getDefaultFromTypeParameter(type: Type): Type | undefined;
|
|
2342
|
+
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
|
|
2285
2343
|
/**
|
|
2286
2344
|
* Depending on the operation performed, it may be appropriate to throw away the checker
|
|
2287
2345
|
* if the cancellation token is triggered. Typically, if it is used for error checking
|
|
@@ -2699,8 +2757,8 @@ declare namespace ts {
|
|
|
2699
2757
|
root: ConditionalRoot;
|
|
2700
2758
|
checkType: Type;
|
|
2701
2759
|
extendsType: Type;
|
|
2702
|
-
resolvedTrueType
|
|
2703
|
-
resolvedFalseType
|
|
2760
|
+
resolvedTrueType?: Type;
|
|
2761
|
+
resolvedFalseType?: Type;
|
|
2704
2762
|
}
|
|
2705
2763
|
export interface TemplateLiteralType extends InstantiableType {
|
|
2706
2764
|
texts: readonly string[];
|
|
@@ -2805,7 +2863,9 @@ declare namespace ts {
|
|
|
2805
2863
|
}
|
|
2806
2864
|
export enum ModuleResolutionKind {
|
|
2807
2865
|
Classic = 1,
|
|
2808
|
-
NodeJs = 2
|
|
2866
|
+
NodeJs = 2,
|
|
2867
|
+
Node12 = 3,
|
|
2868
|
+
NodeNext = 99
|
|
2809
2869
|
}
|
|
2810
2870
|
export interface PluginImport {
|
|
2811
2871
|
name: string;
|
|
@@ -2903,6 +2963,7 @@ declare namespace ts {
|
|
|
2903
2963
|
preserveConstEnums?: boolean;
|
|
2904
2964
|
noImplicitOverride?: boolean;
|
|
2905
2965
|
preserveSymlinks?: boolean;
|
|
2966
|
+
preserveValueImports?: boolean;
|
|
2906
2967
|
project?: string;
|
|
2907
2968
|
reactNamespace?: string;
|
|
2908
2969
|
jsxFactory?: string;
|
|
@@ -2966,7 +3027,10 @@ declare namespace ts {
|
|
|
2966
3027
|
System = 4,
|
|
2967
3028
|
ES2015 = 5,
|
|
2968
3029
|
ES2020 = 6,
|
|
2969
|
-
|
|
3030
|
+
ES2022 = 7,
|
|
3031
|
+
ESNext = 99,
|
|
3032
|
+
Node12 = 100,
|
|
3033
|
+
NodeNext = 199
|
|
2970
3034
|
}
|
|
2971
3035
|
export enum JsxEmit {
|
|
2972
3036
|
None = 0,
|
|
@@ -3058,6 +3122,7 @@ declare namespace ts {
|
|
|
3058
3122
|
realpath?(path: string): string;
|
|
3059
3123
|
getCurrentDirectory?(): string;
|
|
3060
3124
|
getDirectories?(path: string): string[];
|
|
3125
|
+
useCaseSensitiveFileNames?: boolean | (() => boolean);
|
|
3061
3126
|
}
|
|
3062
3127
|
/**
|
|
3063
3128
|
* Represents the result of module resolution.
|
|
@@ -3111,7 +3176,13 @@ declare namespace ts {
|
|
|
3111
3176
|
Js = ".js",
|
|
3112
3177
|
Jsx = ".jsx",
|
|
3113
3178
|
Json = ".json",
|
|
3114
|
-
TsBuildInfo = ".tsbuildinfo"
|
|
3179
|
+
TsBuildInfo = ".tsbuildinfo",
|
|
3180
|
+
Mjs = ".mjs",
|
|
3181
|
+
Mts = ".mts",
|
|
3182
|
+
Dmts = ".d.mts",
|
|
3183
|
+
Cjs = ".cjs",
|
|
3184
|
+
Cts = ".cts",
|
|
3185
|
+
Dcts = ".d.cts"
|
|
3115
3186
|
}
|
|
3116
3187
|
export interface ResolvedModuleWithFailedLookupLocations {
|
|
3117
3188
|
readonly resolvedModule: ResolvedModuleFull | undefined;
|
|
@@ -3139,7 +3210,11 @@ declare namespace ts {
|
|
|
3139
3210
|
useCaseSensitiveFileNames(): boolean;
|
|
3140
3211
|
getNewLine(): string;
|
|
3141
3212
|
readDirectory?(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): string[];
|
|
3142
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[];
|
|
3213
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
3214
|
+
/**
|
|
3215
|
+
* 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
|
|
3216
|
+
*/
|
|
3217
|
+
getModuleResolutionCache?(): ModuleResolutionCache | undefined;
|
|
3143
3218
|
/**
|
|
3144
3219
|
* This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files
|
|
3145
3220
|
*/
|
|
@@ -3218,7 +3293,8 @@ declare namespace ts {
|
|
|
3218
3293
|
NonNullAssertions = 4,
|
|
3219
3294
|
PartiallyEmittedExpressions = 8,
|
|
3220
3295
|
Assertions = 6,
|
|
3221
|
-
All = 15
|
|
3296
|
+
All = 15,
|
|
3297
|
+
ExcludeJSDocTypeAssertion = 16
|
|
3222
3298
|
}
|
|
3223
3299
|
export type TypeOfTag = "undefined" | "number" | "bigint" | "boolean" | "string" | "symbol" | "object" | "function";
|
|
3224
3300
|
export interface NodeFactory {
|
|
@@ -3346,8 +3422,8 @@ declare namespace ts {
|
|
|
3346
3422
|
updateTypeOperatorNode(node: TypeOperatorNode, type: TypeNode): TypeOperatorNode;
|
|
3347
3423
|
createIndexedAccessTypeNode(objectType: TypeNode, indexType: TypeNode): IndexedAccessTypeNode;
|
|
3348
3424
|
updateIndexedAccessTypeNode(node: IndexedAccessTypeNode, objectType: TypeNode, indexType: TypeNode): IndexedAccessTypeNode;
|
|
3349
|
-
createMappedTypeNode(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, nameType: TypeNode | undefined, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined): MappedTypeNode;
|
|
3350
|
-
updateMappedTypeNode(node: MappedTypeNode, readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, nameType: TypeNode | undefined, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined): MappedTypeNode;
|
|
3425
|
+
createMappedTypeNode(readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, nameType: TypeNode | undefined, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined, members: NodeArray<TypeElement> | undefined): MappedTypeNode;
|
|
3426
|
+
updateMappedTypeNode(node: MappedTypeNode, readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, nameType: TypeNode | undefined, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined, members: NodeArray<TypeElement> | undefined): MappedTypeNode;
|
|
3351
3427
|
createLiteralTypeNode(literal: LiteralTypeNode["literal"]): LiteralTypeNode;
|
|
3352
3428
|
updateLiteralTypeNode(node: LiteralTypeNode, literal: LiteralTypeNode["literal"]): LiteralTypeNode;
|
|
3353
3429
|
createTemplateLiteralType(head: TemplateHead, templateSpans: readonly TemplateLiteralTypeSpan[]): TemplateLiteralTypeNode;
|
|
@@ -3493,26 +3569,30 @@ declare namespace ts {
|
|
|
3493
3569
|
updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
|
|
3494
3570
|
createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3495
3571
|
updateImportEqualsDeclaration(node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3496
|
-
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration;
|
|
3497
|
-
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression): ImportDeclaration;
|
|
3572
|
+
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
3573
|
+
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
3498
3574
|
createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3499
3575
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3576
|
+
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3577
|
+
updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3578
|
+
createAssertEntry(name: AssertionKey, value: StringLiteral): AssertEntry;
|
|
3579
|
+
updateAssertEntry(node: AssertEntry, name: AssertionKey, value: StringLiteral): AssertEntry;
|
|
3500
3580
|
createNamespaceImport(name: Identifier): NamespaceImport;
|
|
3501
3581
|
updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport;
|
|
3502
3582
|
createNamespaceExport(name: Identifier): NamespaceExport;
|
|
3503
3583
|
updateNamespaceExport(node: NamespaceExport, name: Identifier): NamespaceExport;
|
|
3504
3584
|
createNamedImports(elements: readonly ImportSpecifier[]): NamedImports;
|
|
3505
3585
|
updateNamedImports(node: NamedImports, elements: readonly ImportSpecifier[]): NamedImports;
|
|
3506
|
-
createImportSpecifier(propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3507
|
-
updateImportSpecifier(node: ImportSpecifier, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3586
|
+
createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3587
|
+
updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3508
3588
|
createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
3509
3589
|
updateExportAssignment(node: ExportAssignment, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, expression: Expression): ExportAssignment;
|
|
3510
|
-
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression): ExportDeclaration;
|
|
3511
|
-
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined): ExportDeclaration;
|
|
3590
|
+
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
3591
|
+
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
3512
3592
|
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
|
|
3513
3593
|
updateNamedExports(node: NamedExports, elements: readonly ExportSpecifier[]): NamedExports;
|
|
3514
|
-
createExportSpecifier(propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
3515
|
-
updateExportSpecifier(node: ExportSpecifier, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier;
|
|
3594
|
+
createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
3595
|
+
updateExportSpecifier(node: ExportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier;
|
|
3516
3596
|
createExternalModuleReference(expression: Expression): ExternalModuleReference;
|
|
3517
3597
|
updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference;
|
|
3518
3598
|
createJSDocAllType(): JSDocAllType;
|
|
@@ -3619,7 +3699,7 @@ declare namespace ts {
|
|
|
3619
3699
|
updateDefaultClause(node: DefaultClause, statements: readonly Statement[]): DefaultClause;
|
|
3620
3700
|
createHeritageClause(token: HeritageClause["token"], types: readonly ExpressionWithTypeArguments[]): HeritageClause;
|
|
3621
3701
|
updateHeritageClause(node: HeritageClause, types: readonly ExpressionWithTypeArguments[]): HeritageClause;
|
|
3622
|
-
createCatchClause(variableDeclaration: string | VariableDeclaration | undefined, block: Block): CatchClause;
|
|
3702
|
+
createCatchClause(variableDeclaration: string | BindingName | VariableDeclaration | undefined, block: Block): CatchClause;
|
|
3623
3703
|
updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: Block): CatchClause;
|
|
3624
3704
|
createPropertyAssignment(name: string | PropertyName, initializer: Expression): PropertyAssignment;
|
|
3625
3705
|
updatePropertyAssignment(node: PropertyAssignment, name: PropertyName, initializer: Expression): PropertyAssignment;
|
|
@@ -3925,6 +4005,7 @@ declare namespace ts {
|
|
|
3925
4005
|
ObjectBindingPatternElements = 525136,
|
|
3926
4006
|
ArrayBindingPatternElements = 524880,
|
|
3927
4007
|
ObjectLiteralExpressionProperties = 526226,
|
|
4008
|
+
ImportClauseEntries = 526226,
|
|
3928
4009
|
ArrayLiteralExpressionElements = 8914,
|
|
3929
4010
|
CommaListElements = 528,
|
|
3930
4011
|
CallExpressionArguments = 2576,
|
|
@@ -3961,6 +4042,7 @@ declare namespace ts {
|
|
|
3961
4042
|
readonly includeCompletionsWithSnippetText?: boolean;
|
|
3962
4043
|
readonly includeAutomaticOptionalChainCompletions?: boolean;
|
|
3963
4044
|
readonly includeCompletionsWithInsertText?: boolean;
|
|
4045
|
+
readonly includeCompletionsWithClassMemberSnippets?: boolean;
|
|
3964
4046
|
readonly allowIncompleteCompletions?: boolean;
|
|
3965
4047
|
readonly importModuleSpecifierPreference?: "shortest" | "project-relative" | "relative" | "non-relative";
|
|
3966
4048
|
/** Determines whether we import `foo/index.ts` as "foo", "foo/index", or "foo/index.js" */
|
|
@@ -3969,6 +4051,7 @@ declare namespace ts {
|
|
|
3969
4051
|
readonly providePrefixAndSuffixTextForRename?: boolean;
|
|
3970
4052
|
readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
|
|
3971
4053
|
readonly provideRefactorNotApplicableReason?: boolean;
|
|
4054
|
+
readonly jsxAttributeCompletionStyle?: "auto" | "braces" | "none";
|
|
3972
4055
|
}
|
|
3973
4056
|
/** Represents a bigint literal value without requiring bigint support */
|
|
3974
4057
|
export interface PseudoBigInt {
|
|
@@ -4318,7 +4401,8 @@ declare namespace ts {
|
|
|
4318
4401
|
function isTemplateLiteralToken(node: Node): node is TemplateLiteralToken;
|
|
4319
4402
|
function isTemplateMiddleOrTemplateTail(node: Node): node is TemplateMiddle | TemplateTail;
|
|
4320
4403
|
function isImportOrExportSpecifier(node: Node): node is ImportSpecifier | ExportSpecifier;
|
|
4321
|
-
function isTypeOnlyImportOrExportDeclaration(node: Node): node is
|
|
4404
|
+
function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
|
|
4405
|
+
function isAssertionKey(node: Node): node is AssertionKey;
|
|
4322
4406
|
function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
|
|
4323
4407
|
function isModifier(node: Node): node is Modifier;
|
|
4324
4408
|
function isEntityName(node: Node): node is EntityName;
|
|
@@ -4566,6 +4650,8 @@ declare namespace ts {
|
|
|
4566
4650
|
function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration;
|
|
4567
4651
|
function isImportDeclaration(node: Node): node is ImportDeclaration;
|
|
4568
4652
|
function isImportClause(node: Node): node is ImportClause;
|
|
4653
|
+
function isAssertClause(node: Node): node is AssertClause;
|
|
4654
|
+
function isAssertEntry(node: Node): node is AssertEntry;
|
|
4569
4655
|
function isNamespaceImport(node: Node): node is NamespaceImport;
|
|
4570
4656
|
function isNamespaceExport(node: Node): node is NamespaceExport;
|
|
4571
4657
|
function isNamedImports(node: Node): node is NamedImports;
|
|
@@ -4776,12 +4862,20 @@ declare namespace ts {
|
|
|
4776
4862
|
export function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
|
|
4777
4863
|
export interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, PackageJsonInfoCache {
|
|
4778
4864
|
}
|
|
4865
|
+
export interface ModeAwareCache<T> {
|
|
4866
|
+
get(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): T | undefined;
|
|
4867
|
+
set(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined, value: T): this;
|
|
4868
|
+
delete(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): this;
|
|
4869
|
+
has(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): boolean;
|
|
4870
|
+
forEach(cb: (elem: T, key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined) => void): void;
|
|
4871
|
+
size(): number;
|
|
4872
|
+
}
|
|
4779
4873
|
/**
|
|
4780
4874
|
* Cached resolutions per containing directory.
|
|
4781
4875
|
* This assumes that any module id will have the same resolution for sibling files located in the same folder.
|
|
4782
4876
|
*/
|
|
4783
4877
|
export interface PerDirectoryResolutionCache<T> {
|
|
4784
|
-
getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference):
|
|
4878
|
+
getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): ModeAwareCache<T>;
|
|
4785
4879
|
clear(): void;
|
|
4786
4880
|
/**
|
|
4787
4881
|
* Updates with the current compilerOptions the cache will operate with.
|
|
@@ -4797,7 +4891,7 @@ declare namespace ts {
|
|
|
4797
4891
|
* We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive.
|
|
4798
4892
|
*/
|
|
4799
4893
|
export interface NonRelativeModuleNameResolutionCache extends PackageJsonInfoCache {
|
|
4800
|
-
getOrCreateCacheForModuleName(nonRelativeModuleName: string, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
|
|
4894
|
+
getOrCreateCacheForModuleName(nonRelativeModuleName: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
|
|
4801
4895
|
}
|
|
4802
4896
|
export interface PackageJsonInfoCache {
|
|
4803
4897
|
clear(): void;
|
|
@@ -4808,8 +4902,8 @@ declare namespace ts {
|
|
|
4808
4902
|
}
|
|
4809
4903
|
export function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
|
|
4810
4904
|
export function createTypeReferenceDirectiveResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions, packageJsonInfoCache?: PackageJsonInfoCache): TypeReferenceDirectiveResolutionCache;
|
|
4811
|
-
export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
4812
|
-
export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
4905
|
+
export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
4906
|
+
export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations;
|
|
4813
4907
|
export function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
4814
4908
|
export function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
4815
4909
|
export {};
|
|
@@ -4920,6 +5014,17 @@ declare namespace ts {
|
|
|
4920
5014
|
export function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
|
|
4921
5015
|
export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
|
|
4922
5016
|
export function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
5017
|
+
/**
|
|
5018
|
+
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
5019
|
+
* `options` parameter.
|
|
5020
|
+
*
|
|
5021
|
+
* @param fileName The normalized absolute path to check the format of (it need not exist on disk)
|
|
5022
|
+
* @param [packageJsonInfoCache] A cache for package file lookups - it's best to have a cache when this function is called often
|
|
5023
|
+
* @param host The ModuleResolutionHost which can perform the filesystem lookups for package json data
|
|
5024
|
+
* @param options The compiler options to perform the analysis under - relevant options are `moduleResolution` and `traceResolution`
|
|
5025
|
+
* @returns `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format
|
|
5026
|
+
*/
|
|
5027
|
+
export function getImpliedNodeFormatForFile(fileName: Path, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ModuleKind.ESNext | ModuleKind.CommonJS | undefined;
|
|
4923
5028
|
/**
|
|
4924
5029
|
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
|
|
4925
5030
|
* that represent a compilation unit.
|
|
@@ -5164,7 +5269,7 @@ declare namespace ts {
|
|
|
5164
5269
|
/** If provided is used to get the environment variable */
|
|
5165
5270
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
5166
5271
|
/** If provided, used to resolve the module names, otherwise typescript's default module resolution */
|
|
5167
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[];
|
|
5272
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5168
5273
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5169
5274
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5170
5275
|
}
|
|
@@ -5554,8 +5659,8 @@ declare namespace ts {
|
|
|
5554
5659
|
realpath?(path: string): string;
|
|
5555
5660
|
fileExists?(path: string): boolean;
|
|
5556
5661
|
getTypeRootsVersion?(): number;
|
|
5557
|
-
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedModule | undefined)[];
|
|
5558
|
-
getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
5662
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5663
|
+
getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
5559
5664
|
resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5560
5665
|
getDirectories?(directoryName: string): string[];
|
|
5561
5666
|
/**
|
|
@@ -6265,23 +6370,28 @@ declare namespace ts {
|
|
|
6265
6370
|
isIncomplete?: true;
|
|
6266
6371
|
entries: CompletionEntry[];
|
|
6267
6372
|
}
|
|
6268
|
-
interface
|
|
6269
|
-
/** The file name declaring the export's module symbol, if it was an external module */
|
|
6270
|
-
fileName?: string;
|
|
6271
|
-
/** The module name (with quotes stripped) of the export's module symbol, if it was an ambient module */
|
|
6272
|
-
ambientModuleName?: string;
|
|
6273
|
-
/** True if the export was found in the package.json AutoImportProvider */
|
|
6274
|
-
isPackageJsonImport?: true;
|
|
6373
|
+
interface CompletionEntryDataAutoImport {
|
|
6275
6374
|
/**
|
|
6276
6375
|
* The name of the property or export in the module's symbol table. Differs from the completion name
|
|
6277
6376
|
* in the case of InternalSymbolName.ExportEquals and InternalSymbolName.Default.
|
|
6278
6377
|
*/
|
|
6279
6378
|
exportName: string;
|
|
6280
|
-
/**
|
|
6281
|
-
* Set for auto imports with eagerly resolved module specifiers.
|
|
6282
|
-
*/
|
|
6283
6379
|
moduleSpecifier?: string;
|
|
6380
|
+
/** The file name declaring the export's module symbol, if it was an external module */
|
|
6381
|
+
fileName?: string;
|
|
6382
|
+
/** The module name (with quotes stripped) of the export's module symbol, if it was an ambient module */
|
|
6383
|
+
ambientModuleName?: string;
|
|
6384
|
+
/** True if the export was found in the package.json AutoImportProvider */
|
|
6385
|
+
isPackageJsonImport?: true;
|
|
6386
|
+
}
|
|
6387
|
+
interface CompletionEntryDataUnresolved extends CompletionEntryDataAutoImport {
|
|
6388
|
+
/** The key in the `ExportMapCache` where the completion entry's `SymbolExportInfo[]` is found */
|
|
6389
|
+
exportMapKey: string;
|
|
6390
|
+
}
|
|
6391
|
+
interface CompletionEntryDataResolved extends CompletionEntryDataAutoImport {
|
|
6392
|
+
moduleSpecifier: string;
|
|
6284
6393
|
}
|
|
6394
|
+
type CompletionEntryData = CompletionEntryDataUnresolved | CompletionEntryDataResolved;
|
|
6285
6395
|
interface CompletionEntry {
|
|
6286
6396
|
name: string;
|
|
6287
6397
|
kind: ScriptElementKind;
|
|
@@ -6503,7 +6613,13 @@ declare namespace ts {
|
|
|
6503
6613
|
tsxModifier = ".tsx",
|
|
6504
6614
|
jsModifier = ".js",
|
|
6505
6615
|
jsxModifier = ".jsx",
|
|
6506
|
-
jsonModifier = ".json"
|
|
6616
|
+
jsonModifier = ".json",
|
|
6617
|
+
dmtsModifier = ".d.mts",
|
|
6618
|
+
mtsModifier = ".mts",
|
|
6619
|
+
mjsModifier = ".mjs",
|
|
6620
|
+
dctsModifier = ".d.cts",
|
|
6621
|
+
ctsModifier = ".cts",
|
|
6622
|
+
cjsModifier = ".cjs"
|
|
6507
6623
|
}
|
|
6508
6624
|
enum ClassificationTypeNames {
|
|
6509
6625
|
comment = "comment",
|
|
@@ -6865,9 +6981,9 @@ declare namespace ts {
|
|
|
6865
6981
|
/** @deprecated Use `factory.updateIndexedAccessTypeNode` or the factory supplied by your transformation context instead. */
|
|
6866
6982
|
const updateIndexedAccessTypeNode: (node: IndexedAccessTypeNode, objectType: TypeNode, indexType: TypeNode) => IndexedAccessTypeNode;
|
|
6867
6983
|
/** @deprecated Use `factory.createMappedTypeNode` or the factory supplied by your transformation context instead. */
|
|
6868
|
-
const createMappedTypeNode: (readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, nameType: TypeNode | undefined, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined) => MappedTypeNode;
|
|
6984
|
+
const createMappedTypeNode: (readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, nameType: TypeNode | undefined, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined, members: NodeArray<TypeElement> | undefined) => MappedTypeNode;
|
|
6869
6985
|
/** @deprecated Use `factory.updateMappedTypeNode` or the factory supplied by your transformation context instead. */
|
|
6870
|
-
const updateMappedTypeNode: (node: MappedTypeNode, readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, nameType: TypeNode | undefined, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined) => MappedTypeNode;
|
|
6986
|
+
const updateMappedTypeNode: (node: MappedTypeNode, readonlyToken: ReadonlyKeyword | PlusToken | MinusToken | undefined, typeParameter: TypeParameterDeclaration, nameType: TypeNode | undefined, questionToken: QuestionToken | PlusToken | MinusToken | undefined, type: TypeNode | undefined, members: NodeArray<TypeElement> | undefined) => MappedTypeNode;
|
|
6871
6987
|
/** @deprecated Use `factory.createLiteralTypeNode` or the factory supplied by your transformation context instead. */
|
|
6872
6988
|
const createLiteralTypeNode: (literal: LiteralExpression | BooleanLiteral | PrefixUnaryExpression | NullLiteral) => LiteralTypeNode;
|
|
6873
6989
|
/** @deprecated Use `factory.updateLiteralTypeNode` or the factory supplied by your transformation context instead. */
|
|
@@ -7135,9 +7251,9 @@ declare namespace ts {
|
|
|
7135
7251
|
/** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
7136
7252
|
const updateImportEqualsDeclaration: (node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference) => ImportEqualsDeclaration;
|
|
7137
7253
|
/** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7138
|
-
const createImportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression) => ImportDeclaration;
|
|
7254
|
+
const createImportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined) => ImportDeclaration;
|
|
7139
7255
|
/** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
7140
|
-
const updateImportDeclaration: (node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression) => ImportDeclaration;
|
|
7256
|
+
const updateImportDeclaration: (node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined) => ImportDeclaration;
|
|
7141
7257
|
/** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
7142
7258
|
const createNamespaceImport: (name: Identifier) => NamespaceImport;
|
|
7143
7259
|
/** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
@@ -7147,9 +7263,9 @@ declare namespace ts {
|
|
|
7147
7263
|
/** @deprecated Use `factory.updateNamedImports` or the factory supplied by your transformation context instead. */
|
|
7148
7264
|
const updateNamedImports: (node: NamedImports, elements: readonly ImportSpecifier[]) => NamedImports;
|
|
7149
7265
|
/** @deprecated Use `factory.createImportSpecifier` or the factory supplied by your transformation context instead. */
|
|
7150
|
-
const createImportSpecifier: (propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
7266
|
+
const createImportSpecifier: (isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
7151
7267
|
/** @deprecated Use `factory.updateImportSpecifier` or the factory supplied by your transformation context instead. */
|
|
7152
|
-
const updateImportSpecifier: (node: ImportSpecifier, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
7268
|
+
const updateImportSpecifier: (node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
7153
7269
|
/** @deprecated Use `factory.createExportAssignment` or the factory supplied by your transformation context instead. */
|
|
7154
7270
|
const createExportAssignment: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression) => ExportAssignment;
|
|
7155
7271
|
/** @deprecated Use `factory.updateExportAssignment` or the factory supplied by your transformation context instead. */
|
|
@@ -7159,9 +7275,9 @@ declare namespace ts {
|
|
|
7159
7275
|
/** @deprecated Use `factory.updateNamedExports` or the factory supplied by your transformation context instead. */
|
|
7160
7276
|
const updateNamedExports: (node: NamedExports, elements: readonly ExportSpecifier[]) => NamedExports;
|
|
7161
7277
|
/** @deprecated Use `factory.createExportSpecifier` or the factory supplied by your transformation context instead. */
|
|
7162
|
-
const createExportSpecifier: (propertyName: string | Identifier | undefined, name: string | Identifier) => ExportSpecifier;
|
|
7278
|
+
const createExportSpecifier: (isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier) => ExportSpecifier;
|
|
7163
7279
|
/** @deprecated Use `factory.updateExportSpecifier` or the factory supplied by your transformation context instead. */
|
|
7164
|
-
const updateExportSpecifier: (node: ExportSpecifier, propertyName: Identifier | undefined, name: Identifier) => ExportSpecifier;
|
|
7280
|
+
const updateExportSpecifier: (node: ExportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ExportSpecifier;
|
|
7165
7281
|
/** @deprecated Use `factory.createExternalModuleReference` or the factory supplied by your transformation context instead. */
|
|
7166
7282
|
const createExternalModuleReference: (expression: Expression) => ExternalModuleReference;
|
|
7167
7283
|
/** @deprecated Use `factory.updateExternalModuleReference` or the factory supplied by your transformation context instead. */
|
|
@@ -7271,7 +7387,7 @@ declare namespace ts {
|
|
|
7271
7387
|
/** @deprecated Use `factory.updateHeritageClause` or the factory supplied by your transformation context instead. */
|
|
7272
7388
|
const updateHeritageClause: (node: HeritageClause, types: readonly ExpressionWithTypeArguments[]) => HeritageClause;
|
|
7273
7389
|
/** @deprecated Use `factory.createCatchClause` or the factory supplied by your transformation context instead. */
|
|
7274
|
-
const createCatchClause: (variableDeclaration: string | VariableDeclaration | undefined, block: Block) => CatchClause;
|
|
7390
|
+
const createCatchClause: (variableDeclaration: string | VariableDeclaration | BindingName | undefined, block: Block) => CatchClause;
|
|
7275
7391
|
/** @deprecated Use `factory.updateCatchClause` or the factory supplied by your transformation context instead. */
|
|
7276
7392
|
const updateCatchClause: (node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: Block) => CatchClause;
|
|
7277
7393
|
/** @deprecated Use `factory.createPropertyAssignment` or the factory supplied by your transformation context instead. */
|