typescript 5.5.0-dev.20240227 → 5.5.0-dev.20240229

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