@typescript-deploys/pr-build 5.0.0-pr-50820-81 → 5.0.0-pr-49636-19
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/README.md +2 -0
- package/lib/cancellationToken.js +0 -5
- package/lib/lib.es2022.d.ts +0 -1
- package/lib/lib.es2023.array.d.ts +344 -0
- package/lib/{lib.decorators.legacy.d.ts → lib.es2023.d.ts} +2 -4
- package/lib/{lib.es2022.regexp.d.ts → lib.es2023.full.d.ts} +5 -21
- package/lib/lib.es5.d.ts +5 -3
- package/lib/lib.esnext.d.ts +1 -1
- package/lib/tsc.js +3455 -17261
- package/lib/tsserver.js +4655 -23061
- package/lib/tsserverlibrary.d.ts +56 -50
- package/lib/tsserverlibrary.js +4801 -23163
- package/lib/typescript.d.ts +56 -50
- package/lib/typescript.js +4592 -21722
- package/lib/typingsInstaller.js +791 -2979
- package/lib/watchGuard.js +0 -4
- package/package.json +1 -1
- package/lib/lib.decorators.d.ts +0 -352
package/README.md
CHANGED
|
@@ -33,6 +33,8 @@ There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob
|
|
|
33
33
|
* Help each other in the [TypeScript Community Discord](https://discord.gg/typescript).
|
|
34
34
|
* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
|
|
35
35
|
* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md).
|
|
36
|
+
* Read the archived language specification ([docx](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.docx?raw=true),
|
|
37
|
+
[pdf](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.pdf?raw=true), [md](https://github.com/microsoft/TypeScript/blob/main/doc/spec-ARCHIVED.md)).
|
|
36
38
|
|
|
37
39
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
|
|
38
40
|
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)
|
package/lib/cancellationToken.js
CHANGED
|
@@ -30,10 +30,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
30
30
|
return to;
|
|
31
31
|
};
|
|
32
32
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
33
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
35
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
33
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
38
34
|
mod
|
|
39
35
|
));
|
|
@@ -81,7 +77,6 @@ function createCancellationToken(args) {
|
|
|
81
77
|
} else {
|
|
82
78
|
return {
|
|
83
79
|
isCancellationRequested: () => pipeExists(cancellationPipeName),
|
|
84
|
-
// TODO: GH#18217
|
|
85
80
|
setRequest: (_requestId) => void 0,
|
|
86
81
|
resetRequest: (_requestId) => void 0
|
|
87
82
|
};
|
package/lib/lib.es2022.d.ts
CHANGED
|
@@ -0,0 +1,344 @@
|
|
|
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 value of the last element in the array where predicate is true, and undefined
|
|
24
|
+
* otherwise.
|
|
25
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
26
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
27
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
28
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
29
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
30
|
+
*/
|
|
31
|
+
findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;
|
|
32
|
+
findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
36
|
+
* otherwise.
|
|
37
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
38
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
39
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
40
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
41
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
42
|
+
*/
|
|
43
|
+
findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface ReadonlyArray<T> {
|
|
47
|
+
/**
|
|
48
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
49
|
+
* otherwise.
|
|
50
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
51
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
52
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
53
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
54
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
55
|
+
*/
|
|
56
|
+
findLast<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S | undefined;
|
|
57
|
+
findLast(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T | undefined;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
61
|
+
* otherwise.
|
|
62
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
63
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
64
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
65
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
66
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
67
|
+
*/
|
|
68
|
+
findLastIndex(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): number;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface Int8Array {
|
|
72
|
+
/**
|
|
73
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
74
|
+
* otherwise.
|
|
75
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
76
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
77
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
78
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
79
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
80
|
+
*/
|
|
81
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Int8Array) => value is S, thisArg?: any): S | undefined;
|
|
82
|
+
findLast(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number | undefined;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
86
|
+
* otherwise.
|
|
87
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
88
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
89
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
90
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
91
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
92
|
+
*/
|
|
93
|
+
findLastIndex(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface Uint8Array {
|
|
97
|
+
/**
|
|
98
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
99
|
+
* otherwise.
|
|
100
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
101
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
102
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
103
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
104
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
105
|
+
*/
|
|
106
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8Array) => value is S, thisArg?: any): S | undefined;
|
|
107
|
+
findLast(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number | undefined;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
111
|
+
* otherwise.
|
|
112
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
113
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
114
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
115
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
116
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
117
|
+
*/
|
|
118
|
+
findLastIndex(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): number;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
interface Uint8ClampedArray {
|
|
122
|
+
/**
|
|
123
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
124
|
+
* otherwise.
|
|
125
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
126
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
127
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
128
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
129
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
130
|
+
*/
|
|
131
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Uint8ClampedArray[]) => value is S, thisArg?: any): S | undefined;
|
|
132
|
+
findLast(predicate: (value: number, index: number, array: Uint8ClampedArray[]) => unknown, thisArg?: any): number | undefined;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
136
|
+
* otherwise.
|
|
137
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
138
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
139
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
140
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
141
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
142
|
+
*/
|
|
143
|
+
findLastIndex(predicate: (value: number, index: number, array: Uint8ClampedArray[]) => unknown, thisArg?: any): number;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface Int16Array {
|
|
147
|
+
/**
|
|
148
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
149
|
+
* otherwise.
|
|
150
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
151
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
152
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
153
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
154
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
155
|
+
*/
|
|
156
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Int16Array) => value is S, thisArg?: any): S | undefined;
|
|
157
|
+
findLast(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number | undefined;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
161
|
+
* otherwise.
|
|
162
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
163
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
164
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
165
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
166
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
167
|
+
*/
|
|
168
|
+
findLastIndex(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): number;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface Uint16Array {
|
|
172
|
+
/**
|
|
173
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
174
|
+
* otherwise.
|
|
175
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
176
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
177
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
178
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
179
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
180
|
+
*/
|
|
181
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Uint16Array) => value is S, thisArg?: any): S | undefined;
|
|
182
|
+
findLast(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number | undefined;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
186
|
+
* otherwise.
|
|
187
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
188
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
189
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
190
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
191
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
192
|
+
*/
|
|
193
|
+
findLastIndex(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): number;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
interface Int32Array {
|
|
197
|
+
/**
|
|
198
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
199
|
+
* otherwise.
|
|
200
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
201
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
202
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
203
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
204
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
205
|
+
*/
|
|
206
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Int32Array) => value is S, thisArg?: any): S | undefined;
|
|
207
|
+
findLast(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number | undefined;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
211
|
+
* otherwise.
|
|
212
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
213
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
214
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
215
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
216
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
217
|
+
*/
|
|
218
|
+
findLastIndex(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): number;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
interface Uint32Array {
|
|
222
|
+
/**
|
|
223
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
224
|
+
* otherwise.
|
|
225
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
226
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
227
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
228
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
229
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
230
|
+
*/
|
|
231
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Uint32Array) => value is S, thisArg?: any): S | undefined;
|
|
232
|
+
findLast(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number | undefined;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
236
|
+
* otherwise.
|
|
237
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
238
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
239
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
240
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
241
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
242
|
+
*/
|
|
243
|
+
findLastIndex(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): number;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
interface Float32Array {
|
|
247
|
+
/**
|
|
248
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
249
|
+
* otherwise.
|
|
250
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
251
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
252
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
253
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
254
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
255
|
+
*/
|
|
256
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Float32Array) => value is S, thisArg?: any): S | undefined;
|
|
257
|
+
findLast(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number | undefined;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
261
|
+
* otherwise.
|
|
262
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
263
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
264
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
265
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
266
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
267
|
+
*/
|
|
268
|
+
findLastIndex(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): number;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface Float64Array {
|
|
272
|
+
/**
|
|
273
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
274
|
+
* otherwise.
|
|
275
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
276
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
277
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
278
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
279
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
280
|
+
*/
|
|
281
|
+
findLast<S extends number>(predicate: (value: number, index: number, array: Float64Array) => value is S, thisArg?: any): S | undefined;
|
|
282
|
+
findLast(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number | undefined;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
286
|
+
* otherwise.
|
|
287
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
288
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
289
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
290
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
291
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
292
|
+
*/
|
|
293
|
+
findLastIndex(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): number;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
interface BigInt64Array {
|
|
297
|
+
/**
|
|
298
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
299
|
+
* otherwise.
|
|
300
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
301
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
302
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
303
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
304
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
305
|
+
*/
|
|
306
|
+
findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigInt64Array) => value is S, thisArg?: any): S | undefined;
|
|
307
|
+
findLast(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): bigint | undefined;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
311
|
+
* otherwise.
|
|
312
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
313
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
314
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
315
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
316
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
317
|
+
*/
|
|
318
|
+
findLastIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => unknown, thisArg?: any): number;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
interface BigUint64Array {
|
|
322
|
+
/**
|
|
323
|
+
* Returns the value of the last element in the array where predicate is true, and undefined
|
|
324
|
+
* otherwise.
|
|
325
|
+
* @param predicate findLast calls predicate once for each element of the array, in descending
|
|
326
|
+
* order, until it finds one where predicate returns true. If such an element is found, findLast
|
|
327
|
+
* immediately returns that element value. Otherwise, findLast returns undefined.
|
|
328
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
329
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
330
|
+
*/
|
|
331
|
+
findLast<S extends bigint>(predicate: (value: bigint, index: number, array: BigUint64Array) => value is S, thisArg?: any): S | undefined;
|
|
332
|
+
findLast(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): bigint | undefined;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Returns the index of the last element in the array where predicate is true, and -1
|
|
336
|
+
* otherwise.
|
|
337
|
+
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
|
|
338
|
+
* order, until it finds one where predicate returns true. If such an element is found,
|
|
339
|
+
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
|
|
340
|
+
* @param thisArg If provided, it will be used as the this value for each invocation of
|
|
341
|
+
* predicate. If it is not provided, undefined is used instead.
|
|
342
|
+
*/
|
|
343
|
+
findLastIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => unknown, thisArg?: any): number;
|
|
344
|
+
}
|
|
@@ -18,7 +18,5 @@ and limitations under the License.
|
|
|
18
18
|
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
24
|
-
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
21
|
+
/// <reference lib="es2022" />
|
|
22
|
+
/// <reference lib="es2023.array" />
|
|
@@ -18,24 +18,8 @@ and limitations under the License.
|
|
|
18
18
|
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
indices?: RegExpIndicesArray;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface RegExpIndicesArray extends Array<[number, number]> {
|
|
30
|
-
groups?: {
|
|
31
|
-
[key: string]: [number, number];
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
interface RegExp {
|
|
36
|
-
/**
|
|
37
|
-
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
|
|
38
|
-
* Default is false. Read-only.
|
|
39
|
-
*/
|
|
40
|
-
readonly hasIndices: boolean;
|
|
41
|
-
}
|
|
21
|
+
/// <reference lib="es2023" />
|
|
22
|
+
/// <reference lib="dom" />
|
|
23
|
+
/// <reference lib="webworker.importscripts" />
|
|
24
|
+
/// <reference lib="scripthost" />
|
|
25
|
+
/// <reference lib="dom.iterable" />
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -18,9 +18,6 @@ and limitations under the License.
|
|
|
18
18
|
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
/// <reference lib="decorators" />
|
|
22
|
-
/// <reference lib="decorators.legacy" />
|
|
23
|
-
|
|
24
21
|
/////////////////////////////
|
|
25
22
|
/// ECMAScript APIs
|
|
26
23
|
/////////////////////////////
|
|
@@ -1513,6 +1510,11 @@ interface TypedPropertyDescriptor<T> {
|
|
|
1513
1510
|
set?: (value: T) => void;
|
|
1514
1511
|
}
|
|
1515
1512
|
|
|
1513
|
+
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
|
|
1514
|
+
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
|
|
1515
|
+
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
1516
|
+
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol, parameterIndex: number) => void;
|
|
1517
|
+
|
|
1516
1518
|
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
|
|
1517
1519
|
|
|
1518
1520
|
interface PromiseLike<T> {
|
package/lib/lib.esnext.d.ts
CHANGED