strict-ts-lib-v5.2-branded 0.4.0
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 +30 -0
- package/libs/decorators/index.d.ts +364 -0
- package/libs/decorators/legacy/index.d.ts +19 -0
- package/libs/dom/index.d.ts +35081 -0
- package/libs/dom/iterable/index.d.ts +743 -0
- package/libs/es2015/collection/index.d.ts +148 -0
- package/libs/es2015/core/index.d.ts +639 -0
- package/libs/es2015/generator/index.d.ts +65 -0
- package/libs/es2015/index.d.ts +12 -0
- package/libs/es2015/iterable/index.d.ts +569 -0
- package/libs/es2015/promise/index.d.ts +74 -0
- package/libs/es2015/proxy/index.d.ts +131 -0
- package/libs/es2015/reflect/index.d.ts +145 -0
- package/libs/es2015/symbol/index.d.ts +30 -0
- package/libs/es2015/symbol-wellknown/index.d.ts +336 -0
- package/libs/es2016/array-include/index.d.ts +133 -0
- package/libs/es2016/full/index.d.ts +7 -0
- package/libs/es2016/index.d.ts +4 -0
- package/libs/es2017/date/index.d.ts +23 -0
- package/libs/es2017/full/index.d.ts +7 -0
- package/libs/es2017/index.d.ts +9 -0
- package/libs/es2017/intl/index.d.ts +28 -0
- package/libs/es2017/object/index.d.ts +115 -0
- package/libs/es2017/sharedmemory/index.d.ts +392 -0
- package/libs/es2017/string/index.d.ts +35 -0
- package/libs/es2017/typedarrays/index.d.ts +37 -0
- package/libs/es2018/asyncgenerator/index.d.ts +69 -0
- package/libs/es2018/asynciterable/index.d.ts +31 -0
- package/libs/es2018/full/index.d.ts +7 -0
- package/libs/es2018/index.d.ts +8 -0
- package/libs/es2018/intl/index.d.ts +102 -0
- package/libs/es2018/promise/index.d.ts +14 -0
- package/libs/es2018/regexp/index.d.ts +21 -0
- package/libs/es2019/array/index.d.ts +100 -0
- package/libs/es2019/full/index.d.ts +7 -0
- package/libs/es2019/index.d.ts +8 -0
- package/libs/es2019/intl/index.d.ts +7 -0
- package/libs/es2019/object/index.d.ts +141 -0
- package/libs/es2019/string/index.d.ts +21 -0
- package/libs/es2019/symbol/index.d.ts +8 -0
- package/libs/es2020/bigint/index.d.ts +975 -0
- package/libs/es2020/date/index.d.ts +35 -0
- package/libs/es2020/full/index.d.ts +7 -0
- package/libs/es2020/index.d.ts +11 -0
- package/libs/es2020/intl/index.d.ts +433 -0
- package/libs/es2020/number/index.d.ts +15 -0
- package/libs/es2020/promise/index.d.ts +37 -0
- package/libs/es2020/sharedmemory/index.d.ts +171 -0
- package/libs/es2020/string/index.d.ts +12 -0
- package/libs/es2020/symbol-wellknown/index.d.ts +21 -0
- package/libs/es2021/full/index.d.ts +7 -0
- package/libs/es2021/index.d.ts +7 -0
- package/libs/es2021/intl/index.d.ts +165 -0
- package/libs/es2021/promise/index.d.ts +34 -0
- package/libs/es2021/string/index.d.ts +20 -0
- package/libs/es2021/weakref/index.d.ts +60 -0
- package/libs/es2022/array/index.d.ts +127 -0
- package/libs/es2022/error/index.d.ts +57 -0
- package/libs/es2022/full/index.d.ts +7 -0
- package/libs/es2022/index.d.ts +10 -0
- package/libs/es2022/intl/index.d.ts +115 -0
- package/libs/es2022/object/index.d.ts +41 -0
- package/libs/es2022/regexp/index.d.ts +28 -0
- package/libs/es2022/sharedmemory/index.d.ts +37 -0
- package/libs/es2022/string/index.d.ts +9 -0
- package/libs/es2023/array/index.d.ts +1097 -0
- package/libs/es2023/collection/index.d.ts +5 -0
- package/libs/es2023/full/index.d.ts +7 -0
- package/libs/es2023/index.d.ts +5 -0
- package/libs/es5/index.d.ts +6397 -0
- package/libs/es6/index.d.ts +7 -0
- package/libs/esnext/decorators/index.d.ts +12 -0
- package/libs/esnext/disposable/index.d.ts +169 -0
- package/libs/esnext/full/index.d.ts +7 -0
- package/libs/esnext/index.d.ts +6 -0
- package/libs/esnext/intl/index.d.ts +15 -0
- package/libs/scripthost/index.d.ts +310 -0
- package/libs/webworker/importscripts/index.d.ts +7 -0
- package/libs/webworker/index.d.ts +11649 -0
- package/libs/webworker/iterable/index.d.ts +538 -0
- package/package.json +23 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/// <reference no-default-lib="true"/>
|
|
2
|
+
|
|
3
|
+
/// <reference lib="es2015.symbol" />
|
|
4
|
+
/// <reference lib="es2015.symbol.wellknown" />
|
|
5
|
+
|
|
6
|
+
interface SharedArrayBuffer {
|
|
7
|
+
/**
|
|
8
|
+
* Read-only. The length of the ArrayBuffer (in bytes).
|
|
9
|
+
*/
|
|
10
|
+
readonly byteLength: NumberType.TypedArraySize;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Returns a section of an SharedArrayBuffer.
|
|
14
|
+
*/
|
|
15
|
+
slice(
|
|
16
|
+
begin: NumberType.TypedArraySizeArg,
|
|
17
|
+
end?: NumberType.TypedArraySizeArg,
|
|
18
|
+
): SharedArrayBuffer;
|
|
19
|
+
readonly [Symbol.species]: SharedArrayBuffer;
|
|
20
|
+
readonly [Symbol.toStringTag]: 'SharedArrayBuffer';
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface SharedArrayBufferConstructor {
|
|
24
|
+
readonly prototype: SharedArrayBuffer;
|
|
25
|
+
new (byteLength: NumberType.TypedArraySizeArgNonNegative): SharedArrayBuffer;
|
|
26
|
+
}
|
|
27
|
+
declare const SharedArrayBuffer: SharedArrayBufferConstructor;
|
|
28
|
+
|
|
29
|
+
interface ArrayBufferTypes {
|
|
30
|
+
readonly SharedArrayBuffer: SharedArrayBuffer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface Atomics {
|
|
34
|
+
/**
|
|
35
|
+
* Adds a value to the value at the given position in the array, returning the original value.
|
|
36
|
+
* Until this atomic operation completes, any other read or write operation against the array
|
|
37
|
+
* will block.
|
|
38
|
+
*/
|
|
39
|
+
add(
|
|
40
|
+
typedArray: Int8Array,
|
|
41
|
+
index: NumberType.TypedArraySizeArg,
|
|
42
|
+
value: import('ts-type-forge').Int8,
|
|
43
|
+
): import('ts-type-forge').Int8;
|
|
44
|
+
add(
|
|
45
|
+
typedArray: Uint8Array,
|
|
46
|
+
index: NumberType.TypedArraySizeArg,
|
|
47
|
+
value: import('ts-type-forge').Uint8,
|
|
48
|
+
): import('ts-type-forge').Uint8;
|
|
49
|
+
add(
|
|
50
|
+
typedArray: Int16Array,
|
|
51
|
+
index: NumberType.TypedArraySizeArg,
|
|
52
|
+
value: import('ts-type-forge').Int16,
|
|
53
|
+
): import('ts-type-forge').Int16;
|
|
54
|
+
add(
|
|
55
|
+
typedArray: Uint16Array,
|
|
56
|
+
index: NumberType.TypedArraySizeArg,
|
|
57
|
+
value: import('ts-type-forge').Uint16,
|
|
58
|
+
): import('ts-type-forge').Uint16;
|
|
59
|
+
add(
|
|
60
|
+
typedArray: Int32Array,
|
|
61
|
+
index: NumberType.TypedArraySizeArg,
|
|
62
|
+
value: import('ts-type-forge').Int32,
|
|
63
|
+
): import('ts-type-forge').Int32;
|
|
64
|
+
add(
|
|
65
|
+
typedArray: Uint32Array,
|
|
66
|
+
index: NumberType.TypedArraySizeArg,
|
|
67
|
+
value: import('ts-type-forge').Uint32,
|
|
68
|
+
): import('ts-type-forge').Uint32;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Stores the bitwise AND of a value with the value at the given position in the array,
|
|
72
|
+
* returning the original value. Until this atomic operation completes, any other read or
|
|
73
|
+
* write operation against the array will block.
|
|
74
|
+
*/
|
|
75
|
+
and(
|
|
76
|
+
typedArray: Int8Array,
|
|
77
|
+
index: NumberType.TypedArraySizeArg,
|
|
78
|
+
value: import('ts-type-forge').Int8,
|
|
79
|
+
): import('ts-type-forge').Int8;
|
|
80
|
+
and(
|
|
81
|
+
typedArray: Uint8Array,
|
|
82
|
+
index: NumberType.TypedArraySizeArg,
|
|
83
|
+
value: import('ts-type-forge').Uint8,
|
|
84
|
+
): import('ts-type-forge').Uint8;
|
|
85
|
+
and(
|
|
86
|
+
typedArray: Int16Array,
|
|
87
|
+
index: NumberType.TypedArraySizeArg,
|
|
88
|
+
value: import('ts-type-forge').Int16,
|
|
89
|
+
): import('ts-type-forge').Int16;
|
|
90
|
+
and(
|
|
91
|
+
typedArray: Uint16Array,
|
|
92
|
+
index: NumberType.TypedArraySizeArg,
|
|
93
|
+
value: import('ts-type-forge').Uint16,
|
|
94
|
+
): import('ts-type-forge').Uint16;
|
|
95
|
+
and(
|
|
96
|
+
typedArray: Int32Array,
|
|
97
|
+
index: NumberType.TypedArraySizeArg,
|
|
98
|
+
value: import('ts-type-forge').Int32,
|
|
99
|
+
): import('ts-type-forge').Int32;
|
|
100
|
+
and(
|
|
101
|
+
typedArray: Uint32Array,
|
|
102
|
+
index: NumberType.TypedArraySizeArg,
|
|
103
|
+
value: import('ts-type-forge').Uint32,
|
|
104
|
+
): import('ts-type-forge').Uint32;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Replaces the value at the given position in the array if the original value equals the given
|
|
108
|
+
* expected value, returning the original value. Until this atomic operation completes, any
|
|
109
|
+
* other read or write operation against the array will block.
|
|
110
|
+
*/
|
|
111
|
+
compareExchange(
|
|
112
|
+
typedArray: Int8Array,
|
|
113
|
+
index: NumberType.TypedArraySizeArg,
|
|
114
|
+
expectedValue: import('ts-type-forge').Int8,
|
|
115
|
+
replacementValue: import('ts-type-forge').Int8,
|
|
116
|
+
): import('ts-type-forge').Int8;
|
|
117
|
+
compareExchange(
|
|
118
|
+
typedArray: Uint8Array,
|
|
119
|
+
index: NumberType.TypedArraySizeArg,
|
|
120
|
+
expectedValue: import('ts-type-forge').Uint8,
|
|
121
|
+
replacementValue: import('ts-type-forge').Uint8,
|
|
122
|
+
): import('ts-type-forge').Uint8;
|
|
123
|
+
compareExchange(
|
|
124
|
+
typedArray: Int16Array,
|
|
125
|
+
index: NumberType.TypedArraySizeArg,
|
|
126
|
+
expectedValue: import('ts-type-forge').Int16,
|
|
127
|
+
replacementValue: import('ts-type-forge').Int16,
|
|
128
|
+
): import('ts-type-forge').Int16;
|
|
129
|
+
compareExchange(
|
|
130
|
+
typedArray: Uint16Array,
|
|
131
|
+
index: NumberType.TypedArraySizeArg,
|
|
132
|
+
expectedValue: import('ts-type-forge').Uint16,
|
|
133
|
+
replacementValue: import('ts-type-forge').Uint16,
|
|
134
|
+
): import('ts-type-forge').Uint16;
|
|
135
|
+
compareExchange(
|
|
136
|
+
typedArray: Int32Array,
|
|
137
|
+
index: NumberType.TypedArraySizeArg,
|
|
138
|
+
expectedValue: import('ts-type-forge').Int32,
|
|
139
|
+
replacementValue: import('ts-type-forge').Int32,
|
|
140
|
+
): import('ts-type-forge').Int32;
|
|
141
|
+
compareExchange(
|
|
142
|
+
typedArray: Uint32Array,
|
|
143
|
+
index: NumberType.TypedArraySizeArg,
|
|
144
|
+
expectedValue: import('ts-type-forge').Uint32,
|
|
145
|
+
replacementValue: import('ts-type-forge').Uint32,
|
|
146
|
+
): import('ts-type-forge').Uint32;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Replaces the value at the given position in the array, returning the original value. Until
|
|
150
|
+
* this atomic operation completes, any other read or write operation against the array will
|
|
151
|
+
* block.
|
|
152
|
+
*/
|
|
153
|
+
exchange(
|
|
154
|
+
typedArray: Int8Array,
|
|
155
|
+
index: NumberType.TypedArraySizeArg,
|
|
156
|
+
value: import('ts-type-forge').Int8,
|
|
157
|
+
): import('ts-type-forge').Int8;
|
|
158
|
+
exchange(
|
|
159
|
+
typedArray: Uint8Array,
|
|
160
|
+
index: NumberType.TypedArraySizeArg,
|
|
161
|
+
value: import('ts-type-forge').Uint8,
|
|
162
|
+
): import('ts-type-forge').Uint8;
|
|
163
|
+
exchange(
|
|
164
|
+
typedArray: Int16Array,
|
|
165
|
+
index: NumberType.TypedArraySizeArg,
|
|
166
|
+
value: import('ts-type-forge').Int16,
|
|
167
|
+
): import('ts-type-forge').Int16;
|
|
168
|
+
exchange(
|
|
169
|
+
typedArray: Uint16Array,
|
|
170
|
+
index: NumberType.TypedArraySizeArg,
|
|
171
|
+
value: import('ts-type-forge').Uint16,
|
|
172
|
+
): import('ts-type-forge').Uint16;
|
|
173
|
+
exchange(
|
|
174
|
+
typedArray: Int32Array,
|
|
175
|
+
index: NumberType.TypedArraySizeArg,
|
|
176
|
+
value: import('ts-type-forge').Int32,
|
|
177
|
+
): import('ts-type-forge').Int32;
|
|
178
|
+
exchange(
|
|
179
|
+
typedArray: Uint32Array,
|
|
180
|
+
index: NumberType.TypedArraySizeArg,
|
|
181
|
+
value: import('ts-type-forge').Uint32,
|
|
182
|
+
): import('ts-type-forge').Uint32;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Returns a value indicating whether high-performance algorithms can use atomic operations
|
|
186
|
+
* (`true`) or must use locks (`false`) for the given number of bytes-per-element of a typed
|
|
187
|
+
* array.
|
|
188
|
+
*/
|
|
189
|
+
isLockFree(size: NumberType.TypedArraySizeArgPositive): boolean;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Returns the value at the given position in the array. Until this atomic operation completes,
|
|
193
|
+
* any other read or write operation against the array will block.
|
|
194
|
+
*/
|
|
195
|
+
load(
|
|
196
|
+
typedArray: Int8Array,
|
|
197
|
+
index: NumberType.TypedArraySizeArg,
|
|
198
|
+
): import('ts-type-forge').Int8;
|
|
199
|
+
load(
|
|
200
|
+
typedArray: Uint8Array,
|
|
201
|
+
index: NumberType.TypedArraySizeArg,
|
|
202
|
+
): import('ts-type-forge').Uint8;
|
|
203
|
+
load(
|
|
204
|
+
typedArray: Int16Array,
|
|
205
|
+
index: NumberType.TypedArraySizeArg,
|
|
206
|
+
): import('ts-type-forge').Int16;
|
|
207
|
+
load(
|
|
208
|
+
typedArray: Uint16Array,
|
|
209
|
+
index: NumberType.TypedArraySizeArg,
|
|
210
|
+
): import('ts-type-forge').Uint16;
|
|
211
|
+
load(
|
|
212
|
+
typedArray: Int32Array,
|
|
213
|
+
index: NumberType.TypedArraySizeArg,
|
|
214
|
+
): import('ts-type-forge').Int32;
|
|
215
|
+
load(
|
|
216
|
+
typedArray: Uint32Array,
|
|
217
|
+
index: NumberType.TypedArraySizeArg,
|
|
218
|
+
): import('ts-type-forge').Uint32;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Stores the bitwise OR of a value with the value at the given position in the array,
|
|
222
|
+
* returning the original value. Until this atomic operation completes, any other read or write
|
|
223
|
+
* operation against the array will block.
|
|
224
|
+
*/
|
|
225
|
+
or(
|
|
226
|
+
typedArray: Int8Array,
|
|
227
|
+
index: NumberType.TypedArraySizeArg,
|
|
228
|
+
value: import('ts-type-forge').Int8,
|
|
229
|
+
): import('ts-type-forge').Int8;
|
|
230
|
+
or(
|
|
231
|
+
typedArray: Uint8Array,
|
|
232
|
+
index: NumberType.TypedArraySizeArg,
|
|
233
|
+
value: import('ts-type-forge').Uint8,
|
|
234
|
+
): import('ts-type-forge').Uint8;
|
|
235
|
+
or(
|
|
236
|
+
typedArray: Int16Array,
|
|
237
|
+
index: NumberType.TypedArraySizeArg,
|
|
238
|
+
value: import('ts-type-forge').Int16,
|
|
239
|
+
): import('ts-type-forge').Int16;
|
|
240
|
+
or(
|
|
241
|
+
typedArray: Uint16Array,
|
|
242
|
+
index: NumberType.TypedArraySizeArg,
|
|
243
|
+
value: import('ts-type-forge').Uint16,
|
|
244
|
+
): import('ts-type-forge').Uint16;
|
|
245
|
+
or(
|
|
246
|
+
typedArray: Int32Array,
|
|
247
|
+
index: NumberType.TypedArraySizeArg,
|
|
248
|
+
value: import('ts-type-forge').Int32,
|
|
249
|
+
): import('ts-type-forge').Int32;
|
|
250
|
+
or(
|
|
251
|
+
typedArray: Uint32Array,
|
|
252
|
+
index: NumberType.TypedArraySizeArg,
|
|
253
|
+
value: import('ts-type-forge').Uint32,
|
|
254
|
+
): import('ts-type-forge').Uint32;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Stores a value at the given position in the array, returning the new value. Until this
|
|
258
|
+
* atomic operation completes, any other read or write operation against the array will block.
|
|
259
|
+
*/
|
|
260
|
+
store(
|
|
261
|
+
typedArray: Int8Array,
|
|
262
|
+
index: NumberType.TypedArraySizeArg,
|
|
263
|
+
value: import('ts-type-forge').Int8,
|
|
264
|
+
): import('ts-type-forge').Int8;
|
|
265
|
+
store(
|
|
266
|
+
typedArray: Uint8Array,
|
|
267
|
+
index: NumberType.TypedArraySizeArg,
|
|
268
|
+
value: import('ts-type-forge').Uint8,
|
|
269
|
+
): import('ts-type-forge').Uint8;
|
|
270
|
+
store(
|
|
271
|
+
typedArray: Int16Array,
|
|
272
|
+
index: NumberType.TypedArraySizeArg,
|
|
273
|
+
value: import('ts-type-forge').Int16,
|
|
274
|
+
): import('ts-type-forge').Int16;
|
|
275
|
+
store(
|
|
276
|
+
typedArray: Uint16Array,
|
|
277
|
+
index: NumberType.TypedArraySizeArg,
|
|
278
|
+
value: import('ts-type-forge').Uint16,
|
|
279
|
+
): import('ts-type-forge').Uint16;
|
|
280
|
+
store(
|
|
281
|
+
typedArray: Int32Array,
|
|
282
|
+
index: NumberType.TypedArraySizeArg,
|
|
283
|
+
value: import('ts-type-forge').Int32,
|
|
284
|
+
): import('ts-type-forge').Int32;
|
|
285
|
+
store(
|
|
286
|
+
typedArray: Uint32Array,
|
|
287
|
+
index: NumberType.TypedArraySizeArg,
|
|
288
|
+
value: import('ts-type-forge').Uint32,
|
|
289
|
+
): import('ts-type-forge').Uint32;
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Subtracts a value from the value at the given position in the array, returning the original
|
|
293
|
+
* value. Until this atomic operation completes, any other read or write operation against the
|
|
294
|
+
* array will block.
|
|
295
|
+
*/
|
|
296
|
+
sub(
|
|
297
|
+
typedArray: Int8Array,
|
|
298
|
+
index: NumberType.TypedArraySizeArg,
|
|
299
|
+
value: import('ts-type-forge').Int8,
|
|
300
|
+
): import('ts-type-forge').Int8;
|
|
301
|
+
sub(
|
|
302
|
+
typedArray: Uint8Array,
|
|
303
|
+
index: NumberType.TypedArraySizeArg,
|
|
304
|
+
value: import('ts-type-forge').Uint8,
|
|
305
|
+
): import('ts-type-forge').Uint8;
|
|
306
|
+
sub(
|
|
307
|
+
typedArray: Int16Array,
|
|
308
|
+
index: NumberType.TypedArraySizeArg,
|
|
309
|
+
value: import('ts-type-forge').Int16,
|
|
310
|
+
): import('ts-type-forge').Int16;
|
|
311
|
+
sub(
|
|
312
|
+
typedArray: Uint16Array,
|
|
313
|
+
index: NumberType.TypedArraySizeArg,
|
|
314
|
+
value: import('ts-type-forge').Uint16,
|
|
315
|
+
): import('ts-type-forge').Uint16;
|
|
316
|
+
sub(
|
|
317
|
+
typedArray: Int32Array,
|
|
318
|
+
index: NumberType.TypedArraySizeArg,
|
|
319
|
+
value: import('ts-type-forge').Int32,
|
|
320
|
+
): import('ts-type-forge').Int32;
|
|
321
|
+
sub(
|
|
322
|
+
typedArray: Uint32Array,
|
|
323
|
+
index: NumberType.TypedArraySizeArg,
|
|
324
|
+
value: import('ts-type-forge').Uint32,
|
|
325
|
+
): import('ts-type-forge').Uint32;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* If the value at the given position in the array is equal to the provided value, the current
|
|
329
|
+
* agent is put to sleep causing execution to suspend until the timeout expires (returning
|
|
330
|
+
* `"timed-out"`) or until the agent is awoken (returning `"ok"`); otherwise, returns
|
|
331
|
+
* `"not-equal"`.
|
|
332
|
+
*/
|
|
333
|
+
wait(
|
|
334
|
+
typedArray: Int32Array,
|
|
335
|
+
index: NumberType.TypedArraySizeArg,
|
|
336
|
+
value: import('ts-type-forge').Int32,
|
|
337
|
+
timeout?: number,
|
|
338
|
+
): 'ok' | 'not-equal' | 'timed-out';
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
|
|
342
|
+
* number of agents that were awoken.
|
|
343
|
+
* @param typedArray A shared Int32Array.
|
|
344
|
+
* @param index The position in the typedArray to wake up on.
|
|
345
|
+
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
|
|
346
|
+
*/
|
|
347
|
+
notify(
|
|
348
|
+
typedArray: Int32Array,
|
|
349
|
+
index: NumberType.TypedArraySizeArg,
|
|
350
|
+
count?: import('ts-type-forge').SafeUint,
|
|
351
|
+
): import('ts-type-forge').SafeUint;
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Stores the bitwise XOR of a value with the value at the given position in the array,
|
|
355
|
+
* returning the original value. Until this atomic operation completes, any other read or write
|
|
356
|
+
* operation against the array will block.
|
|
357
|
+
*/
|
|
358
|
+
xor(
|
|
359
|
+
typedArray: Int8Array,
|
|
360
|
+
index: NumberType.TypedArraySizeArg,
|
|
361
|
+
value: import('ts-type-forge').Int8,
|
|
362
|
+
): import('ts-type-forge').Int8;
|
|
363
|
+
xor(
|
|
364
|
+
typedArray: Uint8Array,
|
|
365
|
+
index: NumberType.TypedArraySizeArg,
|
|
366
|
+
value: import('ts-type-forge').Uint8,
|
|
367
|
+
): import('ts-type-forge').Uint8;
|
|
368
|
+
xor(
|
|
369
|
+
typedArray: Int16Array,
|
|
370
|
+
index: NumberType.TypedArraySizeArg,
|
|
371
|
+
value: import('ts-type-forge').Int16,
|
|
372
|
+
): import('ts-type-forge').Int16;
|
|
373
|
+
xor(
|
|
374
|
+
typedArray: Uint16Array,
|
|
375
|
+
index: NumberType.TypedArraySizeArg,
|
|
376
|
+
value: import('ts-type-forge').Uint16,
|
|
377
|
+
): import('ts-type-forge').Uint16;
|
|
378
|
+
xor(
|
|
379
|
+
typedArray: Int32Array,
|
|
380
|
+
index: NumberType.TypedArraySizeArg,
|
|
381
|
+
value: import('ts-type-forge').Int32,
|
|
382
|
+
): import('ts-type-forge').Int32;
|
|
383
|
+
xor(
|
|
384
|
+
typedArray: Uint32Array,
|
|
385
|
+
index: NumberType.TypedArraySizeArg,
|
|
386
|
+
value: import('ts-type-forge').Uint32,
|
|
387
|
+
): import('ts-type-forge').Uint32;
|
|
388
|
+
|
|
389
|
+
readonly [Symbol.toStringTag]: 'Atomics';
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
declare const Atomics: Atomics;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/// <reference no-default-lib="true"/>
|
|
2
|
+
|
|
3
|
+
interface String {
|
|
4
|
+
/**
|
|
5
|
+
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
|
|
6
|
+
* The padding is applied from the start (left) of the current string.
|
|
7
|
+
*
|
|
8
|
+
* @param maxLength The length of the resulting string once the current string has been padded.
|
|
9
|
+
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
|
|
10
|
+
*
|
|
11
|
+
* @param fillString The string to pad the current string with.
|
|
12
|
+
* If this string is too long, it will be truncated and the left-most part will be applied.
|
|
13
|
+
* The default value for this parameter is " " (U+0020).
|
|
14
|
+
*/
|
|
15
|
+
padStart(
|
|
16
|
+
maxLength: NumberType.StringSizeArgNonNegative,
|
|
17
|
+
fillString?: string,
|
|
18
|
+
): string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
|
|
22
|
+
* The padding is applied from the end (right) of the current string.
|
|
23
|
+
*
|
|
24
|
+
* @param maxLength The length of the resulting string once the current string has been padded.
|
|
25
|
+
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
|
|
26
|
+
*
|
|
27
|
+
* @param fillString The string to pad the current string with.
|
|
28
|
+
* If this string is too long, it will be truncated and the left-most part will be applied.
|
|
29
|
+
* The default value for this parameter is " " (U+0020).
|
|
30
|
+
*/
|
|
31
|
+
padEnd(
|
|
32
|
+
maxLength: NumberType.StringSizeArgNonNegative,
|
|
33
|
+
fillString?: string,
|
|
34
|
+
): string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference no-default-lib="true"/>
|
|
2
|
+
|
|
3
|
+
interface Int8ArrayConstructor {
|
|
4
|
+
new (): Int8Array;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
interface Uint8ArrayConstructor {
|
|
8
|
+
new (): Uint8Array;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
interface Uint8ClampedArrayConstructor {
|
|
12
|
+
new (): Uint8ClampedArray;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface Int16ArrayConstructor {
|
|
16
|
+
new (): Int16Array;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface Uint16ArrayConstructor {
|
|
20
|
+
new (): Uint16Array;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface Int32ArrayConstructor {
|
|
24
|
+
new (): Int32Array;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface Uint32ArrayConstructor {
|
|
28
|
+
new (): Uint32Array;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface Float32ArrayConstructor {
|
|
32
|
+
new (): Float32Array;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface Float64ArrayConstructor {
|
|
36
|
+
new (): Float64Array;
|
|
37
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/// <reference no-default-lib="true"/>
|
|
2
|
+
|
|
3
|
+
/// <reference lib="es2018.asynciterable" />
|
|
4
|
+
|
|
5
|
+
interface AsyncGenerator<
|
|
6
|
+
T = unknown,
|
|
7
|
+
TReturn = any,
|
|
8
|
+
TNext = unknown,
|
|
9
|
+
> extends AsyncIterator<T, TReturn, TNext> {
|
|
10
|
+
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
11
|
+
next(
|
|
12
|
+
...args: readonly [] | readonly [TNext]
|
|
13
|
+
): Promise<IteratorResult<T, TReturn>>;
|
|
14
|
+
return(
|
|
15
|
+
value: TReturn | PromiseLike<TReturn>,
|
|
16
|
+
): Promise<IteratorResult<T, TReturn>>;
|
|
17
|
+
throw(e: unknown): Promise<IteratorResult<T, TReturn>>;
|
|
18
|
+
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface AsyncGeneratorFunction {
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new AsyncGenerator object.
|
|
24
|
+
* @param args A list of arguments the function accepts.
|
|
25
|
+
*/
|
|
26
|
+
new (...args: readonly unknown[]): AsyncGenerator;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new AsyncGenerator object.
|
|
29
|
+
* @param args A list of arguments the function accepts.
|
|
30
|
+
*/
|
|
31
|
+
(...args: readonly unknown[]): AsyncGenerator;
|
|
32
|
+
/**
|
|
33
|
+
* The length of the arguments.
|
|
34
|
+
*/
|
|
35
|
+
readonly length: number;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the name of the function.
|
|
38
|
+
*/
|
|
39
|
+
readonly name: string;
|
|
40
|
+
/**
|
|
41
|
+
* A reference to the prototype.
|
|
42
|
+
*/
|
|
43
|
+
readonly prototype: AsyncGenerator;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface AsyncGeneratorFunctionConstructor {
|
|
47
|
+
/**
|
|
48
|
+
* Creates a new AsyncGenerator function.
|
|
49
|
+
* @param args A list of arguments the function accepts.
|
|
50
|
+
*/
|
|
51
|
+
new (...args: readonly string[]): AsyncGeneratorFunction;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a new AsyncGenerator function.
|
|
54
|
+
* @param args A list of arguments the function accepts.
|
|
55
|
+
*/
|
|
56
|
+
(...args: readonly string[]): AsyncGeneratorFunction;
|
|
57
|
+
/**
|
|
58
|
+
* The length of the arguments.
|
|
59
|
+
*/
|
|
60
|
+
readonly length: number;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the name of the function.
|
|
63
|
+
*/
|
|
64
|
+
readonly name: string;
|
|
65
|
+
/**
|
|
66
|
+
* A reference to the prototype.
|
|
67
|
+
*/
|
|
68
|
+
readonly prototype: AsyncGeneratorFunction;
|
|
69
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference no-default-lib="true"/>
|
|
2
|
+
|
|
3
|
+
/// <reference lib="es2015.symbol" />
|
|
4
|
+
/// <reference lib="es2015.iterable" />
|
|
5
|
+
|
|
6
|
+
interface SymbolConstructor {
|
|
7
|
+
/**
|
|
8
|
+
* A method that returns the default async iterator for an object. Called by the semantics of
|
|
9
|
+
* the for-await-of statement.
|
|
10
|
+
*/
|
|
11
|
+
readonly asyncIterator: unique symbol;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
|
|
15
|
+
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
16
|
+
next(
|
|
17
|
+
...args: readonly [] | readonly [TNext]
|
|
18
|
+
): Promise<IteratorResult<T, TReturn>>;
|
|
19
|
+
return?(
|
|
20
|
+
value?: TReturn | PromiseLike<TReturn>,
|
|
21
|
+
): Promise<IteratorResult<T, TReturn>>;
|
|
22
|
+
throw?(e?: unknown): Promise<IteratorResult<T, TReturn>>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface AsyncIterable<T> {
|
|
26
|
+
[Symbol.asyncIterator](): AsyncIterator<T>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
|
|
30
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference no-default-lib="true"/>
|
|
2
|
+
|
|
3
|
+
/// <reference lib="es2017" />
|
|
4
|
+
/// <reference lib="es2018.asynciterable" />
|
|
5
|
+
/// <reference lib="es2018.asyncgenerator" />
|
|
6
|
+
/// <reference lib="es2018.promise" />
|
|
7
|
+
/// <reference lib="es2018.regexp" />
|
|
8
|
+
/// <reference lib="es2018.intl" />
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/// <reference no-default-lib="true"/>
|
|
2
|
+
|
|
3
|
+
declare namespace Intl {
|
|
4
|
+
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
|
|
5
|
+
type LDMLPluralRule = 'zero' | 'one' | 'two' | 'few' | 'many' | 'other';
|
|
6
|
+
type PluralRuleType = 'cardinal' | 'ordinal';
|
|
7
|
+
|
|
8
|
+
interface PluralRulesOptions {
|
|
9
|
+
readonly localeMatcher?: 'lookup' | 'best fit' | undefined;
|
|
10
|
+
readonly type?: PluralRuleType | undefined;
|
|
11
|
+
readonly minimumIntegerDigits?:
|
|
12
|
+
| import('ts-type-forge').UintRange<1, 22>
|
|
13
|
+
| undefined;
|
|
14
|
+
readonly minimumFractionDigits?:
|
|
15
|
+
| import('ts-type-forge').UintRange<0, 21>
|
|
16
|
+
| undefined;
|
|
17
|
+
readonly maximumFractionDigits?:
|
|
18
|
+
| import('ts-type-forge').UintRange<0, 21>
|
|
19
|
+
| undefined;
|
|
20
|
+
readonly minimumSignificantDigits?:
|
|
21
|
+
| import('ts-type-forge').UintRange<1, 22>
|
|
22
|
+
| undefined;
|
|
23
|
+
readonly maximumSignificantDigits?:
|
|
24
|
+
| import('ts-type-forge').UintRange<1, 22>
|
|
25
|
+
| undefined;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
interface ResolvedPluralRulesOptions {
|
|
29
|
+
readonly locale: string;
|
|
30
|
+
readonly pluralCategories: readonly LDMLPluralRule[];
|
|
31
|
+
readonly type: PluralRuleType;
|
|
32
|
+
readonly minimumIntegerDigits: import('ts-type-forge').UintRange<1, 22>;
|
|
33
|
+
readonly minimumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
|
|
34
|
+
readonly maximumFractionDigits: import('ts-type-forge').UintRange<0, 21>;
|
|
35
|
+
readonly minimumSignificantDigits?: import('ts-type-forge').UintRange<
|
|
36
|
+
1,
|
|
37
|
+
22
|
|
38
|
+
>;
|
|
39
|
+
readonly maximumSignificantDigits?: import('ts-type-forge').UintRange<
|
|
40
|
+
1,
|
|
41
|
+
22
|
|
42
|
+
>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface PluralRules {
|
|
46
|
+
resolvedOptions(): ResolvedPluralRulesOptions;
|
|
47
|
+
select(n: number): LDMLPluralRule;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const PluralRules: {
|
|
51
|
+
new (
|
|
52
|
+
locales?: string | readonly string[],
|
|
53
|
+
options?: PluralRulesOptions,
|
|
54
|
+
): PluralRules;
|
|
55
|
+
(
|
|
56
|
+
locales?: string | readonly string[],
|
|
57
|
+
options?: PluralRulesOptions,
|
|
58
|
+
): PluralRules;
|
|
59
|
+
|
|
60
|
+
supportedLocalesOf(
|
|
61
|
+
locales: string | readonly string[],
|
|
62
|
+
options?: { readonly localeMatcher?: 'lookup' | 'best fit' },
|
|
63
|
+
): readonly string[];
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
|
67
|
+
type ES2018NumberFormatPartType =
|
|
68
|
+
| 'literal'
|
|
69
|
+
| 'nan'
|
|
70
|
+
| 'infinity'
|
|
71
|
+
| 'percent'
|
|
72
|
+
| 'integer'
|
|
73
|
+
| 'group'
|
|
74
|
+
| 'decimal'
|
|
75
|
+
| 'fraction'
|
|
76
|
+
| 'plusSign'
|
|
77
|
+
| 'minusSign'
|
|
78
|
+
| 'percentSign'
|
|
79
|
+
| 'currency'
|
|
80
|
+
| 'code'
|
|
81
|
+
| 'symbol'
|
|
82
|
+
| 'name';
|
|
83
|
+
type ES2020NumberFormatPartType =
|
|
84
|
+
| 'compact'
|
|
85
|
+
| 'exponentInteger'
|
|
86
|
+
| 'exponentMinusSign'
|
|
87
|
+
| 'exponentSeparator'
|
|
88
|
+
| 'unit'
|
|
89
|
+
| 'unknown';
|
|
90
|
+
type NumberFormatPartTypes =
|
|
91
|
+
| ES2018NumberFormatPartType
|
|
92
|
+
| ES2020NumberFormatPartType;
|
|
93
|
+
|
|
94
|
+
interface NumberFormatPart {
|
|
95
|
+
readonly type: NumberFormatPartTypes;
|
|
96
|
+
readonly value: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
interface NumberFormat {
|
|
100
|
+
formatToParts(number?: number | bigint): readonly NumberFormatPart[];
|
|
101
|
+
}
|
|
102
|
+
}
|