typescript 5.5.0-dev.20240326 → 5.5.0-dev.20240328

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.
@@ -1342,12 +1342,13 @@ declare namespace ts {
1342
1342
  }
1343
1343
  export interface WatchChangeRequest extends Request {
1344
1344
  command: CommandTypes.WatchChange;
1345
- arguments: WatchChangeRequestArgs;
1345
+ arguments: WatchChangeRequestArgs | readonly WatchChangeRequestArgs[];
1346
1346
  }
1347
1347
  export interface WatchChangeRequestArgs {
1348
1348
  id: number;
1349
- path: string;
1350
- eventType: "create" | "delete" | "update";
1349
+ created?: string[];
1350
+ deleted?: string[];
1351
+ updated?: string[];
1351
1352
  }
1352
1353
  /**
1353
1354
  * Request to obtain the list of files that should be regenerated if target file is recompiled.
@@ -2032,6 +2033,7 @@ declare namespace ts {
2032
2033
  readonly id: number;
2033
2034
  readonly path: string;
2034
2035
  readonly recursive: boolean;
2036
+ readonly ignoreUpdate?: boolean;
2035
2037
  }
2036
2038
  export type CloseFileWatcherEventName = "closeFileWatcher";
2037
2039
  export interface CloseFileWatcherEvent extends Event {
@@ -3940,12 +3942,13 @@ declare namespace ts {
3940
3942
  JSDocPropertyTag = 348,
3941
3943
  JSDocThrowsTag = 349,
3942
3944
  JSDocSatisfiesTag = 350,
3943
- SyntaxList = 351,
3944
- NotEmittedStatement = 352,
3945
- PartiallyEmittedExpression = 353,
3946
- CommaListExpression = 354,
3947
- SyntheticReferenceExpression = 355,
3948
- Count = 356,
3945
+ JSDocImportTag = 351,
3946
+ SyntaxList = 352,
3947
+ NotEmittedStatement = 353,
3948
+ PartiallyEmittedExpression = 354,
3949
+ CommaListExpression = 355,
3950
+ SyntheticReferenceExpression = 356,
3951
+ Count = 357,
3949
3952
  FirstAssignment = 64,
3950
3953
  LastAssignment = 79,
3951
3954
  FirstCompoundAssignment = 65,
@@ -3974,9 +3977,9 @@ declare namespace ts {
3974
3977
  LastStatement = 259,
3975
3978
  FirstNode = 166,
3976
3979
  FirstJSDocNode = 309,
3977
- LastJSDocNode = 350,
3980
+ LastJSDocNode = 351,
3978
3981
  FirstJSDocTagNode = 327,
3979
- LastJSDocTagNode = 350,
3982
+ LastJSDocTagNode = 351,
3980
3983
  }
3981
3984
  type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
3982
3985
  type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
@@ -5426,7 +5429,7 @@ declare namespace ts {
5426
5429
  type NamedExportBindings = NamespaceExport | NamedExports;
5427
5430
  interface ImportClause extends NamedDeclaration {
5428
5431
  readonly kind: SyntaxKind.ImportClause;
5429
- readonly parent: ImportDeclaration;
5432
+ readonly parent: ImportDeclaration | JSDocImportTag;
5430
5433
  readonly isTypeOnly: boolean;
5431
5434
  readonly name?: Identifier;
5432
5435
  readonly namedBindings?: NamedImportBindings;
@@ -5783,6 +5786,13 @@ declare namespace ts {
5783
5786
  readonly kind: SyntaxKind.JSDocSatisfiesTag;
5784
5787
  readonly typeExpression: JSDocTypeExpression;
5785
5788
  }
5789
+ interface JSDocImportTag extends JSDocTag {
5790
+ readonly kind: SyntaxKind.JSDocImportTag;
5791
+ readonly parent: JSDoc;
5792
+ readonly importClause?: ImportClause;
5793
+ readonly moduleSpecifier: Expression;
5794
+ readonly attributes?: ImportAttributes;
5795
+ }
5786
5796
  enum FlowFlags {
5787
5797
  Unreachable = 1,
5788
5798
  Start = 2,
@@ -6590,6 +6600,7 @@ declare namespace ts {
6590
6600
  ContainsSpread = 2097152,
6591
6601
  ObjectRestType = 4194304,
6592
6602
  InstantiationExpressionType = 8388608,
6603
+ SingleSignatureType = 134217728,
6593
6604
  }
6594
6605
  interface ObjectType extends Type {
6595
6606
  objectFlags: ObjectFlags;
@@ -7696,6 +7707,8 @@ declare namespace ts {
7696
7707
  updateJSDocThrowsTag(node: JSDocThrowsTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment?: string | NodeArray<JSDocComment> | undefined): JSDocThrowsTag;
7697
7708
  createJSDocSatisfiesTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocComment>): JSDocSatisfiesTag;
7698
7709
  updateJSDocSatisfiesTag(node: JSDocSatisfiesTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray<JSDocComment> | undefined): JSDocSatisfiesTag;
7710
+ createJSDocImportTag(tagName: Identifier | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes?: ImportAttributes, comment?: string | NodeArray<JSDocComment>): JSDocImportTag;
7711
+ updateJSDocImportTag(node: JSDocImportTag, tagName: Identifier | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes: ImportAttributes | undefined, comment: string | NodeArray<JSDocComment> | undefined): JSDocImportTag;
7699
7712
  createJSDocText(text: string): JSDocText;
7700
7713
  updateJSDocText(node: JSDocText, text: string): JSDocText;
7701
7714
  createJSDocComment(comment?: string | NodeArray<JSDocComment> | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc;
@@ -8998,6 +9011,7 @@ declare namespace ts {
8998
9011
  function isJSDocImplementsTag(node: Node): node is JSDocImplementsTag;
8999
9012
  function isJSDocSatisfiesTag(node: Node): node is JSDocSatisfiesTag;
9000
9013
  function isJSDocThrowsTag(node: Node): node is JSDocThrowsTag;
9014
+ function isJSDocImportTag(node: Node): node is JSDocImportTag;
9001
9015
  function isQuestionOrExclamationToken(node: Node): node is QuestionToken | ExclamationToken;
9002
9016
  function isIdentifierOrThisTypeNode(node: Node): node is Identifier | ThisTypeNode;
9003
9017
  function isReadonlyKeywordOrPlusOrMinusToken(node: Node): node is ReadonlyKeyword | PlusToken | MinusToken;