typescript 4.9.0-dev.20220916 → 4.9.0-dev.20220918
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/lib.es5.d.ts +4 -0
- package/lib/tsc.js +5 -4
- package/lib/tsserver.js +7 -5
- package/lib/tsserverlibrary.js +7 -5
- package/lib/typescript.js +7 -5
- package/lib/typescriptServices.js +7 -5
- package/lib/typingsInstaller.js +5 -4
- package/package.json +1 -1
package/lib/lib.es5.d.ts
CHANGED
|
@@ -960,6 +960,10 @@ interface RegExpExecArray extends Array<string> {
|
|
|
960
960
|
* A copy of the search string.
|
|
961
961
|
*/
|
|
962
962
|
input: string;
|
|
963
|
+
/**
|
|
964
|
+
* The first match. This will always be present because `null` will be returned if there are no matches.
|
|
965
|
+
*/
|
|
966
|
+
0: string;
|
|
963
967
|
}
|
|
964
968
|
|
|
965
969
|
interface RegExp {
|
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.9";
|
|
72
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
72
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220918");
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -60980,10 +60980,11 @@ var ts;
|
|
|
60980
60980
|
if (!(links.flags & 268435456)) {
|
|
60981
60981
|
links.flags |= 268435456;
|
|
60982
60982
|
var parentType = getTypeForBindingElementParent(parent, 0);
|
|
60983
|
+
var parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
60983
60984
|
links.flags &= ~268435456;
|
|
60984
|
-
if (
|
|
60985
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 && !(parent.kind === 166 && isSymbolAssigned(symbol))) {
|
|
60985
60986
|
var pattern = declaration.parent;
|
|
60986
|
-
var narrowedType = getFlowTypeOfReference(pattern,
|
|
60987
|
+
var narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, undefined, location.flowNode);
|
|
60987
60988
|
if (narrowedType.flags & 131072) {
|
|
60988
60989
|
return neverType;
|
|
60989
60990
|
}
|
|
@@ -68880,7 +68881,7 @@ var ts;
|
|
|
68880
68881
|
checkDecorators(node);
|
|
68881
68882
|
}
|
|
68882
68883
|
function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
|
|
68883
|
-
if (index <
|
|
68884
|
+
if (node.typeArguments && index < node.typeArguments.length) {
|
|
68884
68885
|
return getTypeFromTypeNode(node.typeArguments[index]);
|
|
68885
68886
|
}
|
|
68886
68887
|
return getEffectiveTypeArguments(node, typeParameters)[index];
|
package/lib/tsserver.js
CHANGED
|
@@ -109,7 +109,7 @@ var ts;
|
|
|
109
109
|
// The following is baselined as a literal template type without intervention
|
|
110
110
|
/** The version of the TypeScript compiler release */
|
|
111
111
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
112
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
112
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220918");
|
|
113
113
|
/* @internal */
|
|
114
114
|
var Comparison;
|
|
115
115
|
(function (Comparison) {
|
|
@@ -72873,10 +72873,11 @@ var ts;
|
|
|
72873
72873
|
if (!(links.flags & 268435456 /* NodeCheckFlags.InCheckIdentifier */)) {
|
|
72874
72874
|
links.flags |= 268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72875
72875
|
var parentType = getTypeForBindingElementParent(parent, 0 /* CheckMode.Normal */);
|
|
72876
|
+
var parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
72876
72877
|
links.flags &= ~268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72877
|
-
if (
|
|
72878
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* TypeFlags.Union */ && !(parent.kind === 166 /* SyntaxKind.Parameter */ && isSymbolAssigned(symbol))) {
|
|
72878
72879
|
var pattern = declaration.parent;
|
|
72879
|
-
var narrowedType = getFlowTypeOfReference(pattern,
|
|
72880
|
+
var narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, /*flowContainer*/ undefined, location.flowNode);
|
|
72880
72881
|
if (narrowedType.flags & 131072 /* TypeFlags.Never */) {
|
|
72881
72882
|
return neverType;
|
|
72882
72883
|
}
|
|
@@ -82027,7 +82028,7 @@ var ts;
|
|
|
82027
82028
|
checkDecorators(node);
|
|
82028
82029
|
}
|
|
82029
82030
|
function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
|
|
82030
|
-
if (index <
|
|
82031
|
+
if (node.typeArguments && index < node.typeArguments.length) {
|
|
82031
82032
|
return getTypeFromTypeNode(node.typeArguments[index]);
|
|
82032
82033
|
}
|
|
82033
82034
|
return getEffectiveTypeArguments(node, typeParameters)[index];
|
|
@@ -135496,7 +135497,8 @@ var ts;
|
|
|
135496
135497
|
}
|
|
135497
135498
|
var parameters = typeNode.parameters.map(function (typedParam) {
|
|
135498
135499
|
return ts.factory.createParameterDeclaration(
|
|
135499
|
-
/*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
|
|
135500
|
+
/*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
|
|
135501
|
+
/*questionToken*/ undefined,
|
|
135500
135502
|
/*type*/ undefined, typedParam.initializer);
|
|
135501
135503
|
});
|
|
135502
135504
|
return ts.factory.createMethodDeclaration(
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -108,7 +108,7 @@ var ts;
|
|
|
108
108
|
// The following is baselined as a literal template type without intervention
|
|
109
109
|
/** The version of the TypeScript compiler release */
|
|
110
110
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
111
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
111
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220918");
|
|
112
112
|
/* @internal */
|
|
113
113
|
var Comparison;
|
|
114
114
|
(function (Comparison) {
|
|
@@ -72872,10 +72872,11 @@ var ts;
|
|
|
72872
72872
|
if (!(links.flags & 268435456 /* NodeCheckFlags.InCheckIdentifier */)) {
|
|
72873
72873
|
links.flags |= 268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72874
72874
|
var parentType = getTypeForBindingElementParent(parent, 0 /* CheckMode.Normal */);
|
|
72875
|
+
var parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
72875
72876
|
links.flags &= ~268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72876
|
-
if (
|
|
72877
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* TypeFlags.Union */ && !(parent.kind === 166 /* SyntaxKind.Parameter */ && isSymbolAssigned(symbol))) {
|
|
72877
72878
|
var pattern = declaration.parent;
|
|
72878
|
-
var narrowedType = getFlowTypeOfReference(pattern,
|
|
72879
|
+
var narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, /*flowContainer*/ undefined, location.flowNode);
|
|
72879
72880
|
if (narrowedType.flags & 131072 /* TypeFlags.Never */) {
|
|
72880
72881
|
return neverType;
|
|
72881
72882
|
}
|
|
@@ -82026,7 +82027,7 @@ var ts;
|
|
|
82026
82027
|
checkDecorators(node);
|
|
82027
82028
|
}
|
|
82028
82029
|
function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
|
|
82029
|
-
if (index <
|
|
82030
|
+
if (node.typeArguments && index < node.typeArguments.length) {
|
|
82030
82031
|
return getTypeFromTypeNode(node.typeArguments[index]);
|
|
82031
82032
|
}
|
|
82032
82033
|
return getEffectiveTypeArguments(node, typeParameters)[index];
|
|
@@ -135914,7 +135915,8 @@ var ts;
|
|
|
135914
135915
|
}
|
|
135915
135916
|
var parameters = typeNode.parameters.map(function (typedParam) {
|
|
135916
135917
|
return ts.factory.createParameterDeclaration(
|
|
135917
|
-
/*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
|
|
135918
|
+
/*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
|
|
135919
|
+
/*questionToken*/ undefined,
|
|
135918
135920
|
/*type*/ undefined, typedParam.initializer);
|
|
135919
135921
|
});
|
|
135920
135922
|
return ts.factory.createMethodDeclaration(
|
package/lib/typescript.js
CHANGED
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220918");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -72863,10 +72863,11 @@ var ts;
|
|
|
72863
72863
|
if (!(links.flags & 268435456 /* NodeCheckFlags.InCheckIdentifier */)) {
|
|
72864
72864
|
links.flags |= 268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72865
72865
|
var parentType = getTypeForBindingElementParent(parent, 0 /* CheckMode.Normal */);
|
|
72866
|
+
var parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
72866
72867
|
links.flags &= ~268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72867
|
-
if (
|
|
72868
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* TypeFlags.Union */ && !(parent.kind === 166 /* SyntaxKind.Parameter */ && isSymbolAssigned(symbol))) {
|
|
72868
72869
|
var pattern = declaration.parent;
|
|
72869
|
-
var narrowedType = getFlowTypeOfReference(pattern,
|
|
72870
|
+
var narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, /*flowContainer*/ undefined, location.flowNode);
|
|
72870
72871
|
if (narrowedType.flags & 131072 /* TypeFlags.Never */) {
|
|
72871
72872
|
return neverType;
|
|
72872
72873
|
}
|
|
@@ -82017,7 +82018,7 @@ var ts;
|
|
|
82017
82018
|
checkDecorators(node);
|
|
82018
82019
|
}
|
|
82019
82020
|
function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
|
|
82020
|
-
if (index <
|
|
82021
|
+
if (node.typeArguments && index < node.typeArguments.length) {
|
|
82021
82022
|
return getTypeFromTypeNode(node.typeArguments[index]);
|
|
82022
82023
|
}
|
|
82023
82024
|
return getEffectiveTypeArguments(node, typeParameters)[index];
|
|
@@ -135905,7 +135906,8 @@ var ts;
|
|
|
135905
135906
|
}
|
|
135906
135907
|
var parameters = typeNode.parameters.map(function (typedParam) {
|
|
135907
135908
|
return ts.factory.createParameterDeclaration(
|
|
135908
|
-
/*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
|
|
135909
|
+
/*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
|
|
135910
|
+
/*questionToken*/ undefined,
|
|
135909
135911
|
/*type*/ undefined, typedParam.initializer);
|
|
135910
135912
|
});
|
|
135911
135913
|
return ts.factory.createMethodDeclaration(
|
|
@@ -99,7 +99,7 @@ var ts;
|
|
|
99
99
|
// The following is baselined as a literal template type without intervention
|
|
100
100
|
/** The version of the TypeScript compiler release */
|
|
101
101
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
102
|
-
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
102
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220918");
|
|
103
103
|
/* @internal */
|
|
104
104
|
var Comparison;
|
|
105
105
|
(function (Comparison) {
|
|
@@ -72863,10 +72863,11 @@ var ts;
|
|
|
72863
72863
|
if (!(links.flags & 268435456 /* NodeCheckFlags.InCheckIdentifier */)) {
|
|
72864
72864
|
links.flags |= 268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72865
72865
|
var parentType = getTypeForBindingElementParent(parent, 0 /* CheckMode.Normal */);
|
|
72866
|
+
var parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
72866
72867
|
links.flags &= ~268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72867
|
-
if (
|
|
72868
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* TypeFlags.Union */ && !(parent.kind === 166 /* SyntaxKind.Parameter */ && isSymbolAssigned(symbol))) {
|
|
72868
72869
|
var pattern = declaration.parent;
|
|
72869
|
-
var narrowedType = getFlowTypeOfReference(pattern,
|
|
72870
|
+
var narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, /*flowContainer*/ undefined, location.flowNode);
|
|
72870
72871
|
if (narrowedType.flags & 131072 /* TypeFlags.Never */) {
|
|
72871
72872
|
return neverType;
|
|
72872
72873
|
}
|
|
@@ -82017,7 +82018,7 @@ var ts;
|
|
|
82017
82018
|
checkDecorators(node);
|
|
82018
82019
|
}
|
|
82019
82020
|
function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
|
|
82020
|
-
if (index <
|
|
82021
|
+
if (node.typeArguments && index < node.typeArguments.length) {
|
|
82021
82022
|
return getTypeFromTypeNode(node.typeArguments[index]);
|
|
82022
82023
|
}
|
|
82023
82024
|
return getEffectiveTypeArguments(node, typeParameters)[index];
|
|
@@ -135905,7 +135906,8 @@ var ts;
|
|
|
135905
135906
|
}
|
|
135906
135907
|
var parameters = typeNode.parameters.map(function (typedParam) {
|
|
135907
135908
|
return ts.factory.createParameterDeclaration(
|
|
135908
|
-
/*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
|
|
135909
|
+
/*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
|
|
135910
|
+
/*questionToken*/ undefined,
|
|
135909
135911
|
/*type*/ undefined, typedParam.initializer);
|
|
135910
135912
|
});
|
|
135911
135913
|
return ts.factory.createMethodDeclaration(
|
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 = "".concat(ts.versionMajorMinor, ".0-dev.
|
|
92
|
+
ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220918");
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -72853,10 +72853,11 @@ var ts;
|
|
|
72853
72853
|
if (!(links.flags & 268435456 /* NodeCheckFlags.InCheckIdentifier */)) {
|
|
72854
72854
|
links.flags |= 268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72855
72855
|
var parentType = getTypeForBindingElementParent(parent, 0 /* CheckMode.Normal */);
|
|
72856
|
+
var parentTypeConstraint = parentType && mapType(parentType, getBaseConstraintOrType);
|
|
72856
72857
|
links.flags &= ~268435456 /* NodeCheckFlags.InCheckIdentifier */;
|
|
72857
|
-
if (
|
|
72858
|
+
if (parentTypeConstraint && parentTypeConstraint.flags & 1048576 /* TypeFlags.Union */ && !(parent.kind === 166 /* SyntaxKind.Parameter */ && isSymbolAssigned(symbol))) {
|
|
72858
72859
|
var pattern = declaration.parent;
|
|
72859
|
-
var narrowedType = getFlowTypeOfReference(pattern,
|
|
72860
|
+
var narrowedType = getFlowTypeOfReference(pattern, parentTypeConstraint, parentTypeConstraint, /*flowContainer*/ undefined, location.flowNode);
|
|
72860
72861
|
if (narrowedType.flags & 131072 /* TypeFlags.Never */) {
|
|
72861
72862
|
return neverType;
|
|
72862
72863
|
}
|
|
@@ -82007,7 +82008,7 @@ var ts;
|
|
|
82007
82008
|
checkDecorators(node);
|
|
82008
82009
|
}
|
|
82009
82010
|
function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
|
|
82010
|
-
if (index <
|
|
82011
|
+
if (node.typeArguments && index < node.typeArguments.length) {
|
|
82011
82012
|
return getTypeFromTypeNode(node.typeArguments[index]);
|
|
82012
82013
|
}
|
|
82013
82014
|
return getEffectiveTypeArguments(node, typeParameters)[index];
|
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.9.0-dev.
|
|
5
|
+
"version": "4.9.0-dev.20220918",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|