@schematics/angular 17.0.0-next.3 → 17.0.0-next.4
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/app-shell/index.js +30 -52
- package/app-shell/schema.d.ts +0 -16
- package/app-shell/schema.js +1 -1
- package/app-shell/schema.json +0 -21
- package/application/index.js +3 -6
- package/application/schema.d.ts +1 -1
- package/application/schema.js +1 -1
- package/application/schema.json +2 -3
- package/collection.json +4 -4
- package/config/index.js +2 -2
- package/environments/index.js +6 -4
- package/ng-new/schema.d.ts +1 -1
- package/ng-new/schema.js +1 -1
- package/ng-new/schema.json +1 -1
- package/package.json +3 -3
- package/pipe/index.js +2 -2
- package/{universal → server}/files/root/tsconfig.server.json.template +1 -1
- package/{universal/files/src/app/__rootModuleFileName__.template → server/files/src/app/app.module.server.ts.template} +1 -1
- package/server/files/src/main.server.ts.template +1 -0
- package/{universal → server}/index.d.ts +2 -2
- package/server/index.js +182 -0
- package/{universal → server}/schema.d.ts +0 -12
- package/server/schema.js +5 -0
- package/server/schema.json +23 -0
- package/service-worker/index.js +30 -25
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +276 -251
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +11696 -9251
- package/utility/change.js +20 -6
- package/utility/generate-from-files.js +4 -4
- package/utility/json-file.js +5 -1
- package/utility/latest-versions/package.json +2 -2
- package/utility/standalone/code_block.js +26 -28
- package/utility/standalone/util.js +4 -2
- package/utility/workspace-models.d.ts +2 -1
- package/utility/workspace-models.js +3 -2
- package/utility/workspace.js +2 -1
- package/web-worker/index.js +3 -4
- package/workspace/files/tsconfig.json.template +1 -0
- package/universal/files/src/__main@stripTsExtension__.ts.template +0 -2
- package/universal/index.js +0 -141
- package/universal/schema.js +0 -5
- package/universal/schema.json +0 -40
- /package/{universal → server}/files/standalone-src/app/app.config.server.ts.template +0 -0
- /package/{universal → server}/files/standalone-src/main.server.ts.template +0 -0
|
@@ -14,7 +14,7 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
declare namespace ts {
|
|
17
|
-
const versionMajorMinor = "5.
|
|
17
|
+
const versionMajorMinor = "5.2";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -204,211 +204,212 @@ declare namespace ts {
|
|
|
204
204
|
UndefinedKeyword = 157,
|
|
205
205
|
UniqueKeyword = 158,
|
|
206
206
|
UnknownKeyword = 159,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
/** @deprecated */
|
|
355
|
-
/** @deprecated */
|
|
356
|
-
/** @deprecated */
|
|
357
|
-
/** @deprecated */
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
/** @deprecated */
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
207
|
+
UsingKeyword = 160,
|
|
208
|
+
FromKeyword = 161,
|
|
209
|
+
GlobalKeyword = 162,
|
|
210
|
+
BigIntKeyword = 163,
|
|
211
|
+
OverrideKeyword = 164,
|
|
212
|
+
OfKeyword = 165,
|
|
213
|
+
QualifiedName = 166,
|
|
214
|
+
ComputedPropertyName = 167,
|
|
215
|
+
TypeParameter = 168,
|
|
216
|
+
Parameter = 169,
|
|
217
|
+
Decorator = 170,
|
|
218
|
+
PropertySignature = 171,
|
|
219
|
+
PropertyDeclaration = 172,
|
|
220
|
+
MethodSignature = 173,
|
|
221
|
+
MethodDeclaration = 174,
|
|
222
|
+
ClassStaticBlockDeclaration = 175,
|
|
223
|
+
Constructor = 176,
|
|
224
|
+
GetAccessor = 177,
|
|
225
|
+
SetAccessor = 178,
|
|
226
|
+
CallSignature = 179,
|
|
227
|
+
ConstructSignature = 180,
|
|
228
|
+
IndexSignature = 181,
|
|
229
|
+
TypePredicate = 182,
|
|
230
|
+
TypeReference = 183,
|
|
231
|
+
FunctionType = 184,
|
|
232
|
+
ConstructorType = 185,
|
|
233
|
+
TypeQuery = 186,
|
|
234
|
+
TypeLiteral = 187,
|
|
235
|
+
ArrayType = 188,
|
|
236
|
+
TupleType = 189,
|
|
237
|
+
OptionalType = 190,
|
|
238
|
+
RestType = 191,
|
|
239
|
+
UnionType = 192,
|
|
240
|
+
IntersectionType = 193,
|
|
241
|
+
ConditionalType = 194,
|
|
242
|
+
InferType = 195,
|
|
243
|
+
ParenthesizedType = 196,
|
|
244
|
+
ThisType = 197,
|
|
245
|
+
TypeOperator = 198,
|
|
246
|
+
IndexedAccessType = 199,
|
|
247
|
+
MappedType = 200,
|
|
248
|
+
LiteralType = 201,
|
|
249
|
+
NamedTupleMember = 202,
|
|
250
|
+
TemplateLiteralType = 203,
|
|
251
|
+
TemplateLiteralTypeSpan = 204,
|
|
252
|
+
ImportType = 205,
|
|
253
|
+
ObjectBindingPattern = 206,
|
|
254
|
+
ArrayBindingPattern = 207,
|
|
255
|
+
BindingElement = 208,
|
|
256
|
+
ArrayLiteralExpression = 209,
|
|
257
|
+
ObjectLiteralExpression = 210,
|
|
258
|
+
PropertyAccessExpression = 211,
|
|
259
|
+
ElementAccessExpression = 212,
|
|
260
|
+
CallExpression = 213,
|
|
261
|
+
NewExpression = 214,
|
|
262
|
+
TaggedTemplateExpression = 215,
|
|
263
|
+
TypeAssertionExpression = 216,
|
|
264
|
+
ParenthesizedExpression = 217,
|
|
265
|
+
FunctionExpression = 218,
|
|
266
|
+
ArrowFunction = 219,
|
|
267
|
+
DeleteExpression = 220,
|
|
268
|
+
TypeOfExpression = 221,
|
|
269
|
+
VoidExpression = 222,
|
|
270
|
+
AwaitExpression = 223,
|
|
271
|
+
PrefixUnaryExpression = 224,
|
|
272
|
+
PostfixUnaryExpression = 225,
|
|
273
|
+
BinaryExpression = 226,
|
|
274
|
+
ConditionalExpression = 227,
|
|
275
|
+
TemplateExpression = 228,
|
|
276
|
+
YieldExpression = 229,
|
|
277
|
+
SpreadElement = 230,
|
|
278
|
+
ClassExpression = 231,
|
|
279
|
+
OmittedExpression = 232,
|
|
280
|
+
ExpressionWithTypeArguments = 233,
|
|
281
|
+
AsExpression = 234,
|
|
282
|
+
NonNullExpression = 235,
|
|
283
|
+
MetaProperty = 236,
|
|
284
|
+
SyntheticExpression = 237,
|
|
285
|
+
SatisfiesExpression = 238,
|
|
286
|
+
TemplateSpan = 239,
|
|
287
|
+
SemicolonClassElement = 240,
|
|
288
|
+
Block = 241,
|
|
289
|
+
EmptyStatement = 242,
|
|
290
|
+
VariableStatement = 243,
|
|
291
|
+
ExpressionStatement = 244,
|
|
292
|
+
IfStatement = 245,
|
|
293
|
+
DoStatement = 246,
|
|
294
|
+
WhileStatement = 247,
|
|
295
|
+
ForStatement = 248,
|
|
296
|
+
ForInStatement = 249,
|
|
297
|
+
ForOfStatement = 250,
|
|
298
|
+
ContinueStatement = 251,
|
|
299
|
+
BreakStatement = 252,
|
|
300
|
+
ReturnStatement = 253,
|
|
301
|
+
WithStatement = 254,
|
|
302
|
+
SwitchStatement = 255,
|
|
303
|
+
LabeledStatement = 256,
|
|
304
|
+
ThrowStatement = 257,
|
|
305
|
+
TryStatement = 258,
|
|
306
|
+
DebuggerStatement = 259,
|
|
307
|
+
VariableDeclaration = 260,
|
|
308
|
+
VariableDeclarationList = 261,
|
|
309
|
+
FunctionDeclaration = 262,
|
|
310
|
+
ClassDeclaration = 263,
|
|
311
|
+
InterfaceDeclaration = 264,
|
|
312
|
+
TypeAliasDeclaration = 265,
|
|
313
|
+
EnumDeclaration = 266,
|
|
314
|
+
ModuleDeclaration = 267,
|
|
315
|
+
ModuleBlock = 268,
|
|
316
|
+
CaseBlock = 269,
|
|
317
|
+
NamespaceExportDeclaration = 270,
|
|
318
|
+
ImportEqualsDeclaration = 271,
|
|
319
|
+
ImportDeclaration = 272,
|
|
320
|
+
ImportClause = 273,
|
|
321
|
+
NamespaceImport = 274,
|
|
322
|
+
NamedImports = 275,
|
|
323
|
+
ImportSpecifier = 276,
|
|
324
|
+
ExportAssignment = 277,
|
|
325
|
+
ExportDeclaration = 278,
|
|
326
|
+
NamedExports = 279,
|
|
327
|
+
NamespaceExport = 280,
|
|
328
|
+
ExportSpecifier = 281,
|
|
329
|
+
MissingDeclaration = 282,
|
|
330
|
+
ExternalModuleReference = 283,
|
|
331
|
+
JsxElement = 284,
|
|
332
|
+
JsxSelfClosingElement = 285,
|
|
333
|
+
JsxOpeningElement = 286,
|
|
334
|
+
JsxClosingElement = 287,
|
|
335
|
+
JsxFragment = 288,
|
|
336
|
+
JsxOpeningFragment = 289,
|
|
337
|
+
JsxClosingFragment = 290,
|
|
338
|
+
JsxAttribute = 291,
|
|
339
|
+
JsxAttributes = 292,
|
|
340
|
+
JsxSpreadAttribute = 293,
|
|
341
|
+
JsxExpression = 294,
|
|
342
|
+
JsxNamespacedName = 295,
|
|
343
|
+
CaseClause = 296,
|
|
344
|
+
DefaultClause = 297,
|
|
345
|
+
HeritageClause = 298,
|
|
346
|
+
CatchClause = 299,
|
|
347
|
+
AssertClause = 300,
|
|
348
|
+
AssertEntry = 301,
|
|
349
|
+
ImportTypeAssertionContainer = 302,
|
|
350
|
+
PropertyAssignment = 303,
|
|
351
|
+
ShorthandPropertyAssignment = 304,
|
|
352
|
+
SpreadAssignment = 305,
|
|
353
|
+
EnumMember = 306,
|
|
354
|
+
/** @deprecated */ UnparsedPrologue = 307,
|
|
355
|
+
/** @deprecated */ UnparsedPrepend = 308,
|
|
356
|
+
/** @deprecated */ UnparsedText = 309,
|
|
357
|
+
/** @deprecated */ UnparsedInternalText = 310,
|
|
358
|
+
/** @deprecated */ UnparsedSyntheticReference = 311,
|
|
359
|
+
SourceFile = 312,
|
|
360
|
+
Bundle = 313,
|
|
361
|
+
/** @deprecated */ UnparsedSource = 314,
|
|
362
|
+
/** @deprecated */ InputFiles = 315,
|
|
363
|
+
JSDocTypeExpression = 316,
|
|
364
|
+
JSDocNameReference = 317,
|
|
365
|
+
JSDocMemberName = 318,
|
|
366
|
+
JSDocAllType = 319,
|
|
367
|
+
JSDocUnknownType = 320,
|
|
368
|
+
JSDocNullableType = 321,
|
|
369
|
+
JSDocNonNullableType = 322,
|
|
370
|
+
JSDocOptionalType = 323,
|
|
371
|
+
JSDocFunctionType = 324,
|
|
372
|
+
JSDocVariadicType = 325,
|
|
373
|
+
JSDocNamepathType = 326,
|
|
374
|
+
JSDoc = 327,
|
|
374
375
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
375
|
-
JSDocComment =
|
|
376
|
-
JSDocText =
|
|
377
|
-
JSDocTypeLiteral =
|
|
378
|
-
JSDocSignature =
|
|
379
|
-
JSDocLink =
|
|
380
|
-
JSDocLinkCode =
|
|
381
|
-
JSDocLinkPlain =
|
|
382
|
-
JSDocTag =
|
|
383
|
-
JSDocAugmentsTag =
|
|
384
|
-
JSDocImplementsTag =
|
|
385
|
-
JSDocAuthorTag =
|
|
386
|
-
JSDocDeprecatedTag =
|
|
387
|
-
JSDocClassTag =
|
|
388
|
-
JSDocPublicTag =
|
|
389
|
-
JSDocPrivateTag =
|
|
390
|
-
JSDocProtectedTag =
|
|
391
|
-
JSDocReadonlyTag =
|
|
392
|
-
JSDocOverrideTag =
|
|
393
|
-
JSDocCallbackTag =
|
|
394
|
-
JSDocOverloadTag =
|
|
395
|
-
JSDocEnumTag =
|
|
396
|
-
JSDocParameterTag =
|
|
397
|
-
JSDocReturnTag =
|
|
398
|
-
JSDocThisTag =
|
|
399
|
-
JSDocTypeTag =
|
|
400
|
-
JSDocTemplateTag =
|
|
401
|
-
JSDocTypedefTag =
|
|
402
|
-
JSDocSeeTag =
|
|
403
|
-
JSDocPropertyTag =
|
|
404
|
-
JSDocThrowsTag =
|
|
405
|
-
JSDocSatisfiesTag =
|
|
406
|
-
SyntaxList =
|
|
407
|
-
NotEmittedStatement =
|
|
408
|
-
PartiallyEmittedExpression =
|
|
409
|
-
CommaListExpression =
|
|
410
|
-
SyntheticReferenceExpression =
|
|
411
|
-
Count =
|
|
376
|
+
JSDocComment = 327,
|
|
377
|
+
JSDocText = 328,
|
|
378
|
+
JSDocTypeLiteral = 329,
|
|
379
|
+
JSDocSignature = 330,
|
|
380
|
+
JSDocLink = 331,
|
|
381
|
+
JSDocLinkCode = 332,
|
|
382
|
+
JSDocLinkPlain = 333,
|
|
383
|
+
JSDocTag = 334,
|
|
384
|
+
JSDocAugmentsTag = 335,
|
|
385
|
+
JSDocImplementsTag = 336,
|
|
386
|
+
JSDocAuthorTag = 337,
|
|
387
|
+
JSDocDeprecatedTag = 338,
|
|
388
|
+
JSDocClassTag = 339,
|
|
389
|
+
JSDocPublicTag = 340,
|
|
390
|
+
JSDocPrivateTag = 341,
|
|
391
|
+
JSDocProtectedTag = 342,
|
|
392
|
+
JSDocReadonlyTag = 343,
|
|
393
|
+
JSDocOverrideTag = 344,
|
|
394
|
+
JSDocCallbackTag = 345,
|
|
395
|
+
JSDocOverloadTag = 346,
|
|
396
|
+
JSDocEnumTag = 347,
|
|
397
|
+
JSDocParameterTag = 348,
|
|
398
|
+
JSDocReturnTag = 349,
|
|
399
|
+
JSDocThisTag = 350,
|
|
400
|
+
JSDocTypeTag = 351,
|
|
401
|
+
JSDocTemplateTag = 352,
|
|
402
|
+
JSDocTypedefTag = 353,
|
|
403
|
+
JSDocSeeTag = 354,
|
|
404
|
+
JSDocPropertyTag = 355,
|
|
405
|
+
JSDocThrowsTag = 356,
|
|
406
|
+
JSDocSatisfiesTag = 357,
|
|
407
|
+
SyntaxList = 358,
|
|
408
|
+
NotEmittedStatement = 359,
|
|
409
|
+
PartiallyEmittedExpression = 360,
|
|
410
|
+
CommaListExpression = 361,
|
|
411
|
+
SyntheticReferenceExpression = 362,
|
|
412
|
+
Count = 363,
|
|
412
413
|
FirstAssignment = 64,
|
|
413
414
|
LastAssignment = 79,
|
|
414
415
|
FirstCompoundAssignment = 65,
|
|
@@ -416,15 +417,15 @@ declare namespace ts {
|
|
|
416
417
|
FirstReservedWord = 83,
|
|
417
418
|
LastReservedWord = 118,
|
|
418
419
|
FirstKeyword = 83,
|
|
419
|
-
LastKeyword =
|
|
420
|
+
LastKeyword = 165,
|
|
420
421
|
FirstFutureReservedWord = 119,
|
|
421
422
|
LastFutureReservedWord = 127,
|
|
422
|
-
FirstTypeNode =
|
|
423
|
-
LastTypeNode =
|
|
423
|
+
FirstTypeNode = 182,
|
|
424
|
+
LastTypeNode = 205,
|
|
424
425
|
FirstPunctuation = 19,
|
|
425
426
|
LastPunctuation = 79,
|
|
426
427
|
FirstToken = 0,
|
|
427
|
-
LastToken =
|
|
428
|
+
LastToken = 165,
|
|
428
429
|
FirstTriviaToken = 2,
|
|
429
430
|
LastTriviaToken = 7,
|
|
430
431
|
FirstLiteralToken = 9,
|
|
@@ -433,19 +434,19 @@ declare namespace ts {
|
|
|
433
434
|
LastTemplateToken = 18,
|
|
434
435
|
FirstBinaryOperator = 30,
|
|
435
436
|
LastBinaryOperator = 79,
|
|
436
|
-
FirstStatement =
|
|
437
|
-
LastStatement =
|
|
438
|
-
FirstNode =
|
|
439
|
-
FirstJSDocNode =
|
|
440
|
-
LastJSDocNode =
|
|
441
|
-
FirstJSDocTagNode =
|
|
442
|
-
LastJSDocTagNode =
|
|
437
|
+
FirstStatement = 243,
|
|
438
|
+
LastStatement = 259,
|
|
439
|
+
FirstNode = 166,
|
|
440
|
+
FirstJSDocNode = 316,
|
|
441
|
+
LastJSDocNode = 357,
|
|
442
|
+
FirstJSDocTagNode = 334,
|
|
443
|
+
LastJSDocTagNode = 357
|
|
443
444
|
}
|
|
444
445
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
445
446
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
446
447
|
type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
447
448
|
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.AmpersandAmpersandEqualsToken | SyntaxKind.BarBarToken | SyntaxKind.BarBarEqualsToken | SyntaxKind.QuestionQuestionToken | SyntaxKind.QuestionQuestionEqualsToken | 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;
|
|
448
|
-
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | 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;
|
|
449
|
+
type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SatisfiesKeyword | 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.UsingKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
449
450
|
type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
|
450
451
|
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;
|
|
451
452
|
type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
|
@@ -455,32 +456,35 @@ declare namespace ts {
|
|
|
455
456
|
None = 0,
|
|
456
457
|
Let = 1,
|
|
457
458
|
Const = 2,
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
459
|
+
Using = 4,
|
|
460
|
+
AwaitUsing = 6,
|
|
461
|
+
NestedNamespace = 8,
|
|
462
|
+
Synthesized = 16,
|
|
463
|
+
Namespace = 32,
|
|
464
|
+
OptionalChain = 64,
|
|
465
|
+
ExportContext = 128,
|
|
466
|
+
ContainsThis = 256,
|
|
467
|
+
HasImplicitReturn = 512,
|
|
468
|
+
HasExplicitReturn = 1024,
|
|
469
|
+
GlobalAugmentation = 2048,
|
|
470
|
+
HasAsyncFunctions = 4096,
|
|
471
|
+
DisallowInContext = 8192,
|
|
472
|
+
YieldContext = 16384,
|
|
473
|
+
DecoratorContext = 32768,
|
|
474
|
+
AwaitContext = 65536,
|
|
475
|
+
DisallowConditionalTypesContext = 131072,
|
|
476
|
+
ThisNodeHasError = 262144,
|
|
477
|
+
JavaScriptFile = 524288,
|
|
478
|
+
ThisNodeOrAnySubNodesHasError = 1048576,
|
|
479
|
+
HasAggregatedChildData = 2097152,
|
|
480
|
+
JSDoc = 16777216,
|
|
481
|
+
JsonFile = 134217728,
|
|
482
|
+
BlockScoped = 7,
|
|
483
|
+
Constant = 6,
|
|
484
|
+
ReachabilityCheckFlags = 1536,
|
|
485
|
+
ReachabilityAndEmitFlags = 5632,
|
|
486
|
+
ContextFlags = 101441536,
|
|
487
|
+
TypeExcludesFlags = 81920
|
|
484
488
|
}
|
|
485
489
|
enum ModifierFlags {
|
|
486
490
|
None = 0,
|
|
@@ -1398,7 +1402,6 @@ declare namespace ts {
|
|
|
1398
1402
|
type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
|
|
1399
1403
|
interface JsxSpreadAttribute extends ObjectLiteralElement {
|
|
1400
1404
|
readonly kind: SyntaxKind.JsxSpreadAttribute;
|
|
1401
|
-
readonly name: PropertyName;
|
|
1402
1405
|
readonly parent: JsxAttributes;
|
|
1403
1406
|
readonly expression: Expression;
|
|
1404
1407
|
}
|
|
@@ -1771,9 +1774,11 @@ declare namespace ts {
|
|
|
1771
1774
|
};
|
|
1772
1775
|
}) | ExportDeclaration & {
|
|
1773
1776
|
readonly isTypeOnly: true;
|
|
1777
|
+
readonly moduleSpecifier: Expression;
|
|
1774
1778
|
} | NamespaceExport & {
|
|
1775
1779
|
readonly parent: ExportDeclaration & {
|
|
1776
1780
|
readonly isTypeOnly: true;
|
|
1781
|
+
readonly moduleSpecifier: Expression;
|
|
1777
1782
|
};
|
|
1778
1783
|
};
|
|
1779
1784
|
type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration;
|
|
@@ -2218,7 +2223,7 @@ declare namespace ts {
|
|
|
2218
2223
|
getSourceFileByPath(path: Path): SourceFile | undefined;
|
|
2219
2224
|
getCurrentDirectory(): string;
|
|
2220
2225
|
}
|
|
2221
|
-
interface ParseConfigHost {
|
|
2226
|
+
interface ParseConfigHost extends ModuleResolutionHost {
|
|
2222
2227
|
useCaseSensitiveFileNames: boolean;
|
|
2223
2228
|
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[];
|
|
2224
2229
|
/**
|
|
@@ -2895,7 +2900,7 @@ declare namespace ts {
|
|
|
2895
2900
|
hasRestElement: boolean;
|
|
2896
2901
|
combinedFlags: ElementFlags;
|
|
2897
2902
|
readonly: boolean;
|
|
2898
|
-
labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration)[];
|
|
2903
|
+
labeledElementDeclarations?: readonly (NamedTupleMember | ParameterDeclaration | undefined)[];
|
|
2899
2904
|
}
|
|
2900
2905
|
interface TupleTypeReference extends TypeReference {
|
|
2901
2906
|
target: TupleType;
|
|
@@ -3536,7 +3541,14 @@ declare namespace ts {
|
|
|
3536
3541
|
All = 15,
|
|
3537
3542
|
ExcludeJSDocTypeAssertion = 16
|
|
3538
3543
|
}
|
|
3539
|
-
type
|
|
3544
|
+
type ImmediatelyInvokedFunctionExpression = CallExpression & {
|
|
3545
|
+
readonly expression: FunctionExpression;
|
|
3546
|
+
};
|
|
3547
|
+
type ImmediatelyInvokedArrowFunction = CallExpression & {
|
|
3548
|
+
readonly expression: ParenthesizedExpression & {
|
|
3549
|
+
readonly expression: ArrowFunction;
|
|
3550
|
+
};
|
|
3551
|
+
};
|
|
3540
3552
|
interface NodeFactory {
|
|
3541
3553
|
createNodeArray<T extends Node>(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray<T>;
|
|
3542
3554
|
createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral;
|
|
@@ -4006,8 +4018,8 @@ declare namespace ts {
|
|
|
4006
4018
|
createPostfixDecrement(operand: Expression): PostfixUnaryExpression;
|
|
4007
4019
|
createImmediatelyInvokedFunctionExpression(statements: readonly Statement[]): CallExpression;
|
|
4008
4020
|
createImmediatelyInvokedFunctionExpression(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
|
4009
|
-
createImmediatelyInvokedArrowFunction(statements: readonly Statement[]):
|
|
4010
|
-
createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression):
|
|
4021
|
+
createImmediatelyInvokedArrowFunction(statements: readonly Statement[]): ImmediatelyInvokedArrowFunction;
|
|
4022
|
+
createImmediatelyInvokedArrowFunction(statements: readonly Statement[], param: ParameterDeclaration, paramValue: Expression): ImmediatelyInvokedArrowFunction;
|
|
4011
4023
|
createVoidZero(): VoidExpression;
|
|
4012
4024
|
createExportDefault(expression: Expression): ExportAssignment;
|
|
4013
4025
|
createExternalModuleExport(exportName: Identifier): ExportDeclaration;
|
|
@@ -4337,6 +4349,7 @@ declare namespace ts {
|
|
|
4337
4349
|
readonly includeInlayPropertyDeclarationTypeHints?: boolean;
|
|
4338
4350
|
readonly includeInlayFunctionLikeReturnTypeHints?: boolean;
|
|
4339
4351
|
readonly includeInlayEnumMemberValueHints?: boolean;
|
|
4352
|
+
readonly interactiveInlayHints?: boolean;
|
|
4340
4353
|
readonly allowRenameOfImportPath?: boolean;
|
|
4341
4354
|
readonly autoImportFileExcludePatterns?: string[];
|
|
4342
4355
|
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
|
@@ -5595,7 +5608,7 @@ declare namespace ts {
|
|
|
5595
5608
|
* When targetSource file is specified, emits the files corresponding to that source file,
|
|
5596
5609
|
* otherwise for the whole program.
|
|
5597
5610
|
* In case of EmitAndSemanticDiagnosticsBuilderProgram, when targetSourceFile is specified,
|
|
5598
|
-
* it is assumed that file is handled from affected file list. If targetSourceFile is not specified,
|
|
5611
|
+
* it is assumed that that file is handled from affected file list. If targetSourceFile is not specified,
|
|
5599
5612
|
* it will only emit all the affected files instead of whole program
|
|
5600
5613
|
*
|
|
5601
5614
|
* The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host
|
|
@@ -6403,11 +6416,18 @@ declare namespace ts {
|
|
|
6403
6416
|
Enum = "Enum"
|
|
6404
6417
|
}
|
|
6405
6418
|
interface InlayHint {
|
|
6419
|
+
/** This property will be the empty string when displayParts is set. */
|
|
6406
6420
|
text: string;
|
|
6407
6421
|
position: number;
|
|
6408
6422
|
kind: InlayHintKind;
|
|
6409
6423
|
whitespaceBefore?: boolean;
|
|
6410
6424
|
whitespaceAfter?: boolean;
|
|
6425
|
+
displayParts?: InlayHintDisplayPart[];
|
|
6426
|
+
}
|
|
6427
|
+
interface InlayHintDisplayPart {
|
|
6428
|
+
text: string;
|
|
6429
|
+
span?: TextSpan;
|
|
6430
|
+
file?: string;
|
|
6411
6431
|
}
|
|
6412
6432
|
interface TodoCommentDescriptor {
|
|
6413
6433
|
text: string;
|
|
@@ -6839,6 +6859,7 @@ declare namespace ts {
|
|
|
6839
6859
|
kindModifiers?: string;
|
|
6840
6860
|
sortText: string;
|
|
6841
6861
|
insertText?: string;
|
|
6862
|
+
filterText?: string;
|
|
6842
6863
|
isSnippet?: true;
|
|
6843
6864
|
/**
|
|
6844
6865
|
* An optional span that indicates the text to be replaced by this completion item.
|
|
@@ -6998,6 +7019,10 @@ declare namespace ts {
|
|
|
6998
7019
|
variableElement = "var",
|
|
6999
7020
|
/** Inside function */
|
|
7000
7021
|
localVariableElement = "local var",
|
|
7022
|
+
/** using foo = ... */
|
|
7023
|
+
variableUsingElement = "using",
|
|
7024
|
+
/** await using foo = ... */
|
|
7025
|
+
variableAwaitUsingElement = "await using",
|
|
7001
7026
|
/**
|
|
7002
7027
|
* Inside module and script only
|
|
7003
7028
|
* function f() { }
|
|
@@ -7270,4 +7295,4 @@ declare namespace ts {
|
|
|
7270
7295
|
*/
|
|
7271
7296
|
function transform<T extends Node>(source: T | T[], transformers: TransformerFactory<T>[], compilerOptions?: CompilerOptions): TransformationResult<T>;
|
|
7272
7297
|
}
|
|
7273
|
-
export = ts;
|
|
7298
|
+
export = ts;
|