typescript 5.5.0-dev.20240228 → 5.5.0-dev.20240301

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.
@@ -2956,6 +2956,7 @@ declare namespace ts {
2956
2956
  allowUnusedLabels?: boolean;
2957
2957
  alwaysStrict?: boolean;
2958
2958
  baseUrl?: string;
2959
+ /** @deprecated */
2959
2960
  charset?: string;
2960
2961
  checkJs?: boolean;
2961
2962
  declaration?: boolean;
@@ -2988,9 +2989,11 @@ declare namespace ts {
2988
2989
  noImplicitThis?: boolean;
2989
2990
  noUnusedLocals?: boolean;
2990
2991
  noUnusedParameters?: boolean;
2992
+ /** @deprecated */
2991
2993
  noImplicitUseStrict?: boolean;
2992
2994
  noLib?: boolean;
2993
2995
  noResolve?: boolean;
2996
+ /** @deprecated */
2994
2997
  out?: string;
2995
2998
  outDir?: string;
2996
2999
  outFile?: string;
@@ -3010,7 +3013,9 @@ declare namespace ts {
3010
3013
  sourceRoot?: string;
3011
3014
  strict?: boolean;
3012
3015
  strictNullChecks?: boolean;
3016
+ /** @deprecated */
3013
3017
  suppressExcessPropertyErrors?: boolean;
3018
+ /** @deprecated */
3014
3019
  suppressImplicitAnyIndexErrors?: boolean;
3015
3020
  useDefineForClassFields?: boolean;
3016
3021
  target?: ScriptTarget | ts.ScriptTarget;
@@ -4479,65 +4484,58 @@ declare namespace ts {
4479
4484
  ShorthandPropertyAssignment = 304,
4480
4485
  SpreadAssignment = 305,
4481
4486
  EnumMember = 306,
4482
- /** @deprecated */ UnparsedPrologue = 307,
4483
- /** @deprecated */ UnparsedPrepend = 308,
4484
- /** @deprecated */ UnparsedText = 309,
4485
- /** @deprecated */ UnparsedInternalText = 310,
4486
- /** @deprecated */ UnparsedSyntheticReference = 311,
4487
- SourceFile = 312,
4488
- Bundle = 313,
4489
- /** @deprecated */ UnparsedSource = 314,
4490
- /** @deprecated */ InputFiles = 315,
4491
- JSDocTypeExpression = 316,
4492
- JSDocNameReference = 317,
4493
- JSDocMemberName = 318,
4494
- JSDocAllType = 319,
4495
- JSDocUnknownType = 320,
4496
- JSDocNullableType = 321,
4497
- JSDocNonNullableType = 322,
4498
- JSDocOptionalType = 323,
4499
- JSDocFunctionType = 324,
4500
- JSDocVariadicType = 325,
4501
- JSDocNamepathType = 326,
4502
- JSDoc = 327,
4487
+ SourceFile = 307,
4488
+ Bundle = 308,
4489
+ JSDocTypeExpression = 309,
4490
+ JSDocNameReference = 310,
4491
+ JSDocMemberName = 311,
4492
+ JSDocAllType = 312,
4493
+ JSDocUnknownType = 313,
4494
+ JSDocNullableType = 314,
4495
+ JSDocNonNullableType = 315,
4496
+ JSDocOptionalType = 316,
4497
+ JSDocFunctionType = 317,
4498
+ JSDocVariadicType = 318,
4499
+ JSDocNamepathType = 319,
4500
+ JSDoc = 320,
4503
4501
  /** @deprecated Use SyntaxKind.JSDoc */
4504
- JSDocComment = 327,
4505
- JSDocText = 328,
4506
- JSDocTypeLiteral = 329,
4507
- JSDocSignature = 330,
4508
- JSDocLink = 331,
4509
- JSDocLinkCode = 332,
4510
- JSDocLinkPlain = 333,
4511
- JSDocTag = 334,
4512
- JSDocAugmentsTag = 335,
4513
- JSDocImplementsTag = 336,
4514
- JSDocAuthorTag = 337,
4515
- JSDocDeprecatedTag = 338,
4516
- JSDocClassTag = 339,
4517
- JSDocPublicTag = 340,
4518
- JSDocPrivateTag = 341,
4519
- JSDocProtectedTag = 342,
4520
- JSDocReadonlyTag = 343,
4521
- JSDocOverrideTag = 344,
4522
- JSDocCallbackTag = 345,
4523
- JSDocOverloadTag = 346,
4524
- JSDocEnumTag = 347,
4525
- JSDocParameterTag = 348,
4526
- JSDocReturnTag = 349,
4527
- JSDocThisTag = 350,
4528
- JSDocTypeTag = 351,
4529
- JSDocTemplateTag = 352,
4530
- JSDocTypedefTag = 353,
4531
- JSDocSeeTag = 354,
4532
- JSDocPropertyTag = 355,
4533
- JSDocThrowsTag = 356,
4534
- JSDocSatisfiesTag = 357,
4535
- SyntaxList = 358,
4536
- NotEmittedStatement = 359,
4537
- PartiallyEmittedExpression = 360,
4538
- CommaListExpression = 361,
4539
- SyntheticReferenceExpression = 362,
4540
- Count = 363,
4502
+ JSDocComment = 320,
4503
+ JSDocText = 321,
4504
+ JSDocTypeLiteral = 322,
4505
+ JSDocSignature = 323,
4506
+ JSDocLink = 324,
4507
+ JSDocLinkCode = 325,
4508
+ JSDocLinkPlain = 326,
4509
+ JSDocTag = 327,
4510
+ JSDocAugmentsTag = 328,
4511
+ JSDocImplementsTag = 329,
4512
+ JSDocAuthorTag = 330,
4513
+ JSDocDeprecatedTag = 331,
4514
+ JSDocClassTag = 332,
4515
+ JSDocPublicTag = 333,
4516
+ JSDocPrivateTag = 334,
4517
+ JSDocProtectedTag = 335,
4518
+ JSDocReadonlyTag = 336,
4519
+ JSDocOverrideTag = 337,
4520
+ JSDocCallbackTag = 338,
4521
+ JSDocOverloadTag = 339,
4522
+ JSDocEnumTag = 340,
4523
+ JSDocParameterTag = 341,
4524
+ JSDocReturnTag = 342,
4525
+ JSDocThisTag = 343,
4526
+ JSDocTypeTag = 344,
4527
+ JSDocTemplateTag = 345,
4528
+ JSDocTypedefTag = 346,
4529
+ JSDocSeeTag = 347,
4530
+ JSDocPropertyTag = 348,
4531
+ JSDocThrowsTag = 349,
4532
+ JSDocSatisfiesTag = 350,
4533
+ SyntaxList = 351,
4534
+ NotEmittedStatement = 352,
4535
+ PartiallyEmittedExpression = 353,
4536
+ CommaListExpression = 354,
4537
+ SyntheticReferenceExpression = 355,
4538
+ Count = 356,
4541
4539
  FirstAssignment = 64,
4542
4540
  LastAssignment = 79,
4543
4541
  FirstCompoundAssignment = 65,
@@ -4565,10 +4563,10 @@ declare namespace ts {
4565
4563
  FirstStatement = 243,
4566
4564
  LastStatement = 259,
4567
4565
  FirstNode = 166,
4568
- FirstJSDocNode = 316,
4569
- LastJSDocNode = 357,
4570
- FirstJSDocTagNode = 334,
4571
- LastJSDocTagNode = 357,
4566
+ FirstJSDocNode = 309,
4567
+ LastJSDocNode = 350,
4568
+ FirstJSDocTagNode = 327,
4569
+ LastJSDocTagNode = 350,
4572
4570
  }
4573
4571
  type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
4574
4572
  type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
@@ -6499,70 +6497,8 @@ declare namespace ts {
6499
6497
  }
6500
6498
  interface Bundle extends Node {
6501
6499
  readonly kind: SyntaxKind.Bundle;
6502
- /** @deprecated */ readonly prepends: readonly (InputFiles | UnparsedSource)[];
6503
6500
  readonly sourceFiles: readonly SourceFile[];
6504
6501
  }
6505
- /** @deprecated */
6506
- interface InputFiles extends Node {
6507
- readonly kind: SyntaxKind.InputFiles;
6508
- javascriptPath?: string;
6509
- javascriptText: string;
6510
- javascriptMapPath?: string;
6511
- javascriptMapText?: string;
6512
- declarationPath?: string;
6513
- declarationText: string;
6514
- declarationMapPath?: string;
6515
- declarationMapText?: string;
6516
- }
6517
- /** @deprecated */
6518
- interface UnparsedSource extends Node {
6519
- readonly kind: SyntaxKind.UnparsedSource;
6520
- fileName: string;
6521
- text: string;
6522
- readonly prologues: readonly UnparsedPrologue[];
6523
- helpers: readonly UnscopedEmitHelper[] | undefined;
6524
- referencedFiles: readonly FileReference[];
6525
- typeReferenceDirectives: readonly FileReference[] | undefined;
6526
- libReferenceDirectives: readonly FileReference[];
6527
- hasNoDefaultLib?: boolean;
6528
- sourceMapPath?: string;
6529
- sourceMapText?: string;
6530
- readonly syntheticReferences?: readonly UnparsedSyntheticReference[];
6531
- readonly texts: readonly UnparsedSourceText[];
6532
- }
6533
- /** @deprecated */
6534
- type UnparsedSourceText = UnparsedPrepend | UnparsedTextLike;
6535
- /** @deprecated */
6536
- type UnparsedNode = UnparsedPrologue | UnparsedSourceText | UnparsedSyntheticReference;
6537
- /** @deprecated */
6538
- interface UnparsedSection extends Node {
6539
- readonly kind: SyntaxKind;
6540
- readonly parent: UnparsedSource;
6541
- readonly data?: string;
6542
- }
6543
- /** @deprecated */
6544
- interface UnparsedPrologue extends UnparsedSection {
6545
- readonly kind: SyntaxKind.UnparsedPrologue;
6546
- readonly parent: UnparsedSource;
6547
- readonly data: string;
6548
- }
6549
- /** @deprecated */
6550
- interface UnparsedPrepend extends UnparsedSection {
6551
- readonly kind: SyntaxKind.UnparsedPrepend;
6552
- readonly parent: UnparsedSource;
6553
- readonly data: string;
6554
- readonly texts: readonly UnparsedTextLike[];
6555
- }
6556
- /** @deprecated */
6557
- interface UnparsedTextLike extends UnparsedSection {
6558
- readonly kind: SyntaxKind.UnparsedText | SyntaxKind.UnparsedInternalText;
6559
- readonly parent: UnparsedSource;
6560
- }
6561
- /** @deprecated */
6562
- interface UnparsedSyntheticReference extends UnparsedSection {
6563
- readonly kind: SyntaxKind.UnparsedSyntheticReference;
6564
- readonly parent: UnparsedSource;
6565
- }
6566
6502
  interface JsonSourceFile extends SourceFile {
6567
6503
  readonly statements: NodeArray<JsonObjectExpressionStatement>;
6568
6504
  }
@@ -7497,7 +7433,7 @@ declare namespace ts {
7497
7433
  path: string;
7498
7434
  /** The path as the user originally wrote it */
7499
7435
  originalPath?: string;
7500
- /** True if the output of this reference should be prepended to the output of this project. Only valid for --outFile compilations */
7436
+ /** @deprecated */
7501
7437
  prepend?: boolean;
7502
7438
  /** True if it is intended that this reference form a circularity */
7503
7439
  circular?: boolean;
@@ -7533,6 +7469,7 @@ declare namespace ts {
7533
7469
  allowUnusedLabels?: boolean;
7534
7470
  alwaysStrict?: boolean;
7535
7471
  baseUrl?: string;
7472
+ /** @deprecated */
7536
7473
  charset?: string;
7537
7474
  checkJs?: boolean;
7538
7475
  customConditions?: string[];
@@ -7552,11 +7489,13 @@ declare namespace ts {
7552
7489
  forceConsistentCasingInFileNames?: boolean;
7553
7490
  ignoreDeprecations?: string;
7554
7491
  importHelpers?: boolean;
7492
+ /** @deprecated */
7555
7493
  importsNotUsedAsValues?: ImportsNotUsedAsValues;
7556
7494
  inlineSourceMap?: boolean;
7557
7495
  inlineSources?: boolean;
7558
7496
  isolatedModules?: boolean;
7559
7497
  jsx?: JsxEmit;
7498
+ /** @deprecated */
7560
7499
  keyofStringsOnly?: boolean;
7561
7500
  lib?: string[];
7562
7501
  locale?: string;
@@ -7575,15 +7514,18 @@ declare namespace ts {
7575
7514
  noImplicitAny?: boolean;
7576
7515
  noImplicitReturns?: boolean;
7577
7516
  noImplicitThis?: boolean;
7517
+ /** @deprecated */
7578
7518
  noStrictGenericChecks?: boolean;
7579
7519
  noUnusedLocals?: boolean;
7580
7520
  noUnusedParameters?: boolean;
7521
+ /** @deprecated */
7581
7522
  noImplicitUseStrict?: boolean;
7582
7523
  noPropertyAccessFromIndexSignature?: boolean;
7583
7524
  assumeChangesOnlyAffectDirectDependencies?: boolean;
7584
7525
  noLib?: boolean;
7585
7526
  noResolve?: boolean;
7586
7527
  noUncheckedIndexedAccess?: boolean;
7528
+ /** @deprecated */
7587
7529
  out?: string;
7588
7530
  outDir?: string;
7589
7531
  outFile?: string;
@@ -7591,6 +7533,7 @@ declare namespace ts {
7591
7533
  preserveConstEnums?: boolean;
7592
7534
  noImplicitOverride?: boolean;
7593
7535
  preserveSymlinks?: boolean;
7536
+ /** @deprecated */
7594
7537
  preserveValueImports?: boolean;
7595
7538
  project?: string;
7596
7539
  reactNamespace?: string;
@@ -7615,7 +7558,9 @@ declare namespace ts {
7615
7558
  strictNullChecks?: boolean;
7616
7559
  strictPropertyInitialization?: boolean;
7617
7560
  stripInternal?: boolean;
7561
+ /** @deprecated */
7618
7562
  suppressExcessPropertyErrors?: boolean;
7563
+ /** @deprecated */
7619
7564
  suppressImplicitAnyIndexErrors?: boolean;
7620
7565
  target?: ScriptTarget;
7621
7566
  traceResolution?: boolean;
@@ -7667,6 +7612,7 @@ declare namespace ts {
7667
7612
  ReactJSX = 4,
7668
7613
  ReactJSXDev = 5,
7669
7614
  }
7615
+ /** @deprecated */
7670
7616
  enum ImportsNotUsedAsValues {
7671
7617
  Remove = 0,
7672
7618
  Preserve = 1,
@@ -8391,9 +8337,7 @@ declare namespace ts {
8391
8337
  createCommaListExpression(elements: readonly Expression[]): CommaListExpression;
8392
8338
  updateCommaListExpression(node: CommaListExpression, elements: readonly Expression[]): CommaListExpression;
8393
8339
  createBundle(sourceFiles: readonly SourceFile[]): Bundle;
8394
- /** @deprecated*/ createBundle(sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle;
8395
8340
  updateBundle(node: Bundle, sourceFiles: readonly SourceFile[]): Bundle;
8396
- /** @deprecated*/ updateBundle(node: Bundle, sourceFiles: readonly SourceFile[], prepends?: readonly (UnparsedSource | InputFiles)[]): Bundle;
8397
8341
  createComma(left: Expression, right: Expression): BinaryExpression;
8398
8342
  createAssignment(left: ObjectLiteralExpression | ArrayLiteralExpression, right: Expression): DestructuringAssignment;
8399
8343
  createAssignment(left: Expression, right: Expression): AssignmentExpression<EqualsToken>;
@@ -9152,10 +9096,6 @@ declare namespace ts {
9152
9096
  function isNonNullChain(node: Node): node is NonNullChain;
9153
9097
  function isBreakOrContinueStatement(node: Node): node is BreakOrContinueStatement;
9154
9098
  function isNamedExportBindings(node: Node): node is NamedExportBindings;
9155
- /** @deprecated */
9156
- function isUnparsedTextLike(node: Node): node is UnparsedTextLike;
9157
- /** @deprecated */
9158
- function isUnparsedNode(node: Node): node is UnparsedNode;
9159
9099
  function isJSDocPropertyLikeTag(node: Node): node is JSDocPropertyLikeTag;
9160
9100
  /**
9161
9101
  * True if kind is of some token syntax kind.
@@ -9263,18 +9203,6 @@ declare namespace ts {
9263
9203
  * ```
9264
9204
  */
9265
9205
  function getJSDocCommentsAndTags(hostNode: Node): readonly (JSDoc | JSDocTag)[];
9266
- /** @deprecated */
9267
- function createUnparsedSourceFile(text: string): UnparsedSource;
9268
- /** @deprecated */
9269
- function createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource;
9270
- /** @deprecated */
9271
- function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource;
9272
- /** @deprecated */
9273
- function createInputFiles(javascriptText: string, declarationText: string): InputFiles;
9274
- /** @deprecated */
9275
- function createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles;
9276
- /** @deprecated */
9277
- function createInputFiles(readFileText: (path: string) => string | undefined, javascriptPath: string, javascriptMapPath: string | undefined, declarationPath: string, declarationMapPath: string | undefined, buildInfoPath: string | undefined): InputFiles;
9278
9206
  /**
9279
9207
  * Create an external source map source file reference
9280
9208
  */
@@ -9519,12 +9447,8 @@ declare namespace ts {
9519
9447
  function isShorthandPropertyAssignment(node: Node): node is ShorthandPropertyAssignment;
9520
9448
  function isSpreadAssignment(node: Node): node is SpreadAssignment;
9521
9449
  function isEnumMember(node: Node): node is EnumMember;
9522
- /** @deprecated */
9523
- function isUnparsedPrepend(node: Node): node is UnparsedPrepend;
9524
9450
  function isSourceFile(node: Node): node is SourceFile;
9525
9451
  function isBundle(node: Node): node is Bundle;
9526
- /** @deprecated */
9527
- function isUnparsedSource(node: Node): node is UnparsedSource;
9528
9452
  function isJSDocTypeExpression(node: Node): node is JSDocTypeExpression;
9529
9453
  function isJSDocNameReference(node: Node): node is JSDocNameReference;
9530
9454
  function isJSDocMemberName(node: Node): node is JSDocMemberName;
@@ -10343,8 +10267,7 @@ declare namespace ts {
10343
10267
  }
10344
10268
  enum InvalidatedProjectKind {
10345
10269
  Build = 0,
10346
- /** @deprecated */ UpdateBundle = 1,
10347
- UpdateOutputFileStamps = 2,
10270
+ UpdateOutputFileStamps = 1,
10348
10271
  }
10349
10272
  interface InvalidatedProjectBase {
10350
10273
  readonly kind: InvalidatedProjectKind;
@@ -10375,12 +10298,7 @@ declare namespace ts {
10375
10298
  getSemanticDiagnosticsOfNextAffectedFile(cancellationToken?: CancellationToken, ignoreSourceFile?: (sourceFile: SourceFile) => boolean): AffectedFileResult<readonly Diagnostic[]>;
10376
10299
  emit(targetSourceFile?: SourceFile, writeFile?: WriteFileCallback, cancellationToken?: CancellationToken, emitOnlyDtsFiles?: boolean, customTransformers?: CustomTransformers): EmitResult | undefined;
10377
10300
  }
10378
- /** @deprecated */
10379
- interface UpdateBundleProject<T extends BuilderProgram> extends InvalidatedProjectBase {
10380
- readonly kind: InvalidatedProjectKind.UpdateBundle;
10381
- emit(writeFile?: WriteFileCallback, customTransformers?: CustomTransformers): EmitResult | BuildInvalidedProject<T> | undefined;
10382
- }
10383
- type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T> | UpdateBundleProject<T>;
10301
+ type InvalidatedProject<T extends BuilderProgram> = UpdateOutputFileStampsProject | BuildInvalidedProject<T>;
10384
10302
  namespace JsTyping {
10385
10303
  interface TypingResolutionHost {
10386
10304
  directoryExists(path: string): boolean;