typescript 4.6.0-dev.20220202 → 4.6.0-dev.20220203
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 +10 -4
- package/lib/tsserver.js +27 -7
- package/lib/tsserverlibrary.js +27 -7
- package/lib/typescript.js +27 -7
- package/lib/typescriptServices.js +27 -7
- package/lib/typingsInstaller.js +10 -5
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
69
69
|
var ts;
|
|
70
70
|
(function (ts) {
|
|
71
71
|
ts.versionMajorMinor = "4.6";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220203";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -9583,11 +9583,17 @@ var ts;
|
|
|
9583
9583
|
ts.getAllJSDocTagsOfKind = getAllJSDocTagsOfKind;
|
|
9584
9584
|
function getTextOfJSDocComment(comment) {
|
|
9585
9585
|
return typeof comment === "string" ? comment
|
|
9586
|
-
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) {
|
|
9587
|
-
return c.kind === 319 ? c.text : "{@link " + (c.name ? ts.entityNameToString(c.name) + " " : "") + c.text + "}";
|
|
9588
|
-
}).join("");
|
|
9586
|
+
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) { return c.kind === 319 ? c.text : formatJSDocLink(c); }).join("");
|
|
9589
9587
|
}
|
|
9590
9588
|
ts.getTextOfJSDocComment = getTextOfJSDocComment;
|
|
9589
|
+
function formatJSDocLink(link) {
|
|
9590
|
+
var kind = link.kind === 322 ? "link"
|
|
9591
|
+
: link.kind === 323 ? "linkcode"
|
|
9592
|
+
: "linkplain";
|
|
9593
|
+
var name = link.name ? ts.entityNameToString(link.name) : "";
|
|
9594
|
+
var space = link.name && link.text.startsWith("://") ? "" : " ";
|
|
9595
|
+
return "{@" + kind + " " + name + space + link.text + "}";
|
|
9596
|
+
}
|
|
9591
9597
|
function getEffectiveTypeParameterDeclarations(node) {
|
|
9592
9598
|
if (ts.isJSDocSignature(node)) {
|
|
9593
9599
|
return ts.emptyArray;
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220203";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -12809,12 +12809,17 @@ var ts;
|
|
|
12809
12809
|
/** Gets the text of a jsdoc comment, flattening links to their text. */
|
|
12810
12810
|
function getTextOfJSDocComment(comment) {
|
|
12811
12811
|
return typeof comment === "string" ? comment
|
|
12812
|
-
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) {
|
|
12813
|
-
// TODO: Other kinds here
|
|
12814
|
-
return c.kind === 319 /* JSDocText */ ? c.text : "{@link " + (c.name ? ts.entityNameToString(c.name) + " " : "") + c.text + "}";
|
|
12815
|
-
}).join("");
|
|
12812
|
+
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) { return c.kind === 319 /* JSDocText */ ? c.text : formatJSDocLink(c); }).join("");
|
|
12816
12813
|
}
|
|
12817
12814
|
ts.getTextOfJSDocComment = getTextOfJSDocComment;
|
|
12815
|
+
function formatJSDocLink(link) {
|
|
12816
|
+
var kind = link.kind === 322 /* JSDocLink */ ? "link"
|
|
12817
|
+
: link.kind === 323 /* JSDocLinkCode */ ? "linkcode"
|
|
12818
|
+
: "linkplain";
|
|
12819
|
+
var name = link.name ? ts.entityNameToString(link.name) : "";
|
|
12820
|
+
var space = link.name && link.text.startsWith("://") ? "" : " ";
|
|
12821
|
+
return "{@" + kind + " " + name + space + link.text + "}";
|
|
12822
|
+
}
|
|
12818
12823
|
/**
|
|
12819
12824
|
* Gets the effective type parameters. If the node was parsed in a
|
|
12820
12825
|
* JavaScript file, gets the type parameters from the `@template` tag from JSDoc.
|
|
@@ -125863,7 +125868,7 @@ var ts;
|
|
|
125863
125868
|
parts.push(linkTextPart(text));
|
|
125864
125869
|
}
|
|
125865
125870
|
else {
|
|
125866
|
-
parts.push(linkTextPart(name + (suffix ? "" : " ") + text));
|
|
125871
|
+
parts.push(linkTextPart(name + (suffix || text.indexOf("://") === 0 ? "" : " ") + text));
|
|
125867
125872
|
}
|
|
125868
125873
|
}
|
|
125869
125874
|
parts.push(linkPart("}"));
|
|
@@ -138487,7 +138492,7 @@ var ts;
|
|
|
138487
138492
|
newImportSpecifiers.push(ts.factory.createImportSpecifier(/*isTypeOnly*/ false, ts.factory.createIdentifier("default"), defaultImport.importClause.name)); // TODO: GH#18217
|
|
138488
138493
|
}
|
|
138489
138494
|
}
|
|
138490
|
-
newImportSpecifiers.push.apply(newImportSpecifiers,
|
|
138495
|
+
newImportSpecifiers.push.apply(newImportSpecifiers, getNewImportSpecifiers(namedImports));
|
|
138491
138496
|
var sortedImportSpecifiers = sortSpecifiers(newImportSpecifiers);
|
|
138492
138497
|
var importDecl = defaultImports.length > 0
|
|
138493
138498
|
? defaultImports[0]
|
|
@@ -138697,6 +138702,21 @@ var ts;
|
|
|
138697
138702
|
return 6;
|
|
138698
138703
|
}
|
|
138699
138704
|
}
|
|
138705
|
+
function getNewImportSpecifiers(namedImports) {
|
|
138706
|
+
return ts.flatMap(namedImports, function (namedImport) {
|
|
138707
|
+
return ts.map(tryGetNamedBindingElements(namedImport), function (importSpecifier) {
|
|
138708
|
+
return importSpecifier.name && importSpecifier.propertyName && importSpecifier.name.escapedText === importSpecifier.propertyName.escapedText
|
|
138709
|
+
? ts.factory.updateImportSpecifier(importSpecifier, importSpecifier.isTypeOnly, /*propertyName*/ undefined, importSpecifier.name)
|
|
138710
|
+
: importSpecifier;
|
|
138711
|
+
});
|
|
138712
|
+
});
|
|
138713
|
+
}
|
|
138714
|
+
function tryGetNamedBindingElements(namedImport) {
|
|
138715
|
+
var _a;
|
|
138716
|
+
return ((_a = namedImport.importClause) === null || _a === void 0 ? void 0 : _a.namedBindings) && ts.isNamedImports(namedImport.importClause.namedBindings)
|
|
138717
|
+
? namedImport.importClause.namedBindings.elements
|
|
138718
|
+
: undefined;
|
|
138719
|
+
}
|
|
138700
138720
|
})(OrganizeImports = ts.OrganizeImports || (ts.OrganizeImports = {}));
|
|
138701
138721
|
})(ts || (ts = {}));
|
|
138702
138722
|
/* @internal */
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220203";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -13003,12 +13003,17 @@ var ts;
|
|
|
13003
13003
|
/** Gets the text of a jsdoc comment, flattening links to their text. */
|
|
13004
13004
|
function getTextOfJSDocComment(comment) {
|
|
13005
13005
|
return typeof comment === "string" ? comment
|
|
13006
|
-
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) {
|
|
13007
|
-
// TODO: Other kinds here
|
|
13008
|
-
return c.kind === 319 /* JSDocText */ ? c.text : "{@link " + (c.name ? ts.entityNameToString(c.name) + " " : "") + c.text + "}";
|
|
13009
|
-
}).join("");
|
|
13006
|
+
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) { return c.kind === 319 /* JSDocText */ ? c.text : formatJSDocLink(c); }).join("");
|
|
13010
13007
|
}
|
|
13011
13008
|
ts.getTextOfJSDocComment = getTextOfJSDocComment;
|
|
13009
|
+
function formatJSDocLink(link) {
|
|
13010
|
+
var kind = link.kind === 322 /* JSDocLink */ ? "link"
|
|
13011
|
+
: link.kind === 323 /* JSDocLinkCode */ ? "linkcode"
|
|
13012
|
+
: "linkplain";
|
|
13013
|
+
var name = link.name ? ts.entityNameToString(link.name) : "";
|
|
13014
|
+
var space = link.name && link.text.startsWith("://") ? "" : " ";
|
|
13015
|
+
return "{@" + kind + " " + name + space + link.text + "}";
|
|
13016
|
+
}
|
|
13012
13017
|
/**
|
|
13013
13018
|
* Gets the effective type parameters. If the node was parsed in a
|
|
13014
13019
|
* JavaScript file, gets the type parameters from the `@template` tag from JSDoc.
|
|
@@ -126474,7 +126479,7 @@ var ts;
|
|
|
126474
126479
|
parts.push(linkTextPart(text));
|
|
126475
126480
|
}
|
|
126476
126481
|
else {
|
|
126477
|
-
parts.push(linkTextPart(name + (suffix ? "" : " ") + text));
|
|
126482
|
+
parts.push(linkTextPart(name + (suffix || text.indexOf("://") === 0 ? "" : " ") + text));
|
|
126478
126483
|
}
|
|
126479
126484
|
}
|
|
126480
126485
|
parts.push(linkPart("}"));
|
|
@@ -139098,7 +139103,7 @@ var ts;
|
|
|
139098
139103
|
newImportSpecifiers.push(ts.factory.createImportSpecifier(/*isTypeOnly*/ false, ts.factory.createIdentifier("default"), defaultImport.importClause.name)); // TODO: GH#18217
|
|
139099
139104
|
}
|
|
139100
139105
|
}
|
|
139101
|
-
newImportSpecifiers.push.apply(newImportSpecifiers,
|
|
139106
|
+
newImportSpecifiers.push.apply(newImportSpecifiers, getNewImportSpecifiers(namedImports));
|
|
139102
139107
|
var sortedImportSpecifiers = sortSpecifiers(newImportSpecifiers);
|
|
139103
139108
|
var importDecl = defaultImports.length > 0
|
|
139104
139109
|
? defaultImports[0]
|
|
@@ -139308,6 +139313,21 @@ var ts;
|
|
|
139308
139313
|
return 6;
|
|
139309
139314
|
}
|
|
139310
139315
|
}
|
|
139316
|
+
function getNewImportSpecifiers(namedImports) {
|
|
139317
|
+
return ts.flatMap(namedImports, function (namedImport) {
|
|
139318
|
+
return ts.map(tryGetNamedBindingElements(namedImport), function (importSpecifier) {
|
|
139319
|
+
return importSpecifier.name && importSpecifier.propertyName && importSpecifier.name.escapedText === importSpecifier.propertyName.escapedText
|
|
139320
|
+
? ts.factory.updateImportSpecifier(importSpecifier, importSpecifier.isTypeOnly, /*propertyName*/ undefined, importSpecifier.name)
|
|
139321
|
+
: importSpecifier;
|
|
139322
|
+
});
|
|
139323
|
+
});
|
|
139324
|
+
}
|
|
139325
|
+
function tryGetNamedBindingElements(namedImport) {
|
|
139326
|
+
var _a;
|
|
139327
|
+
return ((_a = namedImport.importClause) === null || _a === void 0 ? void 0 : _a.namedBindings) && ts.isNamedImports(namedImport.importClause.namedBindings)
|
|
139328
|
+
? namedImport.importClause.namedBindings.elements
|
|
139329
|
+
: undefined;
|
|
139330
|
+
}
|
|
139311
139331
|
})(OrganizeImports = ts.OrganizeImports || (ts.OrganizeImports = {}));
|
|
139312
139332
|
})(ts || (ts = {}));
|
|
139313
139333
|
/* @internal */
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220203";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -13003,12 +13003,17 @@ var ts;
|
|
|
13003
13003
|
/** Gets the text of a jsdoc comment, flattening links to their text. */
|
|
13004
13004
|
function getTextOfJSDocComment(comment) {
|
|
13005
13005
|
return typeof comment === "string" ? comment
|
|
13006
|
-
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) {
|
|
13007
|
-
// TODO: Other kinds here
|
|
13008
|
-
return c.kind === 319 /* JSDocText */ ? c.text : "{@link " + (c.name ? ts.entityNameToString(c.name) + " " : "") + c.text + "}";
|
|
13009
|
-
}).join("");
|
|
13006
|
+
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) { return c.kind === 319 /* JSDocText */ ? c.text : formatJSDocLink(c); }).join("");
|
|
13010
13007
|
}
|
|
13011
13008
|
ts.getTextOfJSDocComment = getTextOfJSDocComment;
|
|
13009
|
+
function formatJSDocLink(link) {
|
|
13010
|
+
var kind = link.kind === 322 /* JSDocLink */ ? "link"
|
|
13011
|
+
: link.kind === 323 /* JSDocLinkCode */ ? "linkcode"
|
|
13012
|
+
: "linkplain";
|
|
13013
|
+
var name = link.name ? ts.entityNameToString(link.name) : "";
|
|
13014
|
+
var space = link.name && link.text.startsWith("://") ? "" : " ";
|
|
13015
|
+
return "{@" + kind + " " + name + space + link.text + "}";
|
|
13016
|
+
}
|
|
13012
13017
|
/**
|
|
13013
13018
|
* Gets the effective type parameters. If the node was parsed in a
|
|
13014
13019
|
* JavaScript file, gets the type parameters from the `@template` tag from JSDoc.
|
|
@@ -126474,7 +126479,7 @@ var ts;
|
|
|
126474
126479
|
parts.push(linkTextPart(text));
|
|
126475
126480
|
}
|
|
126476
126481
|
else {
|
|
126477
|
-
parts.push(linkTextPart(name + (suffix ? "" : " ") + text));
|
|
126482
|
+
parts.push(linkTextPart(name + (suffix || text.indexOf("://") === 0 ? "" : " ") + text));
|
|
126478
126483
|
}
|
|
126479
126484
|
}
|
|
126480
126485
|
parts.push(linkPart("}"));
|
|
@@ -139098,7 +139103,7 @@ var ts;
|
|
|
139098
139103
|
newImportSpecifiers.push(ts.factory.createImportSpecifier(/*isTypeOnly*/ false, ts.factory.createIdentifier("default"), defaultImport.importClause.name)); // TODO: GH#18217
|
|
139099
139104
|
}
|
|
139100
139105
|
}
|
|
139101
|
-
newImportSpecifiers.push.apply(newImportSpecifiers,
|
|
139106
|
+
newImportSpecifiers.push.apply(newImportSpecifiers, getNewImportSpecifiers(namedImports));
|
|
139102
139107
|
var sortedImportSpecifiers = sortSpecifiers(newImportSpecifiers);
|
|
139103
139108
|
var importDecl = defaultImports.length > 0
|
|
139104
139109
|
? defaultImports[0]
|
|
@@ -139308,6 +139313,21 @@ var ts;
|
|
|
139308
139313
|
return 6;
|
|
139309
139314
|
}
|
|
139310
139315
|
}
|
|
139316
|
+
function getNewImportSpecifiers(namedImports) {
|
|
139317
|
+
return ts.flatMap(namedImports, function (namedImport) {
|
|
139318
|
+
return ts.map(tryGetNamedBindingElements(namedImport), function (importSpecifier) {
|
|
139319
|
+
return importSpecifier.name && importSpecifier.propertyName && importSpecifier.name.escapedText === importSpecifier.propertyName.escapedText
|
|
139320
|
+
? ts.factory.updateImportSpecifier(importSpecifier, importSpecifier.isTypeOnly, /*propertyName*/ undefined, importSpecifier.name)
|
|
139321
|
+
: importSpecifier;
|
|
139322
|
+
});
|
|
139323
|
+
});
|
|
139324
|
+
}
|
|
139325
|
+
function tryGetNamedBindingElements(namedImport) {
|
|
139326
|
+
var _a;
|
|
139327
|
+
return ((_a = namedImport.importClause) === null || _a === void 0 ? void 0 : _a.namedBindings) && ts.isNamedImports(namedImport.importClause.namedBindings)
|
|
139328
|
+
? namedImport.importClause.namedBindings.elements
|
|
139329
|
+
: undefined;
|
|
139330
|
+
}
|
|
139311
139331
|
})(OrganizeImports = ts.OrganizeImports || (ts.OrganizeImports = {}));
|
|
139312
139332
|
})(ts || (ts = {}));
|
|
139313
139333
|
/* @internal */
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220203";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -13003,12 +13003,17 @@ var ts;
|
|
|
13003
13003
|
/** Gets the text of a jsdoc comment, flattening links to their text. */
|
|
13004
13004
|
function getTextOfJSDocComment(comment) {
|
|
13005
13005
|
return typeof comment === "string" ? comment
|
|
13006
|
-
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) {
|
|
13007
|
-
// TODO: Other kinds here
|
|
13008
|
-
return c.kind === 319 /* JSDocText */ ? c.text : "{@link " + (c.name ? ts.entityNameToString(c.name) + " " : "") + c.text + "}";
|
|
13009
|
-
}).join("");
|
|
13006
|
+
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) { return c.kind === 319 /* JSDocText */ ? c.text : formatJSDocLink(c); }).join("");
|
|
13010
13007
|
}
|
|
13011
13008
|
ts.getTextOfJSDocComment = getTextOfJSDocComment;
|
|
13009
|
+
function formatJSDocLink(link) {
|
|
13010
|
+
var kind = link.kind === 322 /* JSDocLink */ ? "link"
|
|
13011
|
+
: link.kind === 323 /* JSDocLinkCode */ ? "linkcode"
|
|
13012
|
+
: "linkplain";
|
|
13013
|
+
var name = link.name ? ts.entityNameToString(link.name) : "";
|
|
13014
|
+
var space = link.name && link.text.startsWith("://") ? "" : " ";
|
|
13015
|
+
return "{@" + kind + " " + name + space + link.text + "}";
|
|
13016
|
+
}
|
|
13012
13017
|
/**
|
|
13013
13018
|
* Gets the effective type parameters. If the node was parsed in a
|
|
13014
13019
|
* JavaScript file, gets the type parameters from the `@template` tag from JSDoc.
|
|
@@ -126474,7 +126479,7 @@ var ts;
|
|
|
126474
126479
|
parts.push(linkTextPart(text));
|
|
126475
126480
|
}
|
|
126476
126481
|
else {
|
|
126477
|
-
parts.push(linkTextPart(name + (suffix ? "" : " ") + text));
|
|
126482
|
+
parts.push(linkTextPart(name + (suffix || text.indexOf("://") === 0 ? "" : " ") + text));
|
|
126478
126483
|
}
|
|
126479
126484
|
}
|
|
126480
126485
|
parts.push(linkPart("}"));
|
|
@@ -139098,7 +139103,7 @@ var ts;
|
|
|
139098
139103
|
newImportSpecifiers.push(ts.factory.createImportSpecifier(/*isTypeOnly*/ false, ts.factory.createIdentifier("default"), defaultImport.importClause.name)); // TODO: GH#18217
|
|
139099
139104
|
}
|
|
139100
139105
|
}
|
|
139101
|
-
newImportSpecifiers.push.apply(newImportSpecifiers,
|
|
139106
|
+
newImportSpecifiers.push.apply(newImportSpecifiers, getNewImportSpecifiers(namedImports));
|
|
139102
139107
|
var sortedImportSpecifiers = sortSpecifiers(newImportSpecifiers);
|
|
139103
139108
|
var importDecl = defaultImports.length > 0
|
|
139104
139109
|
? defaultImports[0]
|
|
@@ -139308,6 +139313,21 @@ var ts;
|
|
|
139308
139313
|
return 6;
|
|
139309
139314
|
}
|
|
139310
139315
|
}
|
|
139316
|
+
function getNewImportSpecifiers(namedImports) {
|
|
139317
|
+
return ts.flatMap(namedImports, function (namedImport) {
|
|
139318
|
+
return ts.map(tryGetNamedBindingElements(namedImport), function (importSpecifier) {
|
|
139319
|
+
return importSpecifier.name && importSpecifier.propertyName && importSpecifier.name.escapedText === importSpecifier.propertyName.escapedText
|
|
139320
|
+
? ts.factory.updateImportSpecifier(importSpecifier, importSpecifier.isTypeOnly, /*propertyName*/ undefined, importSpecifier.name)
|
|
139321
|
+
: importSpecifier;
|
|
139322
|
+
});
|
|
139323
|
+
});
|
|
139324
|
+
}
|
|
139325
|
+
function tryGetNamedBindingElements(namedImport) {
|
|
139326
|
+
var _a;
|
|
139327
|
+
return ((_a = namedImport.importClause) === null || _a === void 0 ? void 0 : _a.namedBindings) && ts.isNamedImports(namedImport.importClause.namedBindings)
|
|
139328
|
+
? namedImport.importClause.namedBindings.elements
|
|
139329
|
+
: undefined;
|
|
139330
|
+
}
|
|
139311
139331
|
})(OrganizeImports = ts.OrganizeImports || (ts.OrganizeImports = {}));
|
|
139312
139332
|
})(ts || (ts = {}));
|
|
139313
139333
|
/* @internal */
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -89,7 +89,7 @@ var ts;
|
|
|
89
89
|
// The following is baselined as a literal template type without intervention
|
|
90
90
|
/** The version of the TypeScript compiler release */
|
|
91
91
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
92
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220203";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -12798,12 +12798,17 @@ var ts;
|
|
|
12798
12798
|
/** Gets the text of a jsdoc comment, flattening links to their text. */
|
|
12799
12799
|
function getTextOfJSDocComment(comment) {
|
|
12800
12800
|
return typeof comment === "string" ? comment
|
|
12801
|
-
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) {
|
|
12802
|
-
// TODO: Other kinds here
|
|
12803
|
-
return c.kind === 319 /* JSDocText */ ? c.text : "{@link " + (c.name ? ts.entityNameToString(c.name) + " " : "") + c.text + "}";
|
|
12804
|
-
}).join("");
|
|
12801
|
+
: comment === null || comment === void 0 ? void 0 : comment.map(function (c) { return c.kind === 319 /* JSDocText */ ? c.text : formatJSDocLink(c); }).join("");
|
|
12805
12802
|
}
|
|
12806
12803
|
ts.getTextOfJSDocComment = getTextOfJSDocComment;
|
|
12804
|
+
function formatJSDocLink(link) {
|
|
12805
|
+
var kind = link.kind === 322 /* JSDocLink */ ? "link"
|
|
12806
|
+
: link.kind === 323 /* JSDocLinkCode */ ? "linkcode"
|
|
12807
|
+
: "linkplain";
|
|
12808
|
+
var name = link.name ? ts.entityNameToString(link.name) : "";
|
|
12809
|
+
var space = link.name && link.text.startsWith("://") ? "" : " ";
|
|
12810
|
+
return "{@" + kind + " " + name + space + link.text + "}";
|
|
12811
|
+
}
|
|
12807
12812
|
/**
|
|
12808
12813
|
* Gets the effective type parameters. If the node was parsed in a
|
|
12809
12814
|
* JavaScript file, gets the type parameters from the `@template` tag from JSDoc.
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "4.6.0-dev.
|
|
5
|
+
"version": "4.6.0-dev.20220203",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|