typescript 5.2.0-dev.20230521 → 5.2.0-dev.20230523
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.es2017.d.ts +1 -0
- package/lib/lib.es2017.date.d.ts +31 -0
- package/lib/tsc.js +6 -2
- package/lib/tsserver.js +6 -2
- package/lib/tsserverlibrary.js +6 -2
- package/lib/typescript.js +6 -2
- package/lib/typingsInstaller.js +2 -1
- package/package.json +2 -2
package/lib/lib.es2017.d.ts
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/// <reference no-default-lib="true"/>
|
|
18
|
+
|
|
19
|
+
interface DateConstructor {
|
|
20
|
+
/**
|
|
21
|
+
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
|
|
22
|
+
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
|
|
23
|
+
* @param monthIndex The month as a number between 0 and 11 (January to December).
|
|
24
|
+
* @param date The date as a number between 1 and 31.
|
|
25
|
+
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
|
|
26
|
+
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
|
|
27
|
+
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
|
|
28
|
+
* @param ms A number from 0 to 999 that specifies the milliseconds.
|
|
29
|
+
*/
|
|
30
|
+
UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
|
|
31
|
+
}
|
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.2";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20230523`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -33368,6 +33368,7 @@ var libEntries = [
|
|
|
33368
33368
|
["es2015.symbol", "lib.es2015.symbol.d.ts"],
|
|
33369
33369
|
["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"],
|
|
33370
33370
|
["es2016.array.include", "lib.es2016.array.include.d.ts"],
|
|
33371
|
+
["es2017.date", "lib.es2017.date.d.ts"],
|
|
33371
33372
|
["es2017.object", "lib.es2017.object.d.ts"],
|
|
33372
33373
|
["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"],
|
|
33373
33374
|
["es2017.string", "lib.es2017.string.d.ts"],
|
|
@@ -61972,7 +61973,7 @@ function createTypeChecker(host) {
|
|
|
61972
61973
|
}
|
|
61973
61974
|
function getRecursionIdentity(type) {
|
|
61974
61975
|
if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) {
|
|
61975
|
-
if (getObjectFlags(type)
|
|
61976
|
+
if (getObjectFlags(type) & 4 /* Reference */ && type.node) {
|
|
61976
61977
|
return type.node;
|
|
61977
61978
|
}
|
|
61978
61979
|
if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) {
|
|
@@ -74669,6 +74670,9 @@ function createTypeChecker(host) {
|
|
|
74669
74670
|
case "length":
|
|
74670
74671
|
case "caller":
|
|
74671
74672
|
case "arguments":
|
|
74673
|
+
if (compilerOptions.useDefineForClassFields) {
|
|
74674
|
+
break;
|
|
74675
|
+
}
|
|
74672
74676
|
case "prototype":
|
|
74673
74677
|
const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;
|
|
74674
74678
|
const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node));
|
package/lib/tsserver.js
CHANGED
|
@@ -2304,7 +2304,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2304
2304
|
|
|
2305
2305
|
// src/compiler/corePublic.ts
|
|
2306
2306
|
var versionMajorMinor = "5.2";
|
|
2307
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2307
|
+
var version = `${versionMajorMinor}.0-dev.20230523`;
|
|
2308
2308
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2309
2309
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2310
2310
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -37753,6 +37753,7 @@ var libEntries = [
|
|
|
37753
37753
|
["es2015.symbol", "lib.es2015.symbol.d.ts"],
|
|
37754
37754
|
["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"],
|
|
37755
37755
|
["es2016.array.include", "lib.es2016.array.include.d.ts"],
|
|
37756
|
+
["es2017.date", "lib.es2017.date.d.ts"],
|
|
37756
37757
|
["es2017.object", "lib.es2017.object.d.ts"],
|
|
37757
37758
|
["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"],
|
|
37758
37759
|
["es2017.string", "lib.es2017.string.d.ts"],
|
|
@@ -66623,7 +66624,7 @@ function createTypeChecker(host) {
|
|
|
66623
66624
|
}
|
|
66624
66625
|
function getRecursionIdentity(type) {
|
|
66625
66626
|
if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) {
|
|
66626
|
-
if (getObjectFlags(type)
|
|
66627
|
+
if (getObjectFlags(type) & 4 /* Reference */ && type.node) {
|
|
66627
66628
|
return type.node;
|
|
66628
66629
|
}
|
|
66629
66630
|
if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) {
|
|
@@ -79320,6 +79321,9 @@ function createTypeChecker(host) {
|
|
|
79320
79321
|
case "length":
|
|
79321
79322
|
case "caller":
|
|
79322
79323
|
case "arguments":
|
|
79324
|
+
if (compilerOptions.useDefineForClassFields) {
|
|
79325
|
+
break;
|
|
79326
|
+
}
|
|
79323
79327
|
case "prototype":
|
|
79324
79328
|
const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;
|
|
79325
79329
|
const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node));
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230523`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -37258,6 +37258,7 @@ ${lanes.join("\n")}
|
|
|
37258
37258
|
["es2015.symbol", "lib.es2015.symbol.d.ts"],
|
|
37259
37259
|
["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"],
|
|
37260
37260
|
["es2016.array.include", "lib.es2016.array.include.d.ts"],
|
|
37261
|
+
["es2017.date", "lib.es2017.date.d.ts"],
|
|
37261
37262
|
["es2017.object", "lib.es2017.object.d.ts"],
|
|
37262
37263
|
["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"],
|
|
37263
37264
|
["es2017.string", "lib.es2017.string.d.ts"],
|
|
@@ -64414,7 +64415,7 @@ ${lanes.join("\n")}
|
|
|
64414
64415
|
}
|
|
64415
64416
|
function getRecursionIdentity(type) {
|
|
64416
64417
|
if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) {
|
|
64417
|
-
if (getObjectFlags(type)
|
|
64418
|
+
if (getObjectFlags(type) & 4 /* Reference */ && type.node) {
|
|
64418
64419
|
return type.node;
|
|
64419
64420
|
}
|
|
64420
64421
|
if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) {
|
|
@@ -77111,6 +77112,9 @@ ${lanes.join("\n")}
|
|
|
77111
77112
|
case "length":
|
|
77112
77113
|
case "caller":
|
|
77113
77114
|
case "arguments":
|
|
77115
|
+
if (compilerOptions.useDefineForClassFields) {
|
|
77116
|
+
break;
|
|
77117
|
+
}
|
|
77114
77118
|
case "prototype":
|
|
77115
77119
|
const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;
|
|
77116
77120
|
const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node));
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230523`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -37258,6 +37258,7 @@ ${lanes.join("\n")}
|
|
|
37258
37258
|
["es2015.symbol", "lib.es2015.symbol.d.ts"],
|
|
37259
37259
|
["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"],
|
|
37260
37260
|
["es2016.array.include", "lib.es2016.array.include.d.ts"],
|
|
37261
|
+
["es2017.date", "lib.es2017.date.d.ts"],
|
|
37261
37262
|
["es2017.object", "lib.es2017.object.d.ts"],
|
|
37262
37263
|
["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"],
|
|
37263
37264
|
["es2017.string", "lib.es2017.string.d.ts"],
|
|
@@ -64414,7 +64415,7 @@ ${lanes.join("\n")}
|
|
|
64414
64415
|
}
|
|
64415
64416
|
function getRecursionIdentity(type) {
|
|
64416
64417
|
if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) {
|
|
64417
|
-
if (getObjectFlags(type)
|
|
64418
|
+
if (getObjectFlags(type) & 4 /* Reference */ && type.node) {
|
|
64418
64419
|
return type.node;
|
|
64419
64420
|
}
|
|
64420
64421
|
if (type.symbol && !(getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) {
|
|
@@ -77111,6 +77112,9 @@ ${lanes.join("\n")}
|
|
|
77111
77112
|
case "length":
|
|
77112
77113
|
case "caller":
|
|
77113
77114
|
case "arguments":
|
|
77115
|
+
if (compilerOptions.useDefineForClassFields) {
|
|
77116
|
+
break;
|
|
77117
|
+
}
|
|
77114
77118
|
case "prototype":
|
|
77115
77119
|
const message = Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;
|
|
77116
77120
|
const className = getNameOfSymbolAsWritten(getSymbolOfDeclaration(node));
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.2";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230523`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -25372,6 +25372,7 @@ var libEntries = [
|
|
|
25372
25372
|
["es2015.symbol", "lib.es2015.symbol.d.ts"],
|
|
25373
25373
|
["es2015.symbol.wellknown", "lib.es2015.symbol.wellknown.d.ts"],
|
|
25374
25374
|
["es2016.array.include", "lib.es2016.array.include.d.ts"],
|
|
25375
|
+
["es2017.date", "lib.es2017.date.d.ts"],
|
|
25375
25376
|
["es2017.object", "lib.es2017.object.d.ts"],
|
|
25376
25377
|
["es2017.sharedmemory", "lib.es2017.sharedmemory.d.ts"],
|
|
25377
25378
|
["es2017.string", "lib.es2017.string.d.ts"],
|
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": "5.2.0-dev.
|
|
5
|
+
"version": "5.2.0-dev.20230523",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "2beeb8b93143f75cdf788d05bb3678ce3ff0e2b3"
|
|
117
117
|
}
|