typescript 5.0.0-dev.20221212 → 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/typescript.d.ts
CHANGED
|
@@ -413,14 +413,15 @@ declare namespace ts {
|
|
|
413
413
|
JSDocTypedefTag = 348,
|
|
414
414
|
JSDocSeeTag = 349,
|
|
415
415
|
JSDocPropertyTag = 350,
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
416
|
+
JSDocThrowsTag = 351,
|
|
417
|
+
SyntaxList = 352,
|
|
418
|
+
NotEmittedStatement = 353,
|
|
419
|
+
PartiallyEmittedExpression = 354,
|
|
420
|
+
CommaListExpression = 355,
|
|
421
|
+
MergeDeclarationMarker = 356,
|
|
422
|
+
EndOfDeclarationMarker = 357,
|
|
423
|
+
SyntheticReferenceExpression = 358,
|
|
424
|
+
Count = 359,
|
|
424
425
|
FirstAssignment = 63,
|
|
425
426
|
LastAssignment = 78,
|
|
426
427
|
FirstCompoundAssignment = 64,
|
|
@@ -449,9 +450,9 @@ declare namespace ts {
|
|
|
449
450
|
LastStatement = 256,
|
|
450
451
|
FirstNode = 163,
|
|
451
452
|
FirstJSDocNode = 312,
|
|
452
|
-
LastJSDocNode =
|
|
453
|
+
LastJSDocNode = 351,
|
|
453
454
|
FirstJSDocTagNode = 330,
|
|
454
|
-
LastJSDocTagNode =
|
|
455
|
+
LastJSDocTagNode = 351
|
|
455
456
|
}
|
|
456
457
|
type TriviaSyntaxKind = SyntaxKind.SingleLineCommentTrivia | SyntaxKind.MultiLineCommentTrivia | SyntaxKind.NewLineTrivia | SyntaxKind.WhitespaceTrivia | SyntaxKind.ShebangTrivia | SyntaxKind.ConflictMarkerTrivia;
|
|
457
458
|
type LiteralSyntaxKind = SyntaxKind.NumericLiteral | SyntaxKind.BigIntLiteral | SyntaxKind.StringLiteral | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.RegularExpressionLiteral | SyntaxKind.NoSubstitutionTemplateLiteral;
|
|
@@ -2004,6 +2005,10 @@ declare namespace ts {
|
|
|
2004
2005
|
readonly name?: Identifier;
|
|
2005
2006
|
readonly typeExpression: JSDocSignature;
|
|
2006
2007
|
}
|
|
2008
|
+
interface JSDocThrowsTag extends JSDocTag {
|
|
2009
|
+
readonly kind: SyntaxKind.JSDocThrowsTag;
|
|
2010
|
+
readonly typeExpression?: JSDocTypeExpression;
|
|
2011
|
+
}
|
|
2007
2012
|
interface JSDocSignature extends JSDocType, Declaration {
|
|
2008
2013
|
readonly kind: SyntaxKind.JSDocSignature;
|
|
2009
2014
|
readonly typeParameters?: readonly JSDocTemplateTag[];
|
|
@@ -3865,6 +3870,8 @@ declare namespace ts {
|
|
|
3865
3870
|
updateJSDocDeprecatedTag(node: JSDocDeprecatedTag, tagName: Identifier, comment?: string | NodeArray<JSDocComment>): JSDocDeprecatedTag;
|
|
3866
3871
|
createJSDocOverrideTag(tagName: Identifier, comment?: string | NodeArray<JSDocComment>): JSDocOverrideTag;
|
|
3867
3872
|
updateJSDocOverrideTag(node: JSDocOverrideTag, tagName: Identifier, comment?: string | NodeArray<JSDocComment>): JSDocOverrideTag;
|
|
3873
|
+
createJSDocThrowsTag(tagName: Identifier, typeExpression: JSDocTypeExpression | undefined, comment?: string | NodeArray<JSDocComment>): JSDocThrowsTag;
|
|
3874
|
+
updateJSDocThrowsTag(node: JSDocThrowsTag, tagName: Identifier | undefined, typeExpression: JSDocTypeExpression | undefined, comment?: string | NodeArray<JSDocComment> | undefined): JSDocThrowsTag;
|
|
3868
3875
|
createJSDocText(text: string): JSDocText;
|
|
3869
3876
|
updateJSDocText(node: JSDocText, text: string): JSDocText;
|
|
3870
3877
|
createJSDocComment(comment?: string | NodeArray<JSDocComment> | undefined, tags?: readonly JSDocTag[] | undefined): JSDoc;
|
|
@@ -4825,6 +4832,8 @@ declare namespace ts {
|
|
|
4825
4832
|
parent: ConstructorDeclaration;
|
|
4826
4833
|
name: Identifier;
|
|
4827
4834
|
};
|
|
4835
|
+
function isJSDocOptionalParameter(node: ParameterDeclaration): boolean;
|
|
4836
|
+
function isOptionalDeclaration(declaration: Declaration): boolean;
|
|
4828
4837
|
function createUnparsedSourceFile(text: string): UnparsedSource;
|
|
4829
4838
|
function createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource;
|
|
4830
4839
|
function createUnparsedSourceFile(text: string, mapPath: string | undefined, map: string | undefined): UnparsedSource;
|
|
@@ -5105,6 +5114,7 @@ declare namespace ts {
|
|
|
5105
5114
|
function isJSDocUnknownTag(node: Node): node is JSDocUnknownTag;
|
|
5106
5115
|
function isJSDocPropertyTag(node: Node): node is JSDocPropertyTag;
|
|
5107
5116
|
function isJSDocImplementsTag(node: Node): node is JSDocImplementsTag;
|
|
5117
|
+
function isJSDocThrowsTag(node: Node): node is JSDocThrowsTag;
|
|
5108
5118
|
function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T;
|
|
5109
5119
|
function canHaveModifiers(node: Node): node is HasModifiers;
|
|
5110
5120
|
function canHaveDecorators(node: Node): node is HasDecorators;
|