@schematics/angular 15.1.0-next.3 → 15.1.0
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/LICENSE +0 -0
- package/README.md +12 -12
- package/app-shell/index.d.ts +0 -0
- package/app-shell/index.js +2 -1
- package/app-shell/schema.d.ts +0 -0
- package/app-shell/schema.js +1 -0
- package/app-shell/schema.json +0 -0
- package/application/files/src/assets/.gitkeep.template +0 -0
- package/application/files/src/favicon.ico.template +0 -0
- package/application/files/src/index.html.template +0 -0
- package/application/files/src/main.ts.template +0 -0
- package/application/files/src/styles.__style__.template +0 -0
- package/application/files/tsconfig.app.json.template +0 -0
- package/application/files/tsconfig.spec.json.template +0 -0
- package/application/index.d.ts +0 -0
- package/application/index.js +1 -0
- package/application/other-files/app.component.html.template +0 -0
- package/application/other-files/app.component.spec.ts.template +0 -0
- package/application/other-files/app.component.ts.template +0 -0
- package/application/other-files/app.module.ts.template +0 -0
- package/application/schema.d.ts +0 -0
- package/application/schema.js +1 -0
- package/application/schema.json +0 -0
- package/class/files/__name@dasherize____type__.spec.ts.template +0 -0
- package/class/files/__name@dasherize____type__.ts.template +0 -0
- package/class/index.d.ts +0 -0
- package/class/index.js +1 -0
- package/class/schema.d.ts +1 -1
- package/class/schema.js +1 -0
- package/class/schema.json +1 -1
- package/collection.json +5 -0
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.__style__.template +0 -0
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.html.template +0 -0
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.spec.ts.template +0 -0
- package/component/files/__name@dasherize@if-flat__/__name@dasherize__.__type@dasherize__.ts.template +0 -0
- package/component/index.d.ts +0 -0
- package/component/index.js +1 -0
- package/component/schema.d.ts +1 -1
- package/component/schema.js +1 -0
- package/component/schema.json +1 -1
- package/config/files/.browserslistrc.template +16 -0
- package/config/files/karma.conf.js.template +39 -0
- package/{utility/test → config}/index.d.ts +3 -2
- package/config/index.js +72 -0
- package/config/schema.d.ts +20 -0
- package/config/schema.js +14 -0
- package/config/schema.json +28 -0
- package/directive/files/__name@dasherize@if-flat__/__name@dasherize__.directive.spec.ts.template +0 -0
- package/directive/files/__name@dasherize@if-flat__/__name@dasherize__.directive.ts.template +0 -0
- package/directive/index.d.ts +0 -0
- package/directive/index.js +1 -0
- package/directive/schema.d.ts +1 -1
- package/directive/schema.js +1 -0
- package/directive/schema.json +1 -1
- package/e2e/files/protractor.conf.js.template +0 -0
- package/e2e/files/src/app.e2e-spec.ts.template +0 -0
- package/e2e/files/src/app.po.ts.template +0 -0
- package/e2e/files/tsconfig.json.template +0 -0
- package/e2e/index.d.ts +0 -0
- package/e2e/index.js +1 -0
- package/e2e/schema.d.ts +1 -1
- package/e2e/schema.js +1 -0
- package/e2e/schema.json +1 -1
- package/enum/files/__name@dasherize____type__.ts.template +0 -0
- package/enum/index.d.ts +0 -0
- package/enum/index.js +1 -0
- package/enum/schema.d.ts +1 -1
- package/enum/schema.js +1 -0
- package/enum/schema.json +1 -1
- package/environments/index.d.ts +0 -0
- package/environments/index.js +1 -0
- package/environments/schema.d.ts +0 -0
- package/environments/schema.js +1 -0
- package/environments/schema.json +0 -0
- package/guard/implements-files/__name@dasherize__.guard.spec.ts.template +0 -0
- package/guard/implements-files/__name@dasherize__.guard.ts.template +0 -0
- package/guard/index.d.ts +0 -0
- package/guard/index.js +1 -0
- package/guard/schema.d.ts +1 -1
- package/guard/schema.js +1 -0
- package/guard/schema.json +1 -1
- package/guard/type-files/__name@dasherize__.guard.spec.ts.template +0 -0
- package/guard/type-files/__name@dasherize__.guard.ts.template +0 -0
- package/interceptor/class-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template +0 -0
- package/interceptor/class-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template +0 -0
- package/interceptor/functional-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.spec.ts.template +0 -0
- package/interceptor/functional-files/__name@dasherize@if-flat__/__name@dasherize__.interceptor.ts.template +0 -0
- package/interceptor/index.d.ts +0 -0
- package/interceptor/index.js +1 -0
- package/interceptor/schema.d.ts +1 -1
- package/interceptor/schema.js +1 -0
- package/interceptor/schema.json +1 -1
- package/interface/files/__name@dasherize____type__.ts.template +0 -0
- package/interface/index.d.ts +0 -0
- package/interface/index.js +1 -0
- package/interface/schema.d.ts +1 -1
- package/interface/schema.js +1 -0
- package/interface/schema.json +1 -1
- package/library/files/README.md.template +0 -0
- package/library/files/ng-package.json.template +0 -0
- package/library/files/package.json.template +0 -0
- package/library/files/src/__entryFile__.ts.template +0 -0
- package/library/files/tsconfig.lib.json.template +0 -0
- package/library/files/tsconfig.lib.prod.json.template +0 -0
- package/library/files/tsconfig.spec.json.template +0 -0
- package/library/index.d.ts +0 -0
- package/library/index.js +1 -0
- package/library/schema.d.ts +0 -0
- package/library/schema.js +1 -0
- package/library/schema.json +0 -0
- package/migrations/migration-collection.json +0 -0
- package/migrations/update-15/remove-browserslist-config.d.ts +0 -0
- package/migrations/update-15/remove-browserslist-config.js +2 -1
- package/migrations/update-15/remove-platform-server-exports.d.ts +0 -0
- package/migrations/update-15/remove-platform-server-exports.js +1 -0
- package/migrations/update-15/update-karma-main-file.d.ts +0 -0
- package/migrations/update-15/update-karma-main-file.js +1 -0
- package/migrations/update-15/update-typescript-target.d.ts +0 -0
- package/migrations/update-15/update-typescript-target.js +1 -0
- package/migrations/update-15/update-workspace-config.d.ts +0 -0
- package/migrations/update-15/update-workspace-config.js +1 -0
- package/module/files/__name@dasherize@if-flat__/__name@dasherize__-routing.module.ts.template +0 -0
- package/module/files/__name@dasherize@if-flat__/__name@dasherize__.module.ts.template +0 -0
- package/module/index.d.ts +0 -0
- package/module/index.js +1 -0
- package/module/schema.d.ts +1 -1
- package/module/schema.js +1 -0
- package/module/schema.json +1 -1
- package/ng-new/index.d.ts +0 -0
- package/ng-new/index.js +1 -0
- package/ng-new/schema.d.ts +1 -1
- package/ng-new/schema.js +1 -0
- package/ng-new/schema.json +0 -0
- package/package.json +7 -7
- package/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.spec.ts.template +0 -0
- package/pipe/files/__name@dasherize@if-flat__/__name@dasherize__.pipe.ts.template +0 -0
- package/pipe/index.d.ts +0 -0
- package/pipe/index.js +1 -0
- package/pipe/schema.d.ts +1 -1
- package/pipe/schema.js +1 -0
- package/pipe/schema.json +1 -1
- package/private/components.d.ts +0 -0
- package/private/components.js +1 -0
- package/private/standalone.d.ts +0 -0
- package/private/standalone.js +1 -0
- package/resolver/class-files/__name@dasherize__.resolver.spec.ts.template +0 -0
- package/resolver/class-files/__name@dasherize__.resolver.ts.template +0 -0
- package/resolver/functional-files/__name@dasherize__.resolver.spec.ts.template +0 -0
- package/resolver/functional-files/__name@dasherize__.resolver.ts.template +0 -0
- package/resolver/index.d.ts +0 -0
- package/resolver/index.js +1 -0
- package/resolver/schema.d.ts +1 -1
- package/resolver/schema.js +1 -0
- package/resolver/schema.json +1 -1
- package/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.spec.ts.template +0 -0
- package/service/files/__name@dasherize@if-flat__/__name@dasherize__.service.ts.template +0 -0
- package/service/index.d.ts +0 -0
- package/service/index.js +1 -0
- package/service/schema.d.ts +1 -1
- package/service/schema.js +1 -0
- package/service/schema.json +1 -1
- package/service-worker/files/ngsw-config.json.template +0 -0
- package/service-worker/index.d.ts +0 -0
- package/service-worker/index.js +1 -0
- package/service-worker/schema.d.ts +0 -0
- package/service-worker/schema.js +1 -0
- package/service-worker/schema.json +0 -0
- package/third_party/github.com/Microsoft/TypeScript/LICENSE +0 -0
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts +294 -260
- package/third_party/github.com/Microsoft/TypeScript/lib/typescript.js +11590 -9928
- package/universal/files/root/tsconfig.server.json.template +0 -0
- package/universal/files/src/__main@stripTsExtension__.ts.template +0 -0
- package/universal/files/src/app/__rootModuleFileName__.template +0 -0
- package/universal/index.d.ts +0 -0
- package/universal/index.js +1 -0
- package/universal/schema.d.ts +0 -0
- package/universal/schema.js +1 -0
- package/universal/schema.json +0 -0
- package/utility/add-declaration-to-ng-module.d.ts +0 -0
- package/utility/add-declaration-to-ng-module.js +1 -0
- package/utility/ast-utils.d.ts +0 -0
- package/utility/ast-utils.js +1 -0
- package/utility/change.d.ts +0 -0
- package/utility/change.js +1 -0
- package/utility/dependencies.d.ts +0 -0
- package/utility/dependencies.js +1 -0
- package/utility/dependency.d.ts +0 -0
- package/utility/dependency.js +1 -0
- package/utility/find-module.d.ts +0 -0
- package/utility/find-module.js +1 -0
- package/utility/generate-from-files.d.ts +0 -0
- package/utility/generate-from-files.js +1 -0
- package/utility/index.d.ts +0 -0
- package/utility/index.js +1 -0
- package/utility/json-file.d.ts +2 -16
- package/utility/json-file.js +1 -0
- package/utility/latest-versions/package.json +3 -3
- package/utility/latest-versions.d.ts +0 -0
- package/utility/latest-versions.js +2 -1
- package/utility/ng-ast-utils.d.ts +0 -0
- package/utility/ng-ast-utils.js +1 -0
- package/utility/parse-name.d.ts +0 -0
- package/utility/parse-name.js +1 -0
- package/utility/paths.d.ts +0 -0
- package/utility/paths.js +1 -0
- package/utility/project-targets.d.ts +0 -0
- package/utility/project-targets.js +1 -0
- package/utility/validation.d.ts +0 -0
- package/utility/validation.js +1 -0
- package/utility/workspace-models.d.ts +9 -9
- package/utility/workspace-models.js +1 -0
- package/utility/workspace.d.ts +3 -3
- package/utility/workspace.js +1 -0
- package/web-worker/files/worker/__name@dasherize__.worker.ts.template +0 -0
- package/web-worker/files/worker-tsconfig/tsconfig.worker.json.template +0 -0
- package/web-worker/index.d.ts +0 -0
- package/web-worker/index.js +1 -0
- package/web-worker/schema.d.ts +1 -1
- package/web-worker/schema.js +1 -0
- package/web-worker/schema.json +1 -1
- package/workspace/files/README.md.template +0 -0
- package/workspace/files/__dot__editorconfig.template +0 -0
- package/workspace/files/__dot__gitignore.template +0 -0
- package/workspace/files/__dot__vscode/extensions.json.template +0 -0
- package/workspace/files/__dot__vscode/launch.json.template +0 -0
- package/workspace/files/__dot__vscode/tasks.json.template +0 -0
- package/workspace/files/angular.json.template +0 -0
- package/workspace/files/package.json.template +0 -0
- package/workspace/files/tsconfig.json.template +0 -0
- package/workspace/index.d.ts +0 -0
- package/workspace/index.js +1 -0
- package/workspace/schema.d.ts +0 -0
- package/workspace/schema.js +1 -0
- package/workspace/schema.json +0 -0
- package/third_party/github.com/Microsoft/TypeScript/BUILD.bazel +0 -21
- package/utility/test/create-app-module.d.ts +0 -9
- package/utility/test/create-app-module.js +0 -31
- package/utility/test/get-file-content.d.ts +0 -9
- package/utility/test/get-file-content.js +0 -18
- package/utility/test/index.js +0 -25
|
@@ -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.9";
|
|
18
18
|
/** The version of the TypeScript compiler release */
|
|
19
19
|
const version: string;
|
|
20
20
|
/**
|
|
@@ -232,237 +232,240 @@ declare namespace ts {
|
|
|
232
232
|
StaticKeyword = 124,
|
|
233
233
|
YieldKeyword = 125,
|
|
234
234
|
AbstractKeyword = 126,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
235
|
+
AccessorKeyword = 127,
|
|
236
|
+
AsKeyword = 128,
|
|
237
|
+
AssertsKeyword = 129,
|
|
238
|
+
AssertKeyword = 130,
|
|
239
|
+
AnyKeyword = 131,
|
|
240
|
+
AsyncKeyword = 132,
|
|
241
|
+
AwaitKeyword = 133,
|
|
242
|
+
BooleanKeyword = 134,
|
|
243
|
+
ConstructorKeyword = 135,
|
|
244
|
+
DeclareKeyword = 136,
|
|
245
|
+
GetKeyword = 137,
|
|
246
|
+
InferKeyword = 138,
|
|
247
|
+
IntrinsicKeyword = 139,
|
|
248
|
+
IsKeyword = 140,
|
|
249
|
+
KeyOfKeyword = 141,
|
|
250
|
+
ModuleKeyword = 142,
|
|
251
|
+
NamespaceKeyword = 143,
|
|
252
|
+
NeverKeyword = 144,
|
|
253
|
+
OutKeyword = 145,
|
|
254
|
+
ReadonlyKeyword = 146,
|
|
255
|
+
RequireKeyword = 147,
|
|
256
|
+
NumberKeyword = 148,
|
|
257
|
+
ObjectKeyword = 149,
|
|
258
|
+
SatisfiesKeyword = 150,
|
|
259
|
+
SetKeyword = 151,
|
|
260
|
+
StringKeyword = 152,
|
|
261
|
+
SymbolKeyword = 153,
|
|
262
|
+
TypeKeyword = 154,
|
|
263
|
+
UndefinedKeyword = 155,
|
|
264
|
+
UniqueKeyword = 156,
|
|
265
|
+
UnknownKeyword = 157,
|
|
266
|
+
FromKeyword = 158,
|
|
267
|
+
GlobalKeyword = 159,
|
|
268
|
+
BigIntKeyword = 160,
|
|
269
|
+
OverrideKeyword = 161,
|
|
270
|
+
OfKeyword = 162,
|
|
271
|
+
QualifiedName = 163,
|
|
272
|
+
ComputedPropertyName = 164,
|
|
273
|
+
TypeParameter = 165,
|
|
274
|
+
Parameter = 166,
|
|
275
|
+
Decorator = 167,
|
|
276
|
+
PropertySignature = 168,
|
|
277
|
+
PropertyDeclaration = 169,
|
|
278
|
+
MethodSignature = 170,
|
|
279
|
+
MethodDeclaration = 171,
|
|
280
|
+
ClassStaticBlockDeclaration = 172,
|
|
281
|
+
Constructor = 173,
|
|
282
|
+
GetAccessor = 174,
|
|
283
|
+
SetAccessor = 175,
|
|
284
|
+
CallSignature = 176,
|
|
285
|
+
ConstructSignature = 177,
|
|
286
|
+
IndexSignature = 178,
|
|
287
|
+
TypePredicate = 179,
|
|
288
|
+
TypeReference = 180,
|
|
289
|
+
FunctionType = 181,
|
|
290
|
+
ConstructorType = 182,
|
|
291
|
+
TypeQuery = 183,
|
|
292
|
+
TypeLiteral = 184,
|
|
293
|
+
ArrayType = 185,
|
|
294
|
+
TupleType = 186,
|
|
295
|
+
OptionalType = 187,
|
|
296
|
+
RestType = 188,
|
|
297
|
+
UnionType = 189,
|
|
298
|
+
IntersectionType = 190,
|
|
299
|
+
ConditionalType = 191,
|
|
300
|
+
InferType = 192,
|
|
301
|
+
ParenthesizedType = 193,
|
|
302
|
+
ThisType = 194,
|
|
303
|
+
TypeOperator = 195,
|
|
304
|
+
IndexedAccessType = 196,
|
|
305
|
+
MappedType = 197,
|
|
306
|
+
LiteralType = 198,
|
|
307
|
+
NamedTupleMember = 199,
|
|
308
|
+
TemplateLiteralType = 200,
|
|
309
|
+
TemplateLiteralTypeSpan = 201,
|
|
310
|
+
ImportType = 202,
|
|
311
|
+
ObjectBindingPattern = 203,
|
|
312
|
+
ArrayBindingPattern = 204,
|
|
313
|
+
BindingElement = 205,
|
|
314
|
+
ArrayLiteralExpression = 206,
|
|
315
|
+
ObjectLiteralExpression = 207,
|
|
316
|
+
PropertyAccessExpression = 208,
|
|
317
|
+
ElementAccessExpression = 209,
|
|
318
|
+
CallExpression = 210,
|
|
319
|
+
NewExpression = 211,
|
|
320
|
+
TaggedTemplateExpression = 212,
|
|
321
|
+
TypeAssertionExpression = 213,
|
|
322
|
+
ParenthesizedExpression = 214,
|
|
323
|
+
FunctionExpression = 215,
|
|
324
|
+
ArrowFunction = 216,
|
|
325
|
+
DeleteExpression = 217,
|
|
326
|
+
TypeOfExpression = 218,
|
|
327
|
+
VoidExpression = 219,
|
|
328
|
+
AwaitExpression = 220,
|
|
329
|
+
PrefixUnaryExpression = 221,
|
|
330
|
+
PostfixUnaryExpression = 222,
|
|
331
|
+
BinaryExpression = 223,
|
|
332
|
+
ConditionalExpression = 224,
|
|
333
|
+
TemplateExpression = 225,
|
|
334
|
+
YieldExpression = 226,
|
|
335
|
+
SpreadElement = 227,
|
|
336
|
+
ClassExpression = 228,
|
|
337
|
+
OmittedExpression = 229,
|
|
338
|
+
ExpressionWithTypeArguments = 230,
|
|
339
|
+
AsExpression = 231,
|
|
340
|
+
NonNullExpression = 232,
|
|
341
|
+
MetaProperty = 233,
|
|
342
|
+
SyntheticExpression = 234,
|
|
343
|
+
SatisfiesExpression = 235,
|
|
344
|
+
TemplateSpan = 236,
|
|
345
|
+
SemicolonClassElement = 237,
|
|
346
|
+
Block = 238,
|
|
347
|
+
EmptyStatement = 239,
|
|
348
|
+
VariableStatement = 240,
|
|
349
|
+
ExpressionStatement = 241,
|
|
350
|
+
IfStatement = 242,
|
|
351
|
+
DoStatement = 243,
|
|
352
|
+
WhileStatement = 244,
|
|
353
|
+
ForStatement = 245,
|
|
354
|
+
ForInStatement = 246,
|
|
355
|
+
ForOfStatement = 247,
|
|
356
|
+
ContinueStatement = 248,
|
|
357
|
+
BreakStatement = 249,
|
|
358
|
+
ReturnStatement = 250,
|
|
359
|
+
WithStatement = 251,
|
|
360
|
+
SwitchStatement = 252,
|
|
361
|
+
LabeledStatement = 253,
|
|
362
|
+
ThrowStatement = 254,
|
|
363
|
+
TryStatement = 255,
|
|
364
|
+
DebuggerStatement = 256,
|
|
365
|
+
VariableDeclaration = 257,
|
|
366
|
+
VariableDeclarationList = 258,
|
|
367
|
+
FunctionDeclaration = 259,
|
|
368
|
+
ClassDeclaration = 260,
|
|
369
|
+
InterfaceDeclaration = 261,
|
|
370
|
+
TypeAliasDeclaration = 262,
|
|
371
|
+
EnumDeclaration = 263,
|
|
372
|
+
ModuleDeclaration = 264,
|
|
373
|
+
ModuleBlock = 265,
|
|
374
|
+
CaseBlock = 266,
|
|
375
|
+
NamespaceExportDeclaration = 267,
|
|
376
|
+
ImportEqualsDeclaration = 268,
|
|
377
|
+
ImportDeclaration = 269,
|
|
378
|
+
ImportClause = 270,
|
|
379
|
+
NamespaceImport = 271,
|
|
380
|
+
NamedImports = 272,
|
|
381
|
+
ImportSpecifier = 273,
|
|
382
|
+
ExportAssignment = 274,
|
|
383
|
+
ExportDeclaration = 275,
|
|
384
|
+
NamedExports = 276,
|
|
385
|
+
NamespaceExport = 277,
|
|
386
|
+
ExportSpecifier = 278,
|
|
387
|
+
MissingDeclaration = 279,
|
|
388
|
+
ExternalModuleReference = 280,
|
|
389
|
+
JsxElement = 281,
|
|
390
|
+
JsxSelfClosingElement = 282,
|
|
391
|
+
JsxOpeningElement = 283,
|
|
392
|
+
JsxClosingElement = 284,
|
|
393
|
+
JsxFragment = 285,
|
|
394
|
+
JsxOpeningFragment = 286,
|
|
395
|
+
JsxClosingFragment = 287,
|
|
396
|
+
JsxAttribute = 288,
|
|
397
|
+
JsxAttributes = 289,
|
|
398
|
+
JsxSpreadAttribute = 290,
|
|
399
|
+
JsxExpression = 291,
|
|
400
|
+
CaseClause = 292,
|
|
401
|
+
DefaultClause = 293,
|
|
402
|
+
HeritageClause = 294,
|
|
403
|
+
CatchClause = 295,
|
|
404
|
+
AssertClause = 296,
|
|
405
|
+
AssertEntry = 297,
|
|
406
|
+
ImportTypeAssertionContainer = 298,
|
|
407
|
+
PropertyAssignment = 299,
|
|
408
|
+
ShorthandPropertyAssignment = 300,
|
|
409
|
+
SpreadAssignment = 301,
|
|
410
|
+
EnumMember = 302,
|
|
411
|
+
UnparsedPrologue = 303,
|
|
412
|
+
UnparsedPrepend = 304,
|
|
413
|
+
UnparsedText = 305,
|
|
414
|
+
UnparsedInternalText = 306,
|
|
415
|
+
UnparsedSyntheticReference = 307,
|
|
416
|
+
SourceFile = 308,
|
|
417
|
+
Bundle = 309,
|
|
418
|
+
UnparsedSource = 310,
|
|
419
|
+
InputFiles = 311,
|
|
420
|
+
JSDocTypeExpression = 312,
|
|
421
|
+
JSDocNameReference = 313,
|
|
422
|
+
JSDocMemberName = 314,
|
|
423
|
+
JSDocAllType = 315,
|
|
424
|
+
JSDocUnknownType = 316,
|
|
425
|
+
JSDocNullableType = 317,
|
|
426
|
+
JSDocNonNullableType = 318,
|
|
427
|
+
JSDocOptionalType = 319,
|
|
428
|
+
JSDocFunctionType = 320,
|
|
429
|
+
JSDocVariadicType = 321,
|
|
430
|
+
JSDocNamepathType = 322,
|
|
431
|
+
JSDoc = 323,
|
|
429
432
|
/** @deprecated Use SyntaxKind.JSDoc */
|
|
430
|
-
JSDocComment =
|
|
431
|
-
JSDocText =
|
|
432
|
-
JSDocTypeLiteral =
|
|
433
|
-
JSDocSignature =
|
|
434
|
-
JSDocLink =
|
|
435
|
-
JSDocLinkCode =
|
|
436
|
-
JSDocLinkPlain =
|
|
437
|
-
JSDocTag =
|
|
438
|
-
JSDocAugmentsTag =
|
|
439
|
-
JSDocImplementsTag =
|
|
440
|
-
JSDocAuthorTag =
|
|
441
|
-
JSDocDeprecatedTag =
|
|
442
|
-
JSDocClassTag =
|
|
443
|
-
JSDocPublicTag =
|
|
444
|
-
JSDocPrivateTag =
|
|
445
|
-
JSDocProtectedTag =
|
|
446
|
-
JSDocReadonlyTag =
|
|
447
|
-
JSDocOverrideTag =
|
|
448
|
-
JSDocCallbackTag =
|
|
449
|
-
JSDocEnumTag =
|
|
450
|
-
JSDocParameterTag =
|
|
451
|
-
JSDocReturnTag =
|
|
452
|
-
JSDocThisTag =
|
|
453
|
-
JSDocTypeTag =
|
|
454
|
-
JSDocTemplateTag =
|
|
455
|
-
JSDocTypedefTag =
|
|
456
|
-
JSDocSeeTag =
|
|
457
|
-
JSDocPropertyTag =
|
|
458
|
-
SyntaxList =
|
|
459
|
-
NotEmittedStatement =
|
|
460
|
-
PartiallyEmittedExpression =
|
|
461
|
-
CommaListExpression =
|
|
462
|
-
MergeDeclarationMarker =
|
|
463
|
-
EndOfDeclarationMarker =
|
|
464
|
-
SyntheticReferenceExpression =
|
|
465
|
-
Count =
|
|
433
|
+
JSDocComment = 323,
|
|
434
|
+
JSDocText = 324,
|
|
435
|
+
JSDocTypeLiteral = 325,
|
|
436
|
+
JSDocSignature = 326,
|
|
437
|
+
JSDocLink = 327,
|
|
438
|
+
JSDocLinkCode = 328,
|
|
439
|
+
JSDocLinkPlain = 329,
|
|
440
|
+
JSDocTag = 330,
|
|
441
|
+
JSDocAugmentsTag = 331,
|
|
442
|
+
JSDocImplementsTag = 332,
|
|
443
|
+
JSDocAuthorTag = 333,
|
|
444
|
+
JSDocDeprecatedTag = 334,
|
|
445
|
+
JSDocClassTag = 335,
|
|
446
|
+
JSDocPublicTag = 336,
|
|
447
|
+
JSDocPrivateTag = 337,
|
|
448
|
+
JSDocProtectedTag = 338,
|
|
449
|
+
JSDocReadonlyTag = 339,
|
|
450
|
+
JSDocOverrideTag = 340,
|
|
451
|
+
JSDocCallbackTag = 341,
|
|
452
|
+
JSDocEnumTag = 342,
|
|
453
|
+
JSDocParameterTag = 343,
|
|
454
|
+
JSDocReturnTag = 344,
|
|
455
|
+
JSDocThisTag = 345,
|
|
456
|
+
JSDocTypeTag = 346,
|
|
457
|
+
JSDocTemplateTag = 347,
|
|
458
|
+
JSDocTypedefTag = 348,
|
|
459
|
+
JSDocSeeTag = 349,
|
|
460
|
+
JSDocPropertyTag = 350,
|
|
461
|
+
SyntaxList = 351,
|
|
462
|
+
NotEmittedStatement = 352,
|
|
463
|
+
PartiallyEmittedExpression = 353,
|
|
464
|
+
CommaListExpression = 354,
|
|
465
|
+
MergeDeclarationMarker = 355,
|
|
466
|
+
EndOfDeclarationMarker = 356,
|
|
467
|
+
SyntheticReferenceExpression = 357,
|
|
468
|
+
Count = 358,
|
|
466
469
|
FirstAssignment = 63,
|
|
467
470
|
LastAssignment = 78,
|
|
468
471
|
FirstCompoundAssignment = 64,
|
|
@@ -470,15 +473,15 @@ declare namespace ts {
|
|
|
470
473
|
FirstReservedWord = 81,
|
|
471
474
|
LastReservedWord = 116,
|
|
472
475
|
FirstKeyword = 81,
|
|
473
|
-
LastKeyword =
|
|
476
|
+
LastKeyword = 162,
|
|
474
477
|
FirstFutureReservedWord = 117,
|
|
475
478
|
LastFutureReservedWord = 125,
|
|
476
|
-
FirstTypeNode =
|
|
477
|
-
LastTypeNode =
|
|
479
|
+
FirstTypeNode = 179,
|
|
480
|
+
LastTypeNode = 202,
|
|
478
481
|
FirstPunctuation = 18,
|
|
479
482
|
LastPunctuation = 78,
|
|
480
483
|
FirstToken = 0,
|
|
481
|
-
LastToken =
|
|
484
|
+
LastToken = 162,
|
|
482
485
|
FirstTriviaToken = 2,
|
|
483
486
|
LastTriviaToken = 7,
|
|
484
487
|
FirstLiteralToken = 8,
|
|
@@ -487,20 +490,20 @@ declare namespace ts {
|
|
|
487
490
|
LastTemplateToken = 17,
|
|
488
491
|
FirstBinaryOperator = 29,
|
|
489
492
|
LastBinaryOperator = 78,
|
|
490
|
-
FirstStatement =
|
|
491
|
-
LastStatement =
|
|
492
|
-
FirstNode =
|
|
493
|
-
FirstJSDocNode =
|
|
494
|
-
LastJSDocNode =
|
|
495
|
-
FirstJSDocTagNode =
|
|
496
|
-
LastJSDocTagNode =
|
|
493
|
+
FirstStatement = 240,
|
|
494
|
+
LastStatement = 256,
|
|
495
|
+
FirstNode = 163,
|
|
496
|
+
FirstJSDocNode = 312,
|
|
497
|
+
LastJSDocNode = 350,
|
|
498
|
+
FirstJSDocTagNode = 330,
|
|
499
|
+
LastJSDocTagNode = 350,
|
|
497
500
|
}
|
|
498
501
|
export type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
499
502
|
export type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
500
503
|
export type PseudoLiteralSyntaxKind = SyntaxKind.TemplateHead | SyntaxKind.TemplateMiddle | SyntaxKind.TemplateTail;
|
|
501
504
|
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;
|
|
502
|
-
export type KeywordSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AnyKeyword | SyntaxKind.AsKeyword | SyntaxKind.AssertsKeyword | SyntaxKind.AssertKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.AwaitKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.BreakKeyword | SyntaxKind.CaseKeyword | SyntaxKind.CatchKeyword | SyntaxKind.ClassKeyword | SyntaxKind.ConstKeyword | SyntaxKind.ConstructorKeyword | SyntaxKind.ContinueKeyword | SyntaxKind.DebuggerKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.DeleteKeyword | SyntaxKind.DoKeyword | SyntaxKind.ElseKeyword | SyntaxKind.EnumKeyword | SyntaxKind.ExportKeyword | SyntaxKind.ExtendsKeyword | SyntaxKind.FalseKeyword | SyntaxKind.FinallyKeyword | SyntaxKind.ForKeyword | SyntaxKind.FromKeyword | SyntaxKind.FunctionKeyword | SyntaxKind.GetKeyword | SyntaxKind.GlobalKeyword | SyntaxKind.IfKeyword | SyntaxKind.ImplementsKeyword | SyntaxKind.ImportKeyword | SyntaxKind.InferKeyword | SyntaxKind.InKeyword | SyntaxKind.InstanceOfKeyword | SyntaxKind.InterfaceKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.IsKeyword | SyntaxKind.KeyOfKeyword | SyntaxKind.LetKeyword | SyntaxKind.ModuleKeyword | SyntaxKind.NamespaceKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NewKeyword | SyntaxKind.NullKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.OfKeyword | SyntaxKind.PackageKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.RequireKeyword | SyntaxKind.ReturnKeyword | SyntaxKind.SetKeyword | SyntaxKind.StaticKeyword | SyntaxKind.StringKeyword | SyntaxKind.SuperKeyword | SyntaxKind.SwitchKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.ThisKeyword | SyntaxKind.ThrowKeyword | SyntaxKind.TrueKeyword | SyntaxKind.TryKeyword | SyntaxKind.TypeKeyword | SyntaxKind.TypeOfKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UniqueKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VarKeyword | SyntaxKind.VoidKeyword | SyntaxKind.WhileKeyword | SyntaxKind.WithKeyword | SyntaxKind.YieldKeyword;
|
|
503
|
-
export type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
|
|
505
|
+
export 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;
|
|
506
|
+
export 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;
|
|
504
507
|
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;
|
|
505
508
|
export type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
|
|
506
509
|
export type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
|
|
@@ -545,9 +548,10 @@ declare namespace ts {
|
|
|
545
548
|
Protected = 16,
|
|
546
549
|
Static = 32,
|
|
547
550
|
Readonly = 64,
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
+
Accessor = 128,
|
|
552
|
+
Abstract = 256,
|
|
553
|
+
Async = 512,
|
|
554
|
+
Default = 1024,
|
|
551
555
|
Const = 2048,
|
|
552
556
|
HasComputedJSDocModifiers = 4096,
|
|
553
557
|
Deprecated = 8192,
|
|
@@ -559,10 +563,10 @@ declare namespace ts {
|
|
|
559
563
|
AccessibilityModifier = 28,
|
|
560
564
|
ParameterPropertyModifier = 16476,
|
|
561
565
|
NonPublicAccessibilityModifier = 24,
|
|
562
|
-
TypeScriptModifier =
|
|
563
|
-
ExportDefault =
|
|
564
|
-
All =
|
|
565
|
-
Modifier =
|
|
566
|
+
TypeScriptModifier = 117086,
|
|
567
|
+
ExportDefault = 1025,
|
|
568
|
+
All = 258047,
|
|
569
|
+
Modifier = 126975
|
|
566
570
|
}
|
|
567
571
|
export enum JsxFlags {
|
|
568
572
|
None = 0,
|
|
@@ -618,6 +622,7 @@ declare namespace ts {
|
|
|
618
622
|
export interface ModifierToken<TKind extends ModifierSyntaxKind> extends KeywordToken<TKind> {
|
|
619
623
|
}
|
|
620
624
|
export type AbstractKeyword = ModifierToken<SyntaxKind.AbstractKeyword>;
|
|
625
|
+
export type AccessorKeyword = ModifierToken<SyntaxKind.AccessorKeyword>;
|
|
621
626
|
export type AsyncKeyword = ModifierToken<SyntaxKind.AsyncKeyword>;
|
|
622
627
|
export type ConstKeyword = ModifierToken<SyntaxKind.ConstKeyword>;
|
|
623
628
|
export type DeclareKeyword = ModifierToken<SyntaxKind.DeclareKeyword>;
|
|
@@ -633,11 +638,11 @@ declare namespace ts {
|
|
|
633
638
|
export type StaticKeyword = ModifierToken<SyntaxKind.StaticKeyword>;
|
|
634
639
|
/** @deprecated Use `ReadonlyKeyword` instead. */
|
|
635
640
|
export type ReadonlyToken = ReadonlyKeyword;
|
|
636
|
-
export type Modifier = AbstractKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | InKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OutKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
|
|
641
|
+
export type Modifier = AbstractKeyword | AccessorKeyword | AsyncKeyword | ConstKeyword | DeclareKeyword | DefaultKeyword | ExportKeyword | InKeyword | PrivateKeyword | ProtectedKeyword | PublicKeyword | OutKeyword | OverrideKeyword | ReadonlyKeyword | StaticKeyword;
|
|
637
642
|
export type ModifierLike = Modifier | Decorator;
|
|
638
643
|
export type AccessibilityModifier = PublicKeyword | PrivateKeyword | ProtectedKeyword;
|
|
639
644
|
export type ParameterPropertyModifier = AccessibilityModifier | ReadonlyKeyword;
|
|
640
|
-
export type ClassMemberModifier = AccessibilityModifier | ReadonlyKeyword | StaticKeyword;
|
|
645
|
+
export type ClassMemberModifier = AccessibilityModifier | ReadonlyKeyword | StaticKeyword | AccessorKeyword;
|
|
641
646
|
export type ModifiersArray = NodeArray<Modifier>;
|
|
642
647
|
export enum GeneratedIdentifierFlags {
|
|
643
648
|
None = 0,
|
|
@@ -764,6 +769,9 @@ declare namespace ts {
|
|
|
764
769
|
readonly type?: TypeNode;
|
|
765
770
|
readonly initializer?: Expression;
|
|
766
771
|
}
|
|
772
|
+
export interface AutoAccessorPropertyDeclaration extends PropertyDeclaration {
|
|
773
|
+
_autoAccessorBrand: any;
|
|
774
|
+
}
|
|
767
775
|
export interface ObjectLiteralElement extends NamedDeclaration {
|
|
768
776
|
_objectLiteralBrand: any;
|
|
769
777
|
readonly name?: PropertyName;
|
|
@@ -1340,6 +1348,11 @@ declare namespace ts {
|
|
|
1340
1348
|
readonly type: TypeNode;
|
|
1341
1349
|
readonly expression: UnaryExpression;
|
|
1342
1350
|
}
|
|
1351
|
+
export interface SatisfiesExpression extends Expression {
|
|
1352
|
+
readonly kind: SyntaxKind.SatisfiesExpression;
|
|
1353
|
+
readonly expression: Expression;
|
|
1354
|
+
readonly type: TypeNode;
|
|
1355
|
+
}
|
|
1343
1356
|
export type AssertionExpression = TypeAssertion | AsExpression;
|
|
1344
1357
|
export interface NonNullExpression extends LeftHandSideExpression {
|
|
1345
1358
|
readonly kind: SyntaxKind.NonNullExpression;
|
|
@@ -2316,6 +2329,7 @@ declare namespace ts {
|
|
|
2316
2329
|
getPrivateIdentifierPropertyOfType(leftType: Type, name: string, location: Node): Symbol | undefined;
|
|
2317
2330
|
getIndexInfoOfType(type: Type, kind: IndexKind): IndexInfo | undefined;
|
|
2318
2331
|
getIndexInfosOfType(type: Type): readonly IndexInfo[];
|
|
2332
|
+
getIndexInfosOfIndexSymbol: (indexSymbol: Symbol) => IndexInfo[];
|
|
2319
2333
|
getSignaturesOfType(type: Type, kind: SignatureKind): readonly Signature[];
|
|
2320
2334
|
getIndexTypeOfType(type: Type, kind: IndexKind): Type | undefined;
|
|
2321
2335
|
getBaseTypes(type: InterfaceType): BaseType[];
|
|
@@ -2562,6 +2576,7 @@ declare namespace ts {
|
|
|
2562
2576
|
MethodExcludes = 103359,
|
|
2563
2577
|
GetAccessorExcludes = 46015,
|
|
2564
2578
|
SetAccessorExcludes = 78783,
|
|
2579
|
+
AccessorExcludes = 13247,
|
|
2565
2580
|
TypeParameterExcludes = 526824,
|
|
2566
2581
|
TypeAliasExcludes = 788968,
|
|
2567
2582
|
AliasExcludes = 2097152,
|
|
@@ -2832,7 +2847,7 @@ declare namespace ts {
|
|
|
2832
2847
|
export interface SubstitutionType extends InstantiableType {
|
|
2833
2848
|
objectFlags: ObjectFlags;
|
|
2834
2849
|
baseType: Type;
|
|
2835
|
-
|
|
2850
|
+
constraint: Type;
|
|
2836
2851
|
}
|
|
2837
2852
|
export enum SignatureKind {
|
|
2838
2853
|
Call = 0,
|
|
@@ -3305,6 +3320,8 @@ declare namespace ts {
|
|
|
3305
3320
|
*/
|
|
3306
3321
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
3307
3322
|
getEnvironmentVariable?(name: string): string | undefined;
|
|
3323
|
+
/** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */
|
|
3324
|
+
hasInvalidatedResolutions?(filePath: Path): boolean;
|
|
3308
3325
|
createHash?(data: string): string;
|
|
3309
3326
|
getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
|
|
3310
3327
|
}
|
|
@@ -3387,7 +3404,7 @@ declare namespace ts {
|
|
|
3387
3404
|
createNumericLiteral(value: string | number, numericLiteralFlags?: TokenFlags): NumericLiteral;
|
|
3388
3405
|
createBigIntLiteral(value: string | PseudoBigInt): BigIntLiteral;
|
|
3389
3406
|
createStringLiteral(text: string, isSingleQuote?: boolean): StringLiteral;
|
|
3390
|
-
createStringLiteralFromNode(sourceNode: PropertyNameLiteral, isSingleQuote?: boolean): StringLiteral;
|
|
3407
|
+
createStringLiteralFromNode(sourceNode: PropertyNameLiteral | PrivateIdentifier, isSingleQuote?: boolean): StringLiteral;
|
|
3391
3408
|
createRegularExpressionLiteral(text: string): RegularExpressionLiteral;
|
|
3392
3409
|
createIdentifier(text: string): Identifier;
|
|
3393
3410
|
/**
|
|
@@ -3412,6 +3429,8 @@ declare namespace ts {
|
|
|
3412
3429
|
/** Create a unique name generated for a node. */
|
|
3413
3430
|
getGeneratedNameForNode(node: Node | undefined, flags?: GeneratedIdentifierFlags): Identifier;
|
|
3414
3431
|
createPrivateIdentifier(text: string): PrivateIdentifier;
|
|
3432
|
+
createUniquePrivateName(text?: string): PrivateIdentifier;
|
|
3433
|
+
getGeneratedPrivateNameForNode(node: Node): PrivateIdentifier;
|
|
3415
3434
|
createToken(token: SyntaxKind.SuperKeyword): SuperExpression;
|
|
3416
3435
|
createToken(token: SyntaxKind.ThisKeyword): ThisExpression;
|
|
3417
3436
|
createToken(token: SyntaxKind.NullKeyword): NullLiteral;
|
|
@@ -3587,6 +3606,8 @@ declare namespace ts {
|
|
|
3587
3606
|
updateNonNullChain(node: NonNullChain, expression: Expression): NonNullChain;
|
|
3588
3607
|
createMetaProperty(keywordToken: MetaProperty["keywordToken"], name: Identifier): MetaProperty;
|
|
3589
3608
|
updateMetaProperty(node: MetaProperty, name: Identifier): MetaProperty;
|
|
3609
|
+
createSatisfiesExpression(expression: Expression, type: TypeNode): SatisfiesExpression;
|
|
3610
|
+
updateSatisfiesExpression(node: SatisfiesExpression, expression: Expression, type: TypeNode): SatisfiesExpression;
|
|
3590
3611
|
createTemplateSpan(expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan;
|
|
3591
3612
|
updateTemplateSpan(node: TemplateSpan, expression: Expression, literal: TemplateMiddle | TemplateTail): TemplateSpan;
|
|
3592
3613
|
createSemicolonClassElement(): SemicolonClassElement;
|
|
@@ -3948,7 +3969,7 @@ declare namespace ts {
|
|
|
3948
3969
|
<T extends Node>(nodes: NodeArray<T>, visitor: Visitor | undefined, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T>;
|
|
3949
3970
|
<T extends Node>(nodes: NodeArray<T> | undefined, visitor: Visitor | undefined, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T> | undefined;
|
|
3950
3971
|
}
|
|
3951
|
-
export type VisitResult<T extends Node> = T | T[] | undefined;
|
|
3972
|
+
export type VisitResult<T extends Node> = T | readonly T[] | undefined;
|
|
3952
3973
|
export interface Printer {
|
|
3953
3974
|
/**
|
|
3954
3975
|
* Print a node and its subtree as-is, without any emit transformations.
|
|
@@ -4515,6 +4536,7 @@ declare namespace ts {
|
|
|
4515
4536
|
function isClassElement(node: Node): node is ClassElement;
|
|
4516
4537
|
function isClassLike(node: Node): node is ClassLikeDeclaration;
|
|
4517
4538
|
function isAccessor(node: Node): node is AccessorDeclaration;
|
|
4539
|
+
function isAutoAccessorPropertyDeclaration(node: Node): node is AutoAccessorPropertyDeclaration;
|
|
4518
4540
|
function isModifierLike(node: Node): node is ModifierLike;
|
|
4519
4541
|
function isTypeElement(node: Node): node is TypeElement;
|
|
4520
4542
|
function isClassOrTypeElement(node: Node): node is ClassElement | TypeElement;
|
|
@@ -4716,6 +4738,7 @@ declare namespace ts {
|
|
|
4716
4738
|
function isOmittedExpression(node: Node): node is OmittedExpression;
|
|
4717
4739
|
function isExpressionWithTypeArguments(node: Node): node is ExpressionWithTypeArguments;
|
|
4718
4740
|
function isAsExpression(node: Node): node is AsExpression;
|
|
4741
|
+
function isSatisfiesExpression(node: Node): node is SatisfiesExpression;
|
|
4719
4742
|
function isNonNullExpression(node: Node): node is NonNullExpression;
|
|
4720
4743
|
function isMetaProperty(node: Node): node is MetaProperty;
|
|
4721
4744
|
function isSyntheticExpression(node: Node): node is SyntheticExpression;
|
|
@@ -5376,9 +5399,9 @@ declare namespace ts {
|
|
|
5376
5399
|
/** If provided, called with Diagnostic message that informs about change in watch status */
|
|
5377
5400
|
onWatchStatusChange?(diagnostic: Diagnostic, newLine: string, options: CompilerOptions, errorCount?: number): void;
|
|
5378
5401
|
/** Used to watch changes in source files, missing files needed to update the program or config file */
|
|
5379
|
-
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?:
|
|
5402
|
+
watchFile(path: string, callback: FileWatcherCallback, pollingInterval?: number, options?: WatchOptions): FileWatcher;
|
|
5380
5403
|
/** Used to watch resolved module's failed lookup locations, config file specs, type roots where auto type reference directives are added */
|
|
5381
|
-
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?:
|
|
5404
|
+
watchDirectory(path: string, callback: DirectoryWatcherCallback, recursive?: boolean, options?: WatchOptions): FileWatcher;
|
|
5382
5405
|
/** If provided, will be used to set delayed compilation, so that multiple changes in short span are compiled together */
|
|
5383
5406
|
setTimeout?(callback: (...args: any[]) => void, ms: number, ...args: any[]): any;
|
|
5384
5407
|
/** If provided, will be used to reset existing delayed compilation */
|
|
@@ -5421,6 +5444,8 @@ declare namespace ts {
|
|
|
5421
5444
|
resolveModuleNames?(moduleNames: string[], containingFile: string, reusedNames: string[] | undefined, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingSourceFile?: SourceFile): (ResolvedModule | undefined)[];
|
|
5422
5445
|
/** If provided, used to resolve type reference directives, otherwise typescript's default resolution */
|
|
5423
5446
|
resolveTypeReferenceDirectives?(typeReferenceDirectiveNames: string[] | readonly FileReference[], containingFile: string, redirectedReference: ResolvedProjectReference | undefined, options: CompilerOptions, containingFileMode?: SourceFile["impliedNodeFormat"] | undefined): (ResolvedTypeReferenceDirective | undefined)[];
|
|
5447
|
+
/** If provided along with custom resolveModuleNames or resolveTypeReferenceDirectives, used to determine if unchanged file path needs to re-resolve modules/type reference directives */
|
|
5448
|
+
hasInvalidatedResolutions?(filePath: Path): boolean;
|
|
5424
5449
|
/**
|
|
5425
5450
|
* 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
|
|
5426
5451
|
*/
|
|
@@ -6007,8 +6032,15 @@ declare namespace ts {
|
|
|
6007
6032
|
type: "file";
|
|
6008
6033
|
fileName: string;
|
|
6009
6034
|
}
|
|
6035
|
+
enum OrganizeImportsMode {
|
|
6036
|
+
All = "All",
|
|
6037
|
+
SortAndCombine = "SortAndCombine",
|
|
6038
|
+
RemoveUnused = "RemoveUnused"
|
|
6039
|
+
}
|
|
6010
6040
|
interface OrganizeImportsArgs extends CombinedCodeFixScope {
|
|
6041
|
+
/** @deprecated Use `mode` instead */
|
|
6011
6042
|
skipDestructiveCodeActions?: boolean;
|
|
6043
|
+
mode?: OrganizeImportsMode;
|
|
6012
6044
|
}
|
|
6013
6045
|
type CompletionsTriggerCharacter = "." | '"' | "'" | "`" | "/" | "@" | "<" | "#" | " ";
|
|
6014
6046
|
enum CompletionTriggerKind {
|
|
@@ -6526,7 +6558,7 @@ declare namespace ts {
|
|
|
6526
6558
|
isGlobalCompletion: boolean;
|
|
6527
6559
|
isMemberCompletion: boolean;
|
|
6528
6560
|
/**
|
|
6529
|
-
* In the absence of `CompletionEntry["replacementSpan"]
|
|
6561
|
+
* In the absence of `CompletionEntry["replacementSpan"]`, the editor may choose whether to use
|
|
6530
6562
|
* this span or its default one. If `CompletionEntry["replacementSpan"]` is defined, that span
|
|
6531
6563
|
* must be used to commit that completion entry.
|
|
6532
6564
|
*/
|
|
@@ -6739,6 +6771,8 @@ declare namespace ts {
|
|
|
6739
6771
|
* interface Y { foo:number; }
|
|
6740
6772
|
*/
|
|
6741
6773
|
memberVariableElement = "property",
|
|
6774
|
+
/** class X { [public|private]* accessor foo: number; } */
|
|
6775
|
+
memberAccessorVariableElement = "accessor",
|
|
6742
6776
|
/**
|
|
6743
6777
|
* class X { constructor() { } }
|
|
6744
6778
|
* class X { static { } }
|
|
@@ -7018,7 +7052,7 @@ declare namespace ts {
|
|
|
7018
7052
|
(text: string, isSingleQuote?: boolean | undefined, hasExtendedUnicodeEscape?: boolean | undefined): StringLiteral;
|
|
7019
7053
|
};
|
|
7020
7054
|
/** @deprecated Use `factory.createStringLiteralFromNode` or the factory supplied by your transformation context instead. */
|
|
7021
|
-
const createStringLiteralFromNode: (sourceNode: PropertyNameLiteral, isSingleQuote?: boolean | undefined) => StringLiteral;
|
|
7055
|
+
const createStringLiteralFromNode: (sourceNode: PrivateIdentifier | PropertyNameLiteral, isSingleQuote?: boolean | undefined) => StringLiteral;
|
|
7022
7056
|
/** @deprecated Use `factory.createRegularExpressionLiteral` or the factory supplied by your transformation context instead. */
|
|
7023
7057
|
const createRegularExpressionLiteral: (text: string) => RegularExpressionLiteral;
|
|
7024
7058
|
/** @deprecated Use `factory.createLoopVariable` or the factory supplied by your transformation context instead. */
|