typescript 4.4.3 → 4.5.0-beta
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/SECURITY.md +41 -0
- package/lib/cs/diagnosticMessages.generated.json +47 -59
- package/lib/de/diagnosticMessages.generated.json +50 -62
- package/lib/es/diagnosticMessages.generated.json +48 -60
- package/lib/fr/diagnosticMessages.generated.json +50 -62
- package/lib/it/diagnosticMessages.generated.json +50 -62
- package/lib/ja/diagnosticMessages.generated.json +50 -62
- package/lib/ko/diagnosticMessages.generated.json +47 -59
- package/lib/lib.dom.d.ts +669 -1896
- package/lib/lib.dom.iterable.d.ts +16 -48
- package/lib/lib.es2015.core.d.ts +53 -13
- package/lib/lib.es2015.iterable.d.ts +2 -10
- package/lib/lib.es2015.promise.d.ts +2 -74
- package/lib/lib.es2018.intl.d.ts +23 -11
- package/lib/lib.es2019.string.d.ts +8 -2
- package/lib/lib.es2020.intl.d.ts +173 -114
- package/lib/lib.es2020.promise.d.ts +2 -3
- package/lib/lib.es2021.d.ts +1 -0
- package/lib/lib.es2021.intl.d.ts +44 -0
- package/lib/lib.es2021.promise.d.ts +8 -1
- package/lib/lib.es5.d.ts +101 -41
- package/lib/lib.esnext.intl.d.ts +1 -10
- package/lib/lib.webworker.d.ts +183 -520
- package/lib/lib.webworker.iterable.d.ts +10 -30
- package/lib/pl/diagnosticMessages.generated.json +50 -62
- package/lib/protocol.d.ts +1 -0
- package/lib/pt-br/diagnosticMessages.generated.json +50 -62
- package/lib/ru/diagnosticMessages.generated.json +48 -60
- package/lib/tr/diagnosticMessages.generated.json +50 -62
- package/lib/tsc.js +7109 -5440
- package/lib/tsserver.js +11335 -8683
- package/lib/tsserverlibrary.d.ts +382 -273
- package/lib/tsserverlibrary.js +11335 -8683
- package/lib/typescript.d.ts +379 -271
- package/lib/typescript.js +11312 -8670
- package/lib/typescriptServices.d.ts +379 -271
- package/lib/typescriptServices.js +11312 -8670
- package/lib/typingsInstaller.js +8269 -6299
- package/lib/zh-cn/diagnosticMessages.generated.json +50 -62
- package/lib/zh-tw/diagnosticMessages.generated.json +50 -62
- package/package.json +5 -7
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -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
|
}
|
|
@@ -1381,13 +1385,13 @@ declare namespace ts {
|
|
|
1381
1385
|
}
|
|
1382
1386
|
export interface JsxExpression extends Expression {
|
|
1383
1387
|
readonly kind: SyntaxKind.JsxExpression;
|
|
1384
|
-
readonly parent: JsxElement | JsxAttributeLike;
|
|
1388
|
+
readonly parent: JsxElement | JsxFragment | JsxAttributeLike;
|
|
1385
1389
|
readonly dotDotDotToken?: Token<SyntaxKind.DotDotDotToken>;
|
|
1386
1390
|
readonly expression?: Expression;
|
|
1387
1391
|
}
|
|
1388
1392
|
export interface JsxText extends LiteralLikeNode {
|
|
1389
1393
|
readonly kind: SyntaxKind.JsxText;
|
|
1390
|
-
readonly parent: JsxElement;
|
|
1394
|
+
readonly parent: JsxElement | JsxFragment;
|
|
1391
1395
|
readonly containsOnlyTriviaWhiteSpaces: boolean;
|
|
1392
1396
|
}
|
|
1393
1397
|
export type JsxChild = JsxText | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
|
|
@@ -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;
|
|
@@ -1679,15 +1698,39 @@ declare namespace ts {
|
|
|
1679
1698
|
readonly parent: NamedImports;
|
|
1680
1699
|
readonly propertyName?: Identifier;
|
|
1681
1700
|
readonly name: Identifier;
|
|
1701
|
+
readonly isTypeOnly: boolean;
|
|
1682
1702
|
}
|
|
1683
1703
|
export interface ExportSpecifier extends NamedDeclaration {
|
|
1684
1704
|
readonly kind: SyntaxKind.ExportSpecifier;
|
|
1685
1705
|
readonly parent: NamedExports;
|
|
1706
|
+
readonly isTypeOnly: boolean;
|
|
1686
1707
|
readonly propertyName?: Identifier;
|
|
1687
1708
|
readonly name: Identifier;
|
|
1688
1709
|
}
|
|
1689
1710
|
export type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier;
|
|
1690
1711
|
export type TypeOnlyCompatibleAliasDeclaration = ImportClause | ImportEqualsDeclaration | NamespaceImport | ImportOrExportSpecifier;
|
|
1712
|
+
export type TypeOnlyAliasDeclaration = ImportClause & {
|
|
1713
|
+
readonly isTypeOnly: true;
|
|
1714
|
+
readonly name: Identifier;
|
|
1715
|
+
} | ImportEqualsDeclaration & {
|
|
1716
|
+
readonly isTypeOnly: true;
|
|
1717
|
+
} | NamespaceImport & {
|
|
1718
|
+
readonly parent: ImportClause & {
|
|
1719
|
+
readonly isTypeOnly: true;
|
|
1720
|
+
};
|
|
1721
|
+
} | ImportSpecifier & {
|
|
1722
|
+
readonly parent: NamedImports & {
|
|
1723
|
+
readonly parent: ImportClause & {
|
|
1724
|
+
readonly isTypeOnly: true;
|
|
1725
|
+
};
|
|
1726
|
+
};
|
|
1727
|
+
} | ExportSpecifier & {
|
|
1728
|
+
readonly parent: NamedExports & {
|
|
1729
|
+
readonly parent: ExportDeclaration & {
|
|
1730
|
+
readonly isTypeOnly: true;
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
};
|
|
1691
1734
|
/**
|
|
1692
1735
|
* This is either an `export =` or an `export default` declaration.
|
|
1693
1736
|
* Unless `isExportEquals` is set, this node was parsed as an `export default`.
|
|
@@ -1925,7 +1968,7 @@ declare namespace ts {
|
|
|
1925
1968
|
id?: number;
|
|
1926
1969
|
}
|
|
1927
1970
|
export interface FlowStart extends FlowNodeBase {
|
|
1928
|
-
node?: FunctionExpression | ArrowFunction | MethodDeclaration;
|
|
1971
|
+
node?: FunctionExpression | ArrowFunction | MethodDeclaration | GetAccessorDeclaration | SetAccessorDeclaration;
|
|
1929
1972
|
}
|
|
1930
1973
|
export interface FlowLabel extends FlowNodeBase {
|
|
1931
1974
|
antecedents: FlowNode[] | undefined;
|
|
@@ -1989,6 +2032,18 @@ declare namespace ts {
|
|
|
1989
2032
|
*/
|
|
1990
2033
|
hasNoDefaultLib: boolean;
|
|
1991
2034
|
languageVersion: ScriptTarget;
|
|
2035
|
+
/**
|
|
2036
|
+
* When `module` is `Node12` or `NodeNext`, this field controls whether the
|
|
2037
|
+
* source file in question is an ESNext-output-format file, or a CommonJS-output-format
|
|
2038
|
+
* module. This is derived by the module resolver as it looks up the file, since
|
|
2039
|
+
* it is derived from either the file extension of the module, or the containing
|
|
2040
|
+
* `package.json` context, and affects both checking and emit.
|
|
2041
|
+
*
|
|
2042
|
+
* It is _public_ so that (pre)transformers can set this field,
|
|
2043
|
+
* since it switches the builtin `node` module transform. Generally speaking, if unset,
|
|
2044
|
+
* the field is treated as though it is `ModuleKind.CommonJS`.
|
|
2045
|
+
*/
|
|
2046
|
+
impliedNodeFormat?: ModuleKind.ESNext | ModuleKind.CommonJS;
|
|
1992
2047
|
}
|
|
1993
2048
|
export interface Bundle extends Node {
|
|
1994
2049
|
readonly kind: SyntaxKind.Bundle;
|
|
@@ -2282,6 +2337,7 @@ declare namespace ts {
|
|
|
2282
2337
|
getApparentType(type: Type): Type;
|
|
2283
2338
|
getBaseConstraintOfType(type: Type): Type | undefined;
|
|
2284
2339
|
getDefaultFromTypeParameter(type: Type): Type | undefined;
|
|
2340
|
+
getTypePredicateOfSignature(signature: Signature): TypePredicate | undefined;
|
|
2285
2341
|
/**
|
|
2286
2342
|
* Depending on the operation performed, it may be appropriate to throw away the checker
|
|
2287
2343
|
* if the cancellation token is triggered. Typically, if it is used for error checking
|
|
@@ -2699,8 +2755,8 @@ declare namespace ts {
|
|
|
2699
2755
|
root: ConditionalRoot;
|
|
2700
2756
|
checkType: Type;
|
|
2701
2757
|
extendsType: Type;
|
|
2702
|
-
resolvedTrueType
|
|
2703
|
-
resolvedFalseType
|
|
2758
|
+
resolvedTrueType?: Type;
|
|
2759
|
+
resolvedFalseType?: Type;
|
|
2704
2760
|
}
|
|
2705
2761
|
export interface TemplateLiteralType extends InstantiableType {
|
|
2706
2762
|
texts: readonly string[];
|
|
@@ -2805,7 +2861,9 @@ declare namespace ts {
|
|
|
2805
2861
|
}
|
|
2806
2862
|
export enum ModuleResolutionKind {
|
|
2807
2863
|
Classic = 1,
|
|
2808
|
-
NodeJs = 2
|
|
2864
|
+
NodeJs = 2,
|
|
2865
|
+
Node12 = 3,
|
|
2866
|
+
NodeNext = 99
|
|
2809
2867
|
}
|
|
2810
2868
|
export interface PluginImport {
|
|
2811
2869
|
name: string;
|
|
@@ -2903,6 +2961,7 @@ declare namespace ts {
|
|
|
2903
2961
|
preserveConstEnums?: boolean;
|
|
2904
2962
|
noImplicitOverride?: boolean;
|
|
2905
2963
|
preserveSymlinks?: boolean;
|
|
2964
|
+
preserveValueImports?: boolean;
|
|
2906
2965
|
project?: string;
|
|
2907
2966
|
reactNamespace?: string;
|
|
2908
2967
|
jsxFactory?: string;
|
|
@@ -2966,7 +3025,10 @@ declare namespace ts {
|
|
|
2966
3025
|
System = 4,
|
|
2967
3026
|
ES2015 = 5,
|
|
2968
3027
|
ES2020 = 6,
|
|
2969
|
-
|
|
3028
|
+
ES2022 = 7,
|
|
3029
|
+
ESNext = 99,
|
|
3030
|
+
Node12 = 100,
|
|
3031
|
+
NodeNext = 199
|
|
2970
3032
|
}
|
|
2971
3033
|
export enum JsxEmit {
|
|
2972
3034
|
None = 0,
|
|
@@ -3058,6 +3120,7 @@ declare namespace ts {
|
|
|
3058
3120
|
realpath?(path: string): string;
|
|
3059
3121
|
getCurrentDirectory?(): string;
|
|
3060
3122
|
getDirectories?(path: string): string[];
|
|
3123
|
+
useCaseSensitiveFileNames?: boolean | (() => boolean);
|
|
3061
3124
|
}
|
|
3062
3125
|
/**
|
|
3063
3126
|
* Represents the result of module resolution.
|
|
@@ -3111,7 +3174,13 @@ declare namespace ts {
|
|
|
3111
3174
|
Js = ".js",
|
|
3112
3175
|
Jsx = ".jsx",
|
|
3113
3176
|
Json = ".json",
|
|
3114
|
-
TsBuildInfo = ".tsbuildinfo"
|
|
3177
|
+
TsBuildInfo = ".tsbuildinfo",
|
|
3178
|
+
Mjs = ".mjs",
|
|
3179
|
+
Mts = ".mts",
|
|
3180
|
+
Dmts = ".d.mts",
|
|
3181
|
+
Cjs = ".cjs",
|
|
3182
|
+
Cts = ".cts",
|
|
3183
|
+
Dcts = ".d.cts"
|
|
3115
3184
|
}
|
|
3116
3185
|
export interface ResolvedModuleWithFailedLookupLocations {
|
|
3117
3186
|
readonly resolvedModule: ResolvedModuleFull | undefined;
|
|
@@ -3139,7 +3208,11 @@ declare namespace ts {
|
|
|
3139
3208
|
useCaseSensitiveFileNames(): boolean;
|
|
3140
3209
|
getNewLine(): string;
|
|
3141
3210
|
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)[];
|
|
3211
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
3212
|
+
/**
|
|
3213
|
+
* 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
|
|
3214
|
+
*/
|
|
3215
|
+
getModuleResolutionCache?(): ModuleResolutionCache | undefined;
|
|
3143
3216
|
/**
|
|
3144
3217
|
* This method is a companion for 'resolveModuleNames' and is used to resolve 'types' references to actual type declaration files
|
|
3145
3218
|
*/
|
|
@@ -3218,7 +3291,8 @@ declare namespace ts {
|
|
|
3218
3291
|
NonNullAssertions = 4,
|
|
3219
3292
|
PartiallyEmittedExpressions = 8,
|
|
3220
3293
|
Assertions = 6,
|
|
3221
|
-
All = 15
|
|
3294
|
+
All = 15,
|
|
3295
|
+
ExcludeJSDocTypeAssertion = 16
|
|
3222
3296
|
}
|
|
3223
3297
|
export type TypeOfTag = "undefined" | "number" | "bigint" | "boolean" | "string" | "symbol" | "object" | "function";
|
|
3224
3298
|
export interface NodeFactory {
|
|
@@ -3493,26 +3567,30 @@ declare namespace ts {
|
|
|
3493
3567
|
updateNamespaceExportDeclaration(node: NamespaceExportDeclaration, name: Identifier): NamespaceExportDeclaration;
|
|
3494
3568
|
createImportEqualsDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: string | Identifier, moduleReference: ModuleReference): ImportEqualsDeclaration;
|
|
3495
3569
|
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;
|
|
3570
|
+
createImportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause): ImportDeclaration;
|
|
3571
|
+
updateImportDeclaration(node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined): ImportDeclaration;
|
|
3498
3572
|
createImportClause(isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3499
3573
|
updateImportClause(node: ImportClause, isTypeOnly: boolean, name: Identifier | undefined, namedBindings: NamedImportBindings | undefined): ImportClause;
|
|
3574
|
+
createAssertClause(elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3575
|
+
updateAssertClause(node: AssertClause, elements: NodeArray<AssertEntry>, multiLine?: boolean): AssertClause;
|
|
3576
|
+
createAssertEntry(name: AssertionKey, value: StringLiteral): AssertEntry;
|
|
3577
|
+
updateAssertEntry(node: AssertEntry, name: AssertionKey, value: StringLiteral): AssertEntry;
|
|
3500
3578
|
createNamespaceImport(name: Identifier): NamespaceImport;
|
|
3501
3579
|
updateNamespaceImport(node: NamespaceImport, name: Identifier): NamespaceImport;
|
|
3502
3580
|
createNamespaceExport(name: Identifier): NamespaceExport;
|
|
3503
3581
|
updateNamespaceExport(node: NamespaceExport, name: Identifier): NamespaceExport;
|
|
3504
3582
|
createNamedImports(elements: readonly ImportSpecifier[]): NamedImports;
|
|
3505
3583
|
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;
|
|
3584
|
+
createImportSpecifier(isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3585
|
+
updateImportSpecifier(node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ImportSpecifier;
|
|
3508
3586
|
createExportAssignment(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression): ExportAssignment;
|
|
3509
3587
|
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;
|
|
3588
|
+
createExportDeclaration(decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier?: Expression, assertClause?: AssertClause): ExportDeclaration;
|
|
3589
|
+
updateExportDeclaration(node: ExportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, exportClause: NamedExportBindings | undefined, moduleSpecifier: Expression | undefined, assertClause: AssertClause | undefined): ExportDeclaration;
|
|
3512
3590
|
createNamedExports(elements: readonly ExportSpecifier[]): NamedExports;
|
|
3513
3591
|
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;
|
|
3592
|
+
createExportSpecifier(isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier): ExportSpecifier;
|
|
3593
|
+
updateExportSpecifier(node: ExportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier): ExportSpecifier;
|
|
3516
3594
|
createExternalModuleReference(expression: Expression): ExternalModuleReference;
|
|
3517
3595
|
updateExternalModuleReference(node: ExternalModuleReference, expression: Expression): ExternalModuleReference;
|
|
3518
3596
|
createJSDocAllType(): JSDocAllType;
|
|
@@ -3619,7 +3697,7 @@ declare namespace ts {
|
|
|
3619
3697
|
updateDefaultClause(node: DefaultClause, statements: readonly Statement[]): DefaultClause;
|
|
3620
3698
|
createHeritageClause(token: HeritageClause["token"], types: readonly ExpressionWithTypeArguments[]): HeritageClause;
|
|
3621
3699
|
updateHeritageClause(node: HeritageClause, types: readonly ExpressionWithTypeArguments[]): HeritageClause;
|
|
3622
|
-
createCatchClause(variableDeclaration: string | VariableDeclaration | undefined, block: Block): CatchClause;
|
|
3700
|
+
createCatchClause(variableDeclaration: string | BindingName | VariableDeclaration | undefined, block: Block): CatchClause;
|
|
3623
3701
|
updateCatchClause(node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: Block): CatchClause;
|
|
3624
3702
|
createPropertyAssignment(name: string | PropertyName, initializer: Expression): PropertyAssignment;
|
|
3625
3703
|
updatePropertyAssignment(node: PropertyAssignment, name: PropertyName, initializer: Expression): PropertyAssignment;
|
|
@@ -3925,6 +4003,7 @@ declare namespace ts {
|
|
|
3925
4003
|
ObjectBindingPatternElements = 525136,
|
|
3926
4004
|
ArrayBindingPatternElements = 524880,
|
|
3927
4005
|
ObjectLiteralExpressionProperties = 526226,
|
|
4006
|
+
ImportClauseEntries = 526226,
|
|
3928
4007
|
ArrayLiteralExpressionElements = 8914,
|
|
3929
4008
|
CommaListElements = 528,
|
|
3930
4009
|
CallExpressionArguments = 2576,
|
|
@@ -3969,6 +4048,7 @@ declare namespace ts {
|
|
|
3969
4048
|
readonly providePrefixAndSuffixTextForRename?: boolean;
|
|
3970
4049
|
readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
|
|
3971
4050
|
readonly provideRefactorNotApplicableReason?: boolean;
|
|
4051
|
+
readonly jsxAttributeCompletionStyle?: "auto" | "braces" | "none";
|
|
3972
4052
|
}
|
|
3973
4053
|
/** Represents a bigint literal value without requiring bigint support */
|
|
3974
4054
|
export interface PseudoBigInt {
|
|
@@ -4318,7 +4398,8 @@ declare namespace ts {
|
|
|
4318
4398
|
function isTemplateLiteralToken(node: Node): node is TemplateLiteralToken;
|
|
4319
4399
|
function isTemplateMiddleOrTemplateTail(node: Node): node is TemplateMiddle | TemplateTail;
|
|
4320
4400
|
function isImportOrExportSpecifier(node: Node): node is ImportSpecifier | ExportSpecifier;
|
|
4321
|
-
function isTypeOnlyImportOrExportDeclaration(node: Node): node is
|
|
4401
|
+
function isTypeOnlyImportOrExportDeclaration(node: Node): node is TypeOnlyAliasDeclaration;
|
|
4402
|
+
function isAssertionKey(node: Node): node is AssertionKey;
|
|
4322
4403
|
function isStringTextContainingNode(node: Node): node is StringLiteral | TemplateLiteralToken;
|
|
4323
4404
|
function isModifier(node: Node): node is Modifier;
|
|
4324
4405
|
function isEntityName(node: Node): node is EntityName;
|
|
@@ -4566,6 +4647,8 @@ declare namespace ts {
|
|
|
4566
4647
|
function isImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration;
|
|
4567
4648
|
function isImportDeclaration(node: Node): node is ImportDeclaration;
|
|
4568
4649
|
function isImportClause(node: Node): node is ImportClause;
|
|
4650
|
+
function isAssertClause(node: Node): node is AssertClause;
|
|
4651
|
+
function isAssertEntry(node: Node): node is AssertEntry;
|
|
4569
4652
|
function isNamespaceImport(node: Node): node is NamespaceImport;
|
|
4570
4653
|
function isNamespaceExport(node: Node): node is NamespaceExport;
|
|
4571
4654
|
function isNamedImports(node: Node): node is NamedImports;
|
|
@@ -4776,12 +4859,20 @@ declare namespace ts {
|
|
|
4776
4859
|
export function getAutomaticTypeDirectiveNames(options: CompilerOptions, host: ModuleResolutionHost): string[];
|
|
4777
4860
|
export interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache<ResolvedTypeReferenceDirectiveWithFailedLookupLocations>, PackageJsonInfoCache {
|
|
4778
4861
|
}
|
|
4862
|
+
export interface ModeAwareCache<T> {
|
|
4863
|
+
get(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): T | undefined;
|
|
4864
|
+
set(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined, value: T): this;
|
|
4865
|
+
delete(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): this;
|
|
4866
|
+
has(key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined): boolean;
|
|
4867
|
+
forEach(cb: (elem: T, key: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined) => void): void;
|
|
4868
|
+
size(): number;
|
|
4869
|
+
}
|
|
4779
4870
|
/**
|
|
4780
4871
|
* Cached resolutions per containing directory.
|
|
4781
4872
|
* This assumes that any module id will have the same resolution for sibling files located in the same folder.
|
|
4782
4873
|
*/
|
|
4783
4874
|
export interface PerDirectoryResolutionCache<T> {
|
|
4784
|
-
getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference):
|
|
4875
|
+
getOrCreateCacheForDirectory(directoryName: string, redirectedReference?: ResolvedProjectReference): ModeAwareCache<T>;
|
|
4785
4876
|
clear(): void;
|
|
4786
4877
|
/**
|
|
4787
4878
|
* Updates with the current compilerOptions the cache will operate with.
|
|
@@ -4797,7 +4888,7 @@ declare namespace ts {
|
|
|
4797
4888
|
* We support only non-relative module names because resolution of relative module names is usually more deterministic and thus less expensive.
|
|
4798
4889
|
*/
|
|
4799
4890
|
export interface NonRelativeModuleNameResolutionCache extends PackageJsonInfoCache {
|
|
4800
|
-
getOrCreateCacheForModuleName(nonRelativeModuleName: string, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
|
|
4891
|
+
getOrCreateCacheForModuleName(nonRelativeModuleName: string, mode: ModuleKind.CommonJS | ModuleKind.ESNext | undefined, redirectedReference?: ResolvedProjectReference): PerModuleNameCache;
|
|
4801
4892
|
}
|
|
4802
4893
|
export interface PackageJsonInfoCache {
|
|
4803
4894
|
clear(): void;
|
|
@@ -4808,8 +4899,8 @@ declare namespace ts {
|
|
|
4808
4899
|
}
|
|
4809
4900
|
export function createModuleResolutionCache(currentDirectory: string, getCanonicalFileName: (s: string) => string, options?: CompilerOptions): ModuleResolutionCache;
|
|
4810
4901
|
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;
|
|
4902
|
+
export function resolveModuleNameFromCache(moduleName: string, containingFile: string, cache: ModuleResolutionCache, mode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
4903
|
+
export function resolveModuleName(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations;
|
|
4813
4904
|
export function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
4814
4905
|
export function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations;
|
|
4815
4906
|
export {};
|
|
@@ -4920,6 +5011,17 @@ declare namespace ts {
|
|
|
4920
5011
|
export function formatDiagnosticsWithColorAndContext(diagnostics: readonly Diagnostic[], host: FormatDiagnosticsHost): string;
|
|
4921
5012
|
export function flattenDiagnosticMessageText(diag: string | DiagnosticMessageChain | undefined, newLine: string, indent?: number): string;
|
|
4922
5013
|
export function getConfigFileParsingDiagnostics(configFileParseResult: ParsedCommandLine): readonly Diagnostic[];
|
|
5014
|
+
/**
|
|
5015
|
+
* A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the
|
|
5016
|
+
* `options` parameter.
|
|
5017
|
+
*
|
|
5018
|
+
* @param fileName The normalized absolute path to check the format of (it need not exist on disk)
|
|
5019
|
+
* @param [packageJsonInfoCache] A cache for package file lookups - it's best to have a cache when this function is called often
|
|
5020
|
+
* @param host The ModuleResolutionHost which can perform the filesystem lookups for package json data
|
|
5021
|
+
* @param options The compiler options to perform the analysis under - relevant options are `moduleResolution` and `traceResolution`
|
|
5022
|
+
* @returns `undefined` if the path has no relevant implied format, `ModuleKind.ESNext` for esm format, and `ModuleKind.CommonJS` for cjs format
|
|
5023
|
+
*/
|
|
5024
|
+
export function getImpliedNodeFormatForFile(fileName: Path, packageJsonInfoCache: PackageJsonInfoCache | undefined, host: ModuleResolutionHost, options: CompilerOptions): ModuleKind.ESNext | ModuleKind.CommonJS | undefined;
|
|
4923
5025
|
/**
|
|
4924
5026
|
* Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions'
|
|
4925
5027
|
* that represent a compilation unit.
|
|
@@ -5164,7 +5266,7 @@ declare namespace ts {
|
|
|
5164
5266
|
/** If provided is used to get the environment variable */
|
|
5165
5267
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
5166
5268
|
/** 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)[];
|
|
5269
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5168
5270
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5169
5271
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5170
5272
|
}
|
|
@@ -5554,8 +5656,8 @@ declare namespace ts {
|
|
|
5554
5656
|
realpath?(path: string): string;
|
|
5555
5657
|
fileExists?(path: string): boolean;
|
|
5556
5658
|
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;
|
|
5659
|
+
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5660
|
+
getResolvedModuleWithFailedLookupLocationsFromCache?(modulename: string, containingFile: string, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
5559
5661
|
resolveTypeReferenceDirectives?(typeDirectiveNames: string[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5560
5662
|
getDirectories?(directoryName: string): string[];
|
|
5561
5663
|
/**
|
|
@@ -6503,7 +6605,13 @@ declare namespace ts {
|
|
|
6503
6605
|
tsxModifier = ".tsx",
|
|
6504
6606
|
jsModifier = ".js",
|
|
6505
6607
|
jsxModifier = ".jsx",
|
|
6506
|
-
jsonModifier = ".json"
|
|
6608
|
+
jsonModifier = ".json",
|
|
6609
|
+
dmtsModifier = ".d.mts",
|
|
6610
|
+
mtsModifier = ".mts",
|
|
6611
|
+
mjsModifier = ".mjs",
|
|
6612
|
+
dctsModifier = ".d.cts",
|
|
6613
|
+
ctsModifier = ".cts",
|
|
6614
|
+
cjsModifier = ".cjs"
|
|
6507
6615
|
}
|
|
6508
6616
|
enum ClassificationTypeNames {
|
|
6509
6617
|
comment = "comment",
|
|
@@ -9432,6 +9540,7 @@ declare namespace ts.server.protocol {
|
|
|
9432
9540
|
readonly provideRefactorNotApplicableReason?: boolean;
|
|
9433
9541
|
readonly allowRenameOfImportPath?: boolean;
|
|
9434
9542
|
readonly includePackageJsonAutoImports?: "auto" | "on" | "off";
|
|
9543
|
+
readonly jsxAttributeCompletionStyle?: "auto" | "braces" | "none";
|
|
9435
9544
|
readonly displayPartsForJSDoc?: boolean;
|
|
9436
9545
|
readonly generateReturnInDocTemplate?: boolean;
|
|
9437
9546
|
}
|
|
@@ -9740,8 +9849,8 @@ declare namespace ts.server {
|
|
|
9740
9849
|
readFile(fileName: string): string | undefined;
|
|
9741
9850
|
writeFile(fileName: string, content: string): void;
|
|
9742
9851
|
fileExists(file: string): boolean;
|
|
9743
|
-
resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference): (ResolvedModuleFull | undefined)[];
|
|
9744
|
-
getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
9852
|
+
resolveModuleNames(moduleNames: string[], containingFile: string, reusedNames?: string[], redirectedReference?: ResolvedProjectReference, _options?: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModuleFull | undefined)[];
|
|
9853
|
+
getResolvedModuleWithFailedLookupLocationsFromCache(moduleName: string, containingFile: string, resolutionMode?: ModuleKind.CommonJS | ModuleKind.ESNext): ResolvedModuleWithFailedLookupLocations | undefined;
|
|
9745
9854
|
resolveTypeReferenceDirectives(typeDirectiveNames: string[], containingFile: string, redirectedReference?: ResolvedProjectReference): (ResolvedTypeReferenceDirective | undefined)[];
|
|
9746
9855
|
directoryExists(path: string): boolean;
|
|
9747
9856
|
getDirectories(path: string): string[];
|
|
@@ -10935,9 +11044,9 @@ declare namespace ts {
|
|
|
10935
11044
|
/** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */
|
|
10936
11045
|
const updateImportEqualsDeclaration: (node: ImportEqualsDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isTypeOnly: boolean, name: Identifier, moduleReference: ModuleReference) => ImportEqualsDeclaration;
|
|
10937
11046
|
/** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
10938
|
-
const createImportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression) => ImportDeclaration;
|
|
11047
|
+
const createImportDeclaration: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause?: AssertClause | undefined) => ImportDeclaration;
|
|
10939
11048
|
/** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */
|
|
10940
|
-
const updateImportDeclaration: (node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression) => ImportDeclaration;
|
|
11049
|
+
const updateImportDeclaration: (node: ImportDeclaration, decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, assertClause: AssertClause | undefined) => ImportDeclaration;
|
|
10941
11050
|
/** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
10942
11051
|
const createNamespaceImport: (name: Identifier) => NamespaceImport;
|
|
10943
11052
|
/** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */
|
|
@@ -10947,9 +11056,9 @@ declare namespace ts {
|
|
|
10947
11056
|
/** @deprecated Use `factory.updateNamedImports` or the factory supplied by your transformation context instead. */
|
|
10948
11057
|
const updateNamedImports: (node: NamedImports, elements: readonly ImportSpecifier[]) => NamedImports;
|
|
10949
11058
|
/** @deprecated Use `factory.createImportSpecifier` or the factory supplied by your transformation context instead. */
|
|
10950
|
-
const createImportSpecifier: (propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
11059
|
+
const createImportSpecifier: (isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
10951
11060
|
/** @deprecated Use `factory.updateImportSpecifier` or the factory supplied by your transformation context instead. */
|
|
10952
|
-
const updateImportSpecifier: (node: ImportSpecifier, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
11061
|
+
const updateImportSpecifier: (node: ImportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ImportSpecifier;
|
|
10953
11062
|
/** @deprecated Use `factory.createExportAssignment` or the factory supplied by your transformation context instead. */
|
|
10954
11063
|
const createExportAssignment: (decorators: readonly Decorator[] | undefined, modifiers: readonly Modifier[] | undefined, isExportEquals: boolean | undefined, expression: Expression) => ExportAssignment;
|
|
10955
11064
|
/** @deprecated Use `factory.updateExportAssignment` or the factory supplied by your transformation context instead. */
|
|
@@ -10959,9 +11068,9 @@ declare namespace ts {
|
|
|
10959
11068
|
/** @deprecated Use `factory.updateNamedExports` or the factory supplied by your transformation context instead. */
|
|
10960
11069
|
const updateNamedExports: (node: NamedExports, elements: readonly ExportSpecifier[]) => NamedExports;
|
|
10961
11070
|
/** @deprecated Use `factory.createExportSpecifier` or the factory supplied by your transformation context instead. */
|
|
10962
|
-
const createExportSpecifier: (propertyName: string | Identifier | undefined, name: string | Identifier) => ExportSpecifier;
|
|
11071
|
+
const createExportSpecifier: (isTypeOnly: boolean, propertyName: string | Identifier | undefined, name: string | Identifier) => ExportSpecifier;
|
|
10963
11072
|
/** @deprecated Use `factory.updateExportSpecifier` or the factory supplied by your transformation context instead. */
|
|
10964
|
-
const updateExportSpecifier: (node: ExportSpecifier, propertyName: Identifier | undefined, name: Identifier) => ExportSpecifier;
|
|
11073
|
+
const updateExportSpecifier: (node: ExportSpecifier, isTypeOnly: boolean, propertyName: Identifier | undefined, name: Identifier) => ExportSpecifier;
|
|
10965
11074
|
/** @deprecated Use `factory.createExternalModuleReference` or the factory supplied by your transformation context instead. */
|
|
10966
11075
|
const createExternalModuleReference: (expression: Expression) => ExternalModuleReference;
|
|
10967
11076
|
/** @deprecated Use `factory.updateExternalModuleReference` or the factory supplied by your transformation context instead. */
|
|
@@ -11071,7 +11180,7 @@ declare namespace ts {
|
|
|
11071
11180
|
/** @deprecated Use `factory.updateHeritageClause` or the factory supplied by your transformation context instead. */
|
|
11072
11181
|
const updateHeritageClause: (node: HeritageClause, types: readonly ExpressionWithTypeArguments[]) => HeritageClause;
|
|
11073
11182
|
/** @deprecated Use `factory.createCatchClause` or the factory supplied by your transformation context instead. */
|
|
11074
|
-
const createCatchClause: (variableDeclaration: string | VariableDeclaration | undefined, block: Block) => CatchClause;
|
|
11183
|
+
const createCatchClause: (variableDeclaration: string | VariableDeclaration | BindingName | undefined, block: Block) => CatchClause;
|
|
11075
11184
|
/** @deprecated Use `factory.updateCatchClause` or the factory supplied by your transformation context instead. */
|
|
11076
11185
|
const updateCatchClause: (node: CatchClause, variableDeclaration: VariableDeclaration | undefined, block: Block) => CatchClause;
|
|
11077
11186
|
/** @deprecated Use `factory.createPropertyAssignment` or the factory supplied by your transformation context instead. */
|