typescript 4.7.0-dev.20220303 → 4.7.0-dev.20220304
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.es2015.reflect.d.ts +1 -1
- package/lib/lib.es5.d.ts +6 -0
- package/lib/tsc.js +5 -2
- package/lib/tsserver.js +5 -2
- package/lib/tsserverlibrary.js +5 -2
- package/lib/typescript.js +5 -2
- package/lib/typescriptServices.js +5 -2
- package/lib/typingsInstaller.js +5 -2
- package/package.json +1 -1
|
@@ -44,7 +44,7 @@ declare namespace Reflect {
|
|
|
44
44
|
* @param propertyKey The property name.
|
|
45
45
|
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
|
|
46
46
|
*/
|
|
47
|
-
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean;
|
|
47
|
+
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Removes a property from an object, equivalent to `delete target[propertyKey]`,
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -226,6 +226,12 @@ interface ObjectConstructor {
|
|
|
226
226
|
*/
|
|
227
227
|
freeze<T extends Function>(f: T): T;
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
231
|
+
* @param o Object on which to lock the attributes.
|
|
232
|
+
*/
|
|
233
|
+
freeze<T extends {[idx: string]: U | null | undefined | object}, U extends string | bigint | number | symbol>(o: T): Readonly<T>;
|
|
234
|
+
|
|
229
235
|
/**
|
|
230
236
|
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
|
|
231
237
|
* @param o Object on which to lock the attributes.
|
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.7";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220304";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -77386,6 +77386,9 @@ var ts;
|
|
|
77386
77386
|
function substituteElementAccessExpression(node) {
|
|
77387
77387
|
return substituteConstantValue(node);
|
|
77388
77388
|
}
|
|
77389
|
+
function safeMultiLineComment(value) {
|
|
77390
|
+
return value.replace(/\*\//g, "*_/");
|
|
77391
|
+
}
|
|
77389
77392
|
function substituteConstantValue(node) {
|
|
77390
77393
|
var constantValue = tryGetConstEnumValue(node);
|
|
77391
77394
|
if (constantValue !== undefined) {
|
|
@@ -77395,7 +77398,7 @@ var ts;
|
|
|
77395
77398
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
77396
77399
|
var propertyName = ts.isPropertyAccessExpression(originalNode)
|
|
77397
77400
|
? ts.declarationNameToString(originalNode.name)
|
|
77398
|
-
: ts.getTextOfNode(originalNode.argumentExpression);
|
|
77401
|
+
: safeMultiLineComment(ts.getTextOfNode(originalNode.argumentExpression));
|
|
77399
77402
|
ts.addSyntheticTrailingComment(substitute, 3, " " + propertyName + " ");
|
|
77400
77403
|
}
|
|
77401
77404
|
return substitute;
|
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.20220304";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -92638,6 +92638,9 @@ var ts;
|
|
|
92638
92638
|
function substituteElementAccessExpression(node) {
|
|
92639
92639
|
return substituteConstantValue(node);
|
|
92640
92640
|
}
|
|
92641
|
+
function safeMultiLineComment(value) {
|
|
92642
|
+
return value.replace(/\*\//g, "*_/");
|
|
92643
|
+
}
|
|
92641
92644
|
function substituteConstantValue(node) {
|
|
92642
92645
|
var constantValue = tryGetConstEnumValue(node);
|
|
92643
92646
|
if (constantValue !== undefined) {
|
|
@@ -92648,7 +92651,7 @@ var ts;
|
|
|
92648
92651
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
92649
92652
|
var propertyName = ts.isPropertyAccessExpression(originalNode)
|
|
92650
92653
|
? ts.declarationNameToString(originalNode.name)
|
|
92651
|
-
: ts.getTextOfNode(originalNode.argumentExpression);
|
|
92654
|
+
: safeMultiLineComment(ts.getTextOfNode(originalNode.argumentExpression));
|
|
92652
92655
|
ts.addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, " " + propertyName + " ");
|
|
92653
92656
|
}
|
|
92654
92657
|
return substitute;
|
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.20220304";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -92832,6 +92832,9 @@ var ts;
|
|
|
92832
92832
|
function substituteElementAccessExpression(node) {
|
|
92833
92833
|
return substituteConstantValue(node);
|
|
92834
92834
|
}
|
|
92835
|
+
function safeMultiLineComment(value) {
|
|
92836
|
+
return value.replace(/\*\//g, "*_/");
|
|
92837
|
+
}
|
|
92835
92838
|
function substituteConstantValue(node) {
|
|
92836
92839
|
var constantValue = tryGetConstEnumValue(node);
|
|
92837
92840
|
if (constantValue !== undefined) {
|
|
@@ -92842,7 +92845,7 @@ var ts;
|
|
|
92842
92845
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
92843
92846
|
var propertyName = ts.isPropertyAccessExpression(originalNode)
|
|
92844
92847
|
? ts.declarationNameToString(originalNode.name)
|
|
92845
|
-
: ts.getTextOfNode(originalNode.argumentExpression);
|
|
92848
|
+
: safeMultiLineComment(ts.getTextOfNode(originalNode.argumentExpression));
|
|
92846
92849
|
ts.addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, " " + propertyName + " ");
|
|
92847
92850
|
}
|
|
92848
92851
|
return substitute;
|
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.20220304";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -92832,6 +92832,9 @@ var ts;
|
|
|
92832
92832
|
function substituteElementAccessExpression(node) {
|
|
92833
92833
|
return substituteConstantValue(node);
|
|
92834
92834
|
}
|
|
92835
|
+
function safeMultiLineComment(value) {
|
|
92836
|
+
return value.replace(/\*\//g, "*_/");
|
|
92837
|
+
}
|
|
92835
92838
|
function substituteConstantValue(node) {
|
|
92836
92839
|
var constantValue = tryGetConstEnumValue(node);
|
|
92837
92840
|
if (constantValue !== undefined) {
|
|
@@ -92842,7 +92845,7 @@ var ts;
|
|
|
92842
92845
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
92843
92846
|
var propertyName = ts.isPropertyAccessExpression(originalNode)
|
|
92844
92847
|
? ts.declarationNameToString(originalNode.name)
|
|
92845
|
-
: ts.getTextOfNode(originalNode.argumentExpression);
|
|
92848
|
+
: safeMultiLineComment(ts.getTextOfNode(originalNode.argumentExpression));
|
|
92846
92849
|
ts.addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, " " + propertyName + " ");
|
|
92847
92850
|
}
|
|
92848
92851
|
return substitute;
|
|
@@ -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.20220304";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -92832,6 +92832,9 @@ var ts;
|
|
|
92832
92832
|
function substituteElementAccessExpression(node) {
|
|
92833
92833
|
return substituteConstantValue(node);
|
|
92834
92834
|
}
|
|
92835
|
+
function safeMultiLineComment(value) {
|
|
92836
|
+
return value.replace(/\*\//g, "*_/");
|
|
92837
|
+
}
|
|
92835
92838
|
function substituteConstantValue(node) {
|
|
92836
92839
|
var constantValue = tryGetConstEnumValue(node);
|
|
92837
92840
|
if (constantValue !== undefined) {
|
|
@@ -92842,7 +92845,7 @@ var ts;
|
|
|
92842
92845
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
92843
92846
|
var propertyName = ts.isPropertyAccessExpression(originalNode)
|
|
92844
92847
|
? ts.declarationNameToString(originalNode.name)
|
|
92845
|
-
: ts.getTextOfNode(originalNode.argumentExpression);
|
|
92848
|
+
: safeMultiLineComment(ts.getTextOfNode(originalNode.argumentExpression));
|
|
92846
92849
|
ts.addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, " " + propertyName + " ");
|
|
92847
92850
|
}
|
|
92848
92851
|
return substitute;
|
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.20220304";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -92627,6 +92627,9 @@ var ts;
|
|
|
92627
92627
|
function substituteElementAccessExpression(node) {
|
|
92628
92628
|
return substituteConstantValue(node);
|
|
92629
92629
|
}
|
|
92630
|
+
function safeMultiLineComment(value) {
|
|
92631
|
+
return value.replace(/\*\//g, "*_/");
|
|
92632
|
+
}
|
|
92630
92633
|
function substituteConstantValue(node) {
|
|
92631
92634
|
var constantValue = tryGetConstEnumValue(node);
|
|
92632
92635
|
if (constantValue !== undefined) {
|
|
@@ -92637,7 +92640,7 @@ var ts;
|
|
|
92637
92640
|
var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);
|
|
92638
92641
|
var propertyName = ts.isPropertyAccessExpression(originalNode)
|
|
92639
92642
|
? ts.declarationNameToString(originalNode.name)
|
|
92640
|
-
: ts.getTextOfNode(originalNode.argumentExpression);
|
|
92643
|
+
: safeMultiLineComment(ts.getTextOfNode(originalNode.argumentExpression));
|
|
92641
92644
|
ts.addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, " " + propertyName + " ");
|
|
92642
92645
|
}
|
|
92643
92646
|
return substitute;
|
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.7.0-dev.
|
|
5
|
+
"version": "4.7.0-dev.20220304",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|