typescript 5.5.0-dev.20240325 → 5.5.0-dev.20240327

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/lib/tsserver.js CHANGED
@@ -191,7 +191,7 @@ function initializeNodeSystem() {
191
191
  }
192
192
  write(s, _type) {
193
193
  if (this.fd >= 0) {
194
- const buf = sys4.bufferFrom(s);
194
+ const buf = Buffer.from(s);
195
195
  fs.writeSync(
196
196
  this.fd,
197
197
  buf,
@@ -269,7 +269,7 @@ function initializeNodeSystem() {
269
269
  } else {
270
270
  sys4.watchDirectory = watchDirectorySwallowingException;
271
271
  }
272
- sys4.write = (s) => writeMessage(sys4.bufferFrom(s, "utf8"));
272
+ sys4.write = (s) => writeMessage(Buffer.from(s, "utf8"));
273
273
  sys4.setTimeout = setTimeout;
274
274
  sys4.clearTimeout = clearTimeout;
275
275
  sys4.setImmediate = setImmediate;
@@ -3940,12 +3940,13 @@ declare namespace ts {
3940
3940
  JSDocPropertyTag = 348,
3941
3941
  JSDocThrowsTag = 349,
3942
3942
  JSDocSatisfiesTag = 350,
3943
- SyntaxList = 351,
3944
- NotEmittedStatement = 352,
3945
- PartiallyEmittedExpression = 353,
3946
- CommaListExpression = 354,
3947
- SyntheticReferenceExpression = 355,
3948
- Count = 356,
3943
+ JSDocImportTag = 351,
3944
+ SyntaxList = 352,
3945
+ NotEmittedStatement = 353,
3946
+ PartiallyEmittedExpression = 354,
3947
+ CommaListExpression = 355,
3948
+ SyntheticReferenceExpression = 356,
3949
+ Count = 357,
3949
3950
  FirstAssignment = 64,
3950
3951
  LastAssignment = 79,
3951
3952
  FirstCompoundAssignment = 65,
@@ -3974,9 +3975,9 @@ declare namespace ts {
3974
3975
  LastStatement = 259,
3975
3976
  FirstNode = 166,
3976
3977
  FirstJSDocNode = 309,
3977
- LastJSDocNode = 350,
3978
+ LastJSDocNode = 351,
3978
3979
  FirstJSDocTagNode = 327,
3979
- LastJSDocTagNode = 350,
3980
+ LastJSDocTagNode = 351,
3980
3981
  }
3981
3982
  type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
3982
3983
  type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
@@ -5426,7 +5427,7 @@ declare namespace ts {
5426
5427
  type NamedExportBindings = NamespaceExport | NamedExports;
5427
5428
  interface ImportClause extends NamedDeclaration {
5428
5429
  readonly kind: SyntaxKind.ImportClause;
5429
- readonly parent: ImportDeclaration;
5430
+ readonly parent: ImportDeclaration | JSDocImportTag;
5430
5431
  readonly isTypeOnly: boolean;
5431
5432
  readonly name?: Identifier;
5432
5433
  readonly namedBindings?: NamedImportBindings;
@@ -5783,6 +5784,13 @@ declare namespace ts {
5783
5784
  readonly kind: SyntaxKind.JSDocSatisfiesTag;
5784
5785
  readonly typeExpression: JSDocTypeExpression;
5785
5786
  }
5787
+ interface JSDocImportTag extends JSDocTag {
5788
+ readonly kind: SyntaxKind.JSDocImportTag;
5789
+ readonly parent: JSDoc;
5790
+ readonly importClause?: ImportClause;
5791
+ readonly moduleSpecifier: Expression;
5792
+ readonly attributes?: ImportAttributes;
5793
+ }
5786
5794
  enum FlowFlags {
5787
5795
  Unreachable = 1,
5788
5796
  Start = 2,
@@ -7696,6 +7704,8 @@ declare namespace ts {
7696
7704
  updateJSDocThrowsTag(node: JSDocThrowsTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment?: string | NodeArray<JSDocComment> | undefined): JSDocThrowsTag;
7697
7705
  createJSDocSatisfiesTag(tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment?: string | NodeArray<JSDocComment>): JSDocSatisfiesTag;
7698
7706
  updateJSDocSatisfiesTag(node: JSDocSatisfiesTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression, comment: string | NodeArray<JSDocComment> | undefined): JSDocSatisfiesTag;
7707
+ createJSDocImportTag(tagName: Identifier | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes?: ImportAttributes, comment?: string | NodeArray<JSDocComment>): JSDocImportTag;
7708
+ updateJSDocImportTag(node: JSDocImportTag, tagName: Identifier | undefined, importClause: ImportClause | undefined, moduleSpecifier: Expression, attributes: ImportAttributes | undefined, comment: string | NodeArray<JSDocComment> | undefined): JSDocImportTag;
7699
7709
  createJSDocText(text: string): JSDocText;
7700
7710
  updateJSDocText(node: JSDocText, text: string): JSDocText;
7701
7711
  createJSDocComment(comment?: string | NodeArray<JSDocComment> | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc;
@@ -8998,6 +9008,7 @@ declare namespace ts {
8998
9008
  function isJSDocImplementsTag(node: Node): node is JSDocImplementsTag;
8999
9009
  function isJSDocSatisfiesTag(node: Node): node is JSDocSatisfiesTag;
9000
9010
  function isJSDocThrowsTag(node: Node): node is JSDocThrowsTag;
9011
+ function isJSDocImportTag(node: Node): node is JSDocImportTag;
9001
9012
  function isQuestionOrExclamationToken(node: Node): node is QuestionToken | ExclamationToken;
9002
9013
  function isIdentifierOrThisTypeNode(node: Node): node is Identifier | ThisTypeNode;
9003
9014
  function isReadonlyKeywordOrPlusOrMinusToken(node: Node): node is ReadonlyKeyword | PlusToken | MinusToken;