typescript 4.5.5 → 4.6.2
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/cs/diagnosticMessages.generated.json +23 -10
- package/lib/de/diagnosticMessages.generated.json +23 -10
- package/lib/es/diagnosticMessages.generated.json +23 -10
- package/lib/fr/diagnosticMessages.generated.json +23 -10
- package/lib/it/diagnosticMessages.generated.json +23 -10
- package/lib/ja/diagnosticMessages.generated.json +23 -10
- package/lib/ko/diagnosticMessages.generated.json +23 -10
- package/lib/lib.dom.d.ts +216 -58
- package/lib/lib.dom.iterable.d.ts +11 -0
- package/lib/lib.es2015.iterable.d.ts +2 -1
- package/lib/lib.es2020.intl.d.ts +8 -3
- package/lib/lib.es2022.array.d.ts +123 -0
- package/lib/lib.es2022.d.ts +25 -0
- package/lib/lib.es2022.error.d.ts +75 -0
- package/lib/lib.es2022.full.d.ts +25 -0
- package/lib/lib.es2022.object.d.ts +28 -0
- package/lib/lib.es2022.string.d.ts +27 -0
- package/lib/lib.es5.d.ts +1 -3
- package/lib/lib.esnext.d.ts +1 -1
- package/lib/lib.webworker.d.ts +127 -16
- package/lib/lib.webworker.iterable.d.ts +7 -0
- package/lib/pl/diagnosticMessages.generated.json +23 -10
- package/lib/protocol.d.ts +2 -0
- package/lib/pt-br/diagnosticMessages.generated.json +23 -10
- package/lib/ru/diagnosticMessages.generated.json +23 -10
- package/lib/tr/diagnosticMessages.generated.json +23 -10
- package/lib/tsc.js +2474 -1549
- package/lib/tsserver.js +4450 -2573
- package/lib/tsserverlibrary.d.ts +32 -16
- package/lib/tsserverlibrary.js +4421 -2572
- package/lib/typescript.d.ts +29 -16
- package/lib/typescript.js +4343 -2544
- package/lib/typescriptServices.d.ts +29 -16
- package/lib/typescriptServices.js +4343 -2544
- package/lib/typingsInstaller.js +3132 -2049
- package/lib/zh-cn/diagnosticMessages.generated.json +23 -10
- package/lib/zh-tw/diagnosticMessages.generated.json +23 -10
- package/package.json +3 -2
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -220,17 +220,21 @@ declare namespace Intl {
|
|
|
220
220
|
interface NumberFormatOptions {
|
|
221
221
|
compactDisplay?: "short" | "long" | undefined;
|
|
222
222
|
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
|
|
223
|
-
signDisplay?: "auto" | "never" | "always" | undefined;
|
|
223
|
+
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
|
|
224
224
|
unit?: string | undefined;
|
|
225
225
|
unitDisplay?: "short" | "long" | "narrow" | undefined;
|
|
226
|
+
currencyDisplay?: string | undefined;
|
|
227
|
+
currencySign?: string | undefined;
|
|
226
228
|
}
|
|
227
229
|
|
|
228
230
|
interface ResolvedNumberFormatOptions {
|
|
229
231
|
compactDisplay?: "short" | "long";
|
|
230
232
|
notation?: "standard" | "scientific" | "engineering" | "compact";
|
|
231
|
-
signDisplay?: "auto" | "never" | "always";
|
|
233
|
+
signDisplay?: "auto" | "never" | "always" | "exceptZero";
|
|
232
234
|
unit?: string;
|
|
233
235
|
unitDisplay?: "short" | "long" | "narrow";
|
|
236
|
+
currencyDisplay?: string;
|
|
237
|
+
currencySign?: string;
|
|
234
238
|
}
|
|
235
239
|
|
|
236
240
|
interface DateTimeFormatOptions {
|
|
@@ -297,6 +301,7 @@ declare namespace Intl {
|
|
|
297
301
|
};
|
|
298
302
|
|
|
299
303
|
interface DisplayNamesOptions {
|
|
304
|
+
locale: UnicodeBCP47LocaleIdentifier;
|
|
300
305
|
localeMatcher: RelativeTimeFormatLocaleMatcher;
|
|
301
306
|
style: RelativeTimeFormatStyle;
|
|
302
307
|
type: "language" | "region" | "script" | "currency";
|
|
@@ -319,7 +324,7 @@ declare namespace Intl {
|
|
|
319
324
|
*
|
|
320
325
|
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
|
|
321
326
|
*/
|
|
322
|
-
of(code: string): string;
|
|
327
|
+
of(code: string): string | undefined;
|
|
323
328
|
/**
|
|
324
329
|
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
|
|
325
330
|
* [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface Array<T> {
|
|
22
|
+
/**
|
|
23
|
+
* Returns the item located at the specified index.
|
|
24
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
25
|
+
*/
|
|
26
|
+
at(index: number): T | undefined;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface ReadonlyArray<T> {
|
|
30
|
+
/**
|
|
31
|
+
* Returns the item located at the specified index.
|
|
32
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
33
|
+
*/
|
|
34
|
+
at(index: number): T | undefined;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface Int8Array {
|
|
38
|
+
/**
|
|
39
|
+
* Returns the item located at the specified index.
|
|
40
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
41
|
+
*/
|
|
42
|
+
at(index: number): number | undefined;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface Uint8Array {
|
|
46
|
+
/**
|
|
47
|
+
* Returns the item located at the specified index.
|
|
48
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
49
|
+
*/
|
|
50
|
+
at(index: number): number | undefined;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface Uint8ClampedArray {
|
|
54
|
+
/**
|
|
55
|
+
* Returns the item located at the specified index.
|
|
56
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
57
|
+
*/
|
|
58
|
+
at(index: number): number | undefined;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface Int16Array {
|
|
62
|
+
/**
|
|
63
|
+
* Returns the item located at the specified index.
|
|
64
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
65
|
+
*/
|
|
66
|
+
at(index: number): number | undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface Uint16Array {
|
|
70
|
+
/**
|
|
71
|
+
* Returns the item located at the specified index.
|
|
72
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
73
|
+
*/
|
|
74
|
+
at(index: number): number | undefined;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
interface Int32Array {
|
|
78
|
+
/**
|
|
79
|
+
* Returns the item located at the specified index.
|
|
80
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
81
|
+
*/
|
|
82
|
+
at(index: number): number | undefined;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface Uint32Array {
|
|
86
|
+
/**
|
|
87
|
+
* Returns the item located at the specified index.
|
|
88
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
89
|
+
*/
|
|
90
|
+
at(index: number): number | undefined;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
interface Float32Array {
|
|
94
|
+
/**
|
|
95
|
+
* Returns the item located at the specified index.
|
|
96
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
97
|
+
*/
|
|
98
|
+
at(index: number): number | undefined;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
interface Float64Array {
|
|
102
|
+
/**
|
|
103
|
+
* Returns the item located at the specified index.
|
|
104
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
105
|
+
*/
|
|
106
|
+
at(index: number): number | undefined;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
interface BigInt64Array {
|
|
110
|
+
/**
|
|
111
|
+
* Returns the item located at the specified index.
|
|
112
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
113
|
+
*/
|
|
114
|
+
at(index: number): bigint | undefined;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface BigUint64Array {
|
|
118
|
+
/**
|
|
119
|
+
* Returns the item located at the specified index.
|
|
120
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
121
|
+
*/
|
|
122
|
+
at(index: number): bigint | undefined;
|
|
123
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/// <reference lib="es2021" />
|
|
22
|
+
/// <reference lib="es2022.array" />
|
|
23
|
+
/// <reference lib="es2022.error" />
|
|
24
|
+
/// <reference lib="es2022.object" />
|
|
25
|
+
/// <reference lib="es2022.string" />
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface ErrorOptions {
|
|
22
|
+
cause?: Error;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface Error {
|
|
26
|
+
cause?: Error;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface ErrorConstructor {
|
|
30
|
+
new (message?: string, options?: ErrorOptions): Error;
|
|
31
|
+
(message?: string, options?: ErrorOptions): Error;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface EvalErrorConstructor {
|
|
35
|
+
new (message?: string, options?: ErrorOptions): EvalError;
|
|
36
|
+
(message?: string, options?: ErrorOptions): EvalError;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface RangeErrorConstructor {
|
|
40
|
+
new (message?: string, options?: ErrorOptions): RangeError;
|
|
41
|
+
(message?: string, options?: ErrorOptions): RangeError;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface ReferenceErrorConstructor {
|
|
45
|
+
new (message?: string, options?: ErrorOptions): ReferenceError;
|
|
46
|
+
(message?: string, options?: ErrorOptions): ReferenceError;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface SyntaxErrorConstructor {
|
|
50
|
+
new (message?: string, options?: ErrorOptions): SyntaxError;
|
|
51
|
+
(message?: string, options?: ErrorOptions): SyntaxError;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface TypeErrorConstructor {
|
|
55
|
+
new (message?: string, options?: ErrorOptions): TypeError;
|
|
56
|
+
(message?: string, options?: ErrorOptions): TypeError;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface URIErrorConstructor {
|
|
60
|
+
new (message?: string, options?: ErrorOptions): URIError;
|
|
61
|
+
(message?: string, options?: ErrorOptions): URIError;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
interface AggregateErrorConstructor {
|
|
65
|
+
new (
|
|
66
|
+
errors: Iterable<any>,
|
|
67
|
+
message?: string,
|
|
68
|
+
options?: ErrorOptions
|
|
69
|
+
): AggregateError;
|
|
70
|
+
(
|
|
71
|
+
errors: Iterable<any>,
|
|
72
|
+
message?: string,
|
|
73
|
+
options?: ErrorOptions
|
|
74
|
+
): AggregateError;
|
|
75
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/// <reference lib="es2022" />
|
|
22
|
+
/// <reference lib="dom" />
|
|
23
|
+
/// <reference lib="webworker.importscripts" />
|
|
24
|
+
/// <reference lib="scripthost" />
|
|
25
|
+
/// <reference lib="dom.iterable" />
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface Object {
|
|
22
|
+
/**
|
|
23
|
+
* Determines whether an object has a property with the specified name.
|
|
24
|
+
* @param o An object.
|
|
25
|
+
* @param v A property name.
|
|
26
|
+
*/
|
|
27
|
+
hasOwn(o: object, v: PropertyKey): boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface String {
|
|
22
|
+
/**
|
|
23
|
+
* Returns a new String consisting of the single UTF-16 code unit located at the specified index.
|
|
24
|
+
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
25
|
+
*/
|
|
26
|
+
at(index: number): string | undefined;
|
|
27
|
+
}
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ interface PropertyDescriptor {
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
interface PropertyDescriptorMap {
|
|
119
|
-
[
|
|
119
|
+
[key: PropertyKey]: PropertyDescriptor;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
interface Object {
|
|
@@ -4375,7 +4375,6 @@ declare namespace Intl {
|
|
|
4375
4375
|
localeMatcher?: string | undefined;
|
|
4376
4376
|
style?: string | undefined;
|
|
4377
4377
|
currency?: string | undefined;
|
|
4378
|
-
currencyDisplay?: string | undefined;
|
|
4379
4378
|
currencySign?: string | undefined;
|
|
4380
4379
|
useGrouping?: boolean | undefined;
|
|
4381
4380
|
minimumIntegerDigits?: number | undefined;
|
|
@@ -4390,7 +4389,6 @@ declare namespace Intl {
|
|
|
4390
4389
|
numberingSystem: string;
|
|
4391
4390
|
style: string;
|
|
4392
4391
|
currency?: string;
|
|
4393
|
-
currencyDisplay?: string;
|
|
4394
4392
|
minimumIntegerDigits: number;
|
|
4395
4393
|
minimumFractionDigits: number;
|
|
4396
4394
|
maximumFractionDigits: number;
|
package/lib/lib.esnext.d.ts
CHANGED