typescript 4.6.0-dev.20211130 → 4.6.0-dev.20211201
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 +2 -2
- package/lib/tsserver.js +3 -2
- package/lib/tsserverlibrary.js +3 -2
- package/lib/typescript.js +3 -2
- package/lib/typescriptServices.js +3 -2
- package/lib/typingsInstaller.js +3 -2
- 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.20211201";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
function tryGetNativeMap() {
|
|
@@ -27071,7 +27071,7 @@ var ts;
|
|
|
27071
27071
|
if (type && !allowAmbiguity && typeHasArrowFunctionBlockingParseError(type)) {
|
|
27072
27072
|
return undefined;
|
|
27073
27073
|
}
|
|
27074
|
-
var hasJSDocFunctionType = type && ts.isJSDocFunctionType(type);
|
|
27074
|
+
var hasJSDocFunctionType = type && (ts.isJSDocFunctionType(type) || ts.isParenthesizedTypeNode(type) && ts.isJSDocFunctionType(type.type));
|
|
27075
27075
|
if (!allowAmbiguity && token() !== 38 && (hasJSDocFunctionType || token() !== 18)) {
|
|
27076
27076
|
return undefined;
|
|
27077
27077
|
}
|
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.20211201";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -33608,9 +33608,10 @@ var ts;
|
|
|
33608
33608
|
// - "(x,y)" is a comma expression parsed as a signature with two parameters.
|
|
33609
33609
|
// - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation.
|
|
33610
33610
|
// - "a ? (b): function() {}" will too, since function() is a valid JSDoc function type.
|
|
33611
|
+
// - "a ? (b): (function() {})" as well, but inside of a parenthesized type.
|
|
33611
33612
|
//
|
|
33612
33613
|
// So we need just a bit of lookahead to ensure that it can only be a signature.
|
|
33613
|
-
var hasJSDocFunctionType = type && ts.isJSDocFunctionType(type);
|
|
33614
|
+
var hasJSDocFunctionType = type && (ts.isJSDocFunctionType(type) || ts.isParenthesizedTypeNode(type) && ts.isJSDocFunctionType(type.type));
|
|
33614
33615
|
if (!allowAmbiguity && token() !== 38 /* EqualsGreaterThanToken */ && (hasJSDocFunctionType || token() !== 18 /* OpenBraceToken */)) {
|
|
33615
33616
|
// Returning undefined here will cause our caller to rewind to where we started from.
|
|
33616
33617
|
return undefined;
|
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.20211201";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -33802,9 +33802,10 @@ var ts;
|
|
|
33802
33802
|
// - "(x,y)" is a comma expression parsed as a signature with two parameters.
|
|
33803
33803
|
// - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation.
|
|
33804
33804
|
// - "a ? (b): function() {}" will too, since function() is a valid JSDoc function type.
|
|
33805
|
+
// - "a ? (b): (function() {})" as well, but inside of a parenthesized type.
|
|
33805
33806
|
//
|
|
33806
33807
|
// So we need just a bit of lookahead to ensure that it can only be a signature.
|
|
33807
|
-
var hasJSDocFunctionType = type && ts.isJSDocFunctionType(type);
|
|
33808
|
+
var hasJSDocFunctionType = type && (ts.isJSDocFunctionType(type) || ts.isParenthesizedTypeNode(type) && ts.isJSDocFunctionType(type.type));
|
|
33808
33809
|
if (!allowAmbiguity && token() !== 38 /* EqualsGreaterThanToken */ && (hasJSDocFunctionType || token() !== 18 /* OpenBraceToken */)) {
|
|
33809
33810
|
// Returning undefined here will cause our caller to rewind to where we started from.
|
|
33810
33811
|
return undefined;
|
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.20211201";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -33802,9 +33802,10 @@ var ts;
|
|
|
33802
33802
|
// - "(x,y)" is a comma expression parsed as a signature with two parameters.
|
|
33803
33803
|
// - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation.
|
|
33804
33804
|
// - "a ? (b): function() {}" will too, since function() is a valid JSDoc function type.
|
|
33805
|
+
// - "a ? (b): (function() {})" as well, but inside of a parenthesized type.
|
|
33805
33806
|
//
|
|
33806
33807
|
// So we need just a bit of lookahead to ensure that it can only be a signature.
|
|
33807
|
-
var hasJSDocFunctionType = type && ts.isJSDocFunctionType(type);
|
|
33808
|
+
var hasJSDocFunctionType = type && (ts.isJSDocFunctionType(type) || ts.isParenthesizedTypeNode(type) && ts.isJSDocFunctionType(type.type));
|
|
33808
33809
|
if (!allowAmbiguity && token() !== 38 /* EqualsGreaterThanToken */ && (hasJSDocFunctionType || token() !== 18 /* OpenBraceToken */)) {
|
|
33809
33810
|
// Returning undefined here will cause our caller to rewind to where we started from.
|
|
33810
33811
|
return undefined;
|
|
@@ -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.20211201";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -33802,9 +33802,10 @@ var ts;
|
|
|
33802
33802
|
// - "(x,y)" is a comma expression parsed as a signature with two parameters.
|
|
33803
33803
|
// - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation.
|
|
33804
33804
|
// - "a ? (b): function() {}" will too, since function() is a valid JSDoc function type.
|
|
33805
|
+
// - "a ? (b): (function() {})" as well, but inside of a parenthesized type.
|
|
33805
33806
|
//
|
|
33806
33807
|
// So we need just a bit of lookahead to ensure that it can only be a signature.
|
|
33807
|
-
var hasJSDocFunctionType = type && ts.isJSDocFunctionType(type);
|
|
33808
|
+
var hasJSDocFunctionType = type && (ts.isJSDocFunctionType(type) || ts.isParenthesizedTypeNode(type) && ts.isJSDocFunctionType(type.type));
|
|
33808
33809
|
if (!allowAmbiguity && token() !== 38 /* EqualsGreaterThanToken */ && (hasJSDocFunctionType || token() !== 18 /* OpenBraceToken */)) {
|
|
33809
33810
|
// Returning undefined here will cause our caller to rewind to where we started from.
|
|
33810
33811
|
return undefined;
|
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.20211201";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -33597,9 +33597,10 @@ var ts;
|
|
|
33597
33597
|
// - "(x,y)" is a comma expression parsed as a signature with two parameters.
|
|
33598
33598
|
// - "a ? (b): c" will have "(b):" parsed as a signature with a return type annotation.
|
|
33599
33599
|
// - "a ? (b): function() {}" will too, since function() is a valid JSDoc function type.
|
|
33600
|
+
// - "a ? (b): (function() {})" as well, but inside of a parenthesized type.
|
|
33600
33601
|
//
|
|
33601
33602
|
// So we need just a bit of lookahead to ensure that it can only be a signature.
|
|
33602
|
-
var hasJSDocFunctionType = type && ts.isJSDocFunctionType(type);
|
|
33603
|
+
var hasJSDocFunctionType = type && (ts.isJSDocFunctionType(type) || ts.isParenthesizedTypeNode(type) && ts.isJSDocFunctionType(type.type));
|
|
33603
33604
|
if (!allowAmbiguity && token() !== 38 /* EqualsGreaterThanToken */ && (hasJSDocFunctionType || token() !== 18 /* OpenBraceToken */)) {
|
|
33604
33605
|
// Returning undefined here will cause our caller to rewind to where we started from.
|
|
33605
33606
|
return undefined;
|
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.20211201",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|