typescript 5.0.0-dev.20221211 → 5.0.0-dev.20221213
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/tsc.js +121 -75
- package/lib/tsserver.js +168 -95
- package/lib/tsserverlibrary.d.ts +20 -10
- package/lib/tsserverlibrary.js +165 -95
- package/lib/typescript.d.ts +20 -10
- package/lib/typescript.js +162 -95
- package/lib/typingsInstaller.js +57 -40
- package/package.json +1 -1
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -4347,14 +4347,15 @@ declare namespace ts {
|
|
|
4347
4347
|
JSDocTypedefTag = 348,
|
|
4348
4348
|
JSDocSeeTag = 349,
|
|
4349
4349
|
JSDocPropertyTag = 350,
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4350
|
+
JSDocThrowsTag = 351,
|
|
4351
|
+
SyntaxList = 352,
|
|
4352
|
+
NotEmittedStatement = 353,
|
|
4353
|
+
PartiallyEmittedExpression = 354,
|
|
4354
|
+
CommaListExpression = 355,
|
|
4355
|
+
MergeDeclarationMarker = 356,
|
|
4356
|
+
EndOfDeclarationMarker = 357,
|
|
4357
|
+
SyntheticReferenceExpression = 358,
|
|
4358
|
+
Count = 359,
|
|
4358
4359
|
FirstAssignment = 63,
|
|
4359
4360
|
LastAssignment = 78,
|
|
4360
4361
|
FirstCompoundAssignment = 64,
|
|
@@ -4383,9 +4384,9 @@ declare namespace ts {
|
|
|
4383
4384
|
LastStatement = 256,
|
|
4384
4385
|
FirstNode = 163,
|
|
4385
4386
|
FirstJSDocNode = 312,
|
|
4386
|
-
LastJSDocNode =
|
|
4387
|
+
LastJSDocNode = 351,
|
|
4387
4388
|
FirstJSDocTagNode = 330,
|
|
4388
|
-
LastJSDocTagNode =
|
|
4389
|
+
LastJSDocTagNode = 351
|
|
4389
4390
|
}
|
|
4390
4391
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
4391
4392
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -5938,6 +5939,10 @@ declare namespace ts {
|
|
|
5938
5939
|
readonly name?: Identifier;
|
|
5939
5940
|
readonly typeExpression: JSDocSignature;
|
|
5940
5941
|
}
|
|
5942
|
+
interface JSDocThrowsTag extends JSDocTag {
|
|
5943
|
+
readonly kind: SyntaxKind.JSDocThrowsTag;
|
|
5944
|
+
readonly typeExpression?: JSDocTypeExpression;
|
|
5945
|
+
}
|
|
5941
5946
|
interface JSDocSignature extends JSDocType, Declaration {
|
|
5942
5947
|
readonly kind: SyntaxKind.JSDocSignature;
|
|
5943
5948
|
readonly typeParameters?: readonly JSDocTemplateTag[];
|
|
@@ -7799,6 +7804,8 @@ declare namespace ts {
|
|
|
7799
7804
|
updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string | NodeArray<JSDocComment>): JSDocDeprecatedTag;
|
|
7800
7805
|
createJSDocOverrideTag(tagName: Identifier, comment?: string | NodeArray<JSDocComment>): JSDocOverrideTag;
|
|
7801
7806
|
updateJSDocOverrideTag(node: JSDocOverrideTag, tagName: Identifier, comment?: string | NodeArray<JSDocComment>): JSDocOverrideTag;
|
|
7807
|
+
createJSDocThrowsTag(tagName: Identifier, typeExpression: JSDocTypeExpression | undefined, comment?: string | NodeArray<JSDocComment>): JSDocThrowsTag;
|
|
7808
|
+
updateJSDocThrowsTag(node: JSDocThrowsTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment?: string | NodeArray<JSDocComment> | undefined): JSDocThrowsTag;
|
|
7802
7809
|
createJSDocText(text: string): JSDocText;
|
|
7803
7810
|
updateJSDocText(node: JSDocText, text: string): JSDocText;
|
|
7804
7811
|
createJSDocComment(comment?: string | NodeArray<JSDocComment> | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc;
|
|
@@ -8759,6 +8766,8 @@ declare namespace ts {
|
|
|
8759
8766
|
parent: ConstructorDeclaration;
|
|
8760
8767
|
name: Identifier;
|
|
8761
8768
|
};
|
|
8769
|
+
function isJSDocOptionalParameter(node: ParameterDeclaration): boolean;
|
|
8770
|
+
function isOptionalDeclaration(declaration: Declaration): boolean;
|
|
8762
8771
|
function createUnparsedSourceFile(text: string): UnparsedSource;
|
|
8763
8772
|
function createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource;
|
|
8764
8773
|
function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource;
|
|
@@ -9039,6 +9048,7 @@ declare namespace ts {
|
|
|
9039
9048
|
function isJSDocUnknownTag(node: Node): node is JSDocUnknownTag;
|
|
9040
9049
|
function isJSDocPropertyTag(node: Node): node is JSDocPropertyTag;
|
|
9041
9050
|
function isJSDocImplementsTag(node: Node): node is JSDocImplementsTag;
|
|
9051
|
+
function isJSDocThrowsTag(node: Node): node is JSDocThrowsTag;
|
|
9042
9052
|
function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
|
|
9043
9053
|
function canHaveModifiers(node: Node): node is HasModifiers;
|
|
9044
9054
|
function canHaveDecorators(node: Node): node is HasDecorators;
|