@everyonesoftware/common 5.0.0 → 6.0.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/outputs/characterWriteStream-DUlG_bx_.d.cts +795 -0
- package/outputs/characterWriteStream-DUlG_bx_.d.ts +795 -0
- package/outputs/{chunk-AY3YWKOM.js → chunk-5Z677JON.js} +947 -3386
- package/outputs/chunk-5Z677JON.js.map +1 -0
- package/outputs/chunk-6V7JRJ7P.js +2469 -0
- package/outputs/chunk-6V7JRJ7P.js.map +1 -0
- package/outputs/chunk-CHBOMCYM.js +845 -0
- package/outputs/chunk-CHBOMCYM.js.map +1 -0
- package/outputs/{sources.cjs → sourceIndex.cjs} +1 -1
- package/outputs/{sources.d.cts → sourceIndex.d.cts} +351 -1143
- package/outputs/{sources.d.ts → sourceIndex.d.ts} +351 -1143
- package/outputs/{sources.js → sourceIndex.js} +32 -30
- package/outputs/{sources.js.map → sourceIndex.js.map} +1 -1
- package/outputs/testIndex.cjs +5832 -0
- package/outputs/testIndex.cjs.map +1 -0
- package/outputs/testIndex.d.cts +428 -0
- package/outputs/testIndex.d.ts +428 -0
- package/outputs/testIndex.js +26 -0
- package/outputs/testIndex.js.map +1 -0
- package/outputs/tests.js +2171 -2985
- package/outputs/tests.js.map +1 -1
- package/package.json +7 -7
- package/outputs/chunk-AY3YWKOM.js.map +0 -1
- /package/outputs/{sources.cjs.map → sourceIndex.cjs.map} +0 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { e as JavascriptAsyncIterator, P as PromiseAsyncResult, k as Type, a as Comparable, h as JavascriptIteratorResult, A as AsyncResult, S as SyncResult, I as Iterable, f as JavascriptIterable, E as EqualFunctions, c as Iterator, T as ToStringFunctions, g as JavascriptIterator, C as CharacterWriteStream, b as Comparison, d as JavascriptAsyncIterable } from './characterWriteStream-DUlG_bx_.cjs';
|
|
2
|
+
export { J as JavascriptArray, i as JavascriptMap, j as JavascriptSet, l as as, m as asArray, n as asBoolean, o as asFunction, p as asFunctionWithParameterCount, q as asNull, r as asNumber, s as asObject, t as asObjectOrArrayOrNull, u as asString, v as getName, w as getParameterCount, x as getPropertyNames, y as hasFunction, z as hasProperty, B as instanceOf, D as instanceOfType, F as isArray, G as isAsyncIterable, H as isBoolean, K as isFunction, L as isFunctionWithParameterCount, M as isIterable, N as isJavascriptAsyncIterable, O as isJavascriptAsyncIterator, Q as isJavascriptIterable, R as isJavascriptIterator, U as isNull, V as isNumber, W as isObject, X as isObjectOrArrayOrNull, Y as isPromise, Z as isPromiseLike, _ as isString, $ as isUndefined, a0 as isUndefinedOrNull } from './characterWriteStream-DUlG_bx_.cjs';
|
|
1
3
|
import * as http from 'http';
|
|
2
4
|
|
|
3
5
|
/**
|
|
@@ -22,788 +24,11 @@ interface AssertMessageParameters {
|
|
|
22
24
|
message?: string;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
/**
|
|
26
|
-
* The result of comparing two values.
|
|
27
|
-
*/
|
|
28
|
-
declare enum Comparison {
|
|
29
|
-
/**
|
|
30
|
-
* The left value is less than the right value.
|
|
31
|
-
*/
|
|
32
|
-
LessThan = 0,
|
|
33
|
-
/**
|
|
34
|
-
* The two values are equal.
|
|
35
|
-
*/
|
|
36
|
-
Equal = 1,
|
|
37
|
-
/**
|
|
38
|
-
* The left value is greater than the right value.
|
|
39
|
-
*/
|
|
40
|
-
GreaterThan = 2
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* An type that can be compared against another type.
|
|
45
|
-
*/
|
|
46
|
-
declare abstract class Comparable<T> {
|
|
47
|
-
protected constructor();
|
|
48
|
-
/**
|
|
49
|
-
* Compare this value against the provided value.
|
|
50
|
-
* @param value The value to compare against.
|
|
51
|
-
*/
|
|
52
|
-
abstract compareTo(value: T): Comparison;
|
|
53
|
-
/**
|
|
54
|
-
* Get whether this value is less than the provided value.
|
|
55
|
-
* @param value The value to compare against.
|
|
56
|
-
*/
|
|
57
|
-
lessThan(value: T): boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Get whether the left value is less than the right value.
|
|
60
|
-
* @param left The left value in the comparison.
|
|
61
|
-
* @param right The right value in the comparison.
|
|
62
|
-
*/
|
|
63
|
-
static lessThan<T>(left: Comparable<T>, right: T): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Get whether this value is less than or equal to the provided value.
|
|
66
|
-
* @param value The value to compare against.
|
|
67
|
-
*/
|
|
68
|
-
lessThanOrEqualTo(value: T): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Get whether the left value is less than or equal to the right value.
|
|
71
|
-
* @param left The left value in the comparison.
|
|
72
|
-
* @param right The right value in the comparison.
|
|
73
|
-
*/
|
|
74
|
-
static lessThanOrEqualTo<T>(left: Comparable<T>, right: T): boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Get whether this value equals the provided value.
|
|
77
|
-
* @param value The value to compare against.
|
|
78
|
-
*/
|
|
79
|
-
equals(value: T): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Get whether the left value equals the right value.
|
|
82
|
-
* @param left The left value in the comparison.
|
|
83
|
-
* @param right The right value in the comparison.
|
|
84
|
-
*/
|
|
85
|
-
static equals<T>(left: Comparable<T>, right: T): boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Get whether this value is not equal to the provided value.
|
|
88
|
-
* @param value The value to compare against.
|
|
89
|
-
*/
|
|
90
|
-
notEquals(value: T): boolean;
|
|
91
|
-
/**
|
|
92
|
-
* Get whether the left value is not equal to the right value.
|
|
93
|
-
* @param left The left value in the comparison.
|
|
94
|
-
* @param right The right value in the comparison.
|
|
95
|
-
*/
|
|
96
|
-
static notEquals<T>(left: Comparable<T>, right: T): boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Get whether this value is greater than or equal to the provided value.
|
|
99
|
-
* @param value The value to compare against.
|
|
100
|
-
*/
|
|
101
|
-
greaterThanOrEqualTo(value: T): boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Get whether the left value is greater than or equal to the right value.
|
|
104
|
-
* @param left The left value in the comparison.
|
|
105
|
-
* @param right The right value in the comparison.
|
|
106
|
-
*/
|
|
107
|
-
static greaterThanOrEqualTo<T>(left: Comparable<T>, right: T): boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Get whether this value is greater than the provided value.
|
|
110
|
-
* @param value The value to compare against.
|
|
111
|
-
*/
|
|
112
|
-
greaterThan(value: T): boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Get whether the left value is greater than the right value.
|
|
115
|
-
* @param left The left value in the comparison.
|
|
116
|
-
* @param right The right value in the comparison.
|
|
117
|
-
*/
|
|
118
|
-
static greaterThan<T>(left: Comparable<T>, right: T): boolean;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
declare class SyncResult<T> implements AsyncResult<T> {
|
|
122
|
-
private value;
|
|
123
|
-
private error;
|
|
124
|
-
private constructor();
|
|
125
|
-
static create<T>(action: () => T): SyncResult<T>;
|
|
126
|
-
static value<T>(value: T): SyncResult<T>;
|
|
127
|
-
static error<T>(error: unknown): SyncResult<T>;
|
|
128
|
-
await(): T;
|
|
129
|
-
then<TResult1 = T, TResult2 = never>(onfullfilled?: ((value: T) => TResult1) | null, onrejected?: ((reason: unknown) => TResult2) | null): SyncResult<TResult1 | TResult2>;
|
|
130
|
-
then<TResult1 = T, TResult2 = never>(onfullfilled?: ((value: T) => (TResult1 | PromiseLike<TResult1>)) | null, onrejected?: ((reason: unknown) => (TResult2 | PromiseLike<TResult2>)) | null): SyncResult<TResult1 | TResult2>;
|
|
131
|
-
onValue(onValueFunction: (value: T) => void): SyncResult<T>;
|
|
132
|
-
onValue(onValueFunction: (value: T) => Promise<void>): PromiseAsyncResult<T>;
|
|
133
|
-
catch<TResult = never>(onrejected: (reason: unknown) => TResult): SyncResult<T | TResult>;
|
|
134
|
-
catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): SyncResult<T | TResult> | PromiseAsyncResult<T | TResult>;
|
|
135
|
-
catch<TError, TResult = never>(errorType: Type<TError>, onrejected: (reason: TError) => TResult): SyncResult<T | TResult>;
|
|
136
|
-
catch<TError, TResult = never>(errorType: Type<TError>, onrejected: (reason: TError) => PromiseLike<TResult>): PromiseAsyncResult<T | TResult>;
|
|
137
|
-
onError(onErrorFunction: (reason: unknown) => void): SyncResult<T>;
|
|
138
|
-
onError(onErrorFunction: (reason: unknown) => PromiseLike<void>): PromiseAsyncResult<T>;
|
|
139
|
-
onError<TError>(errorType: Type<TError>, onErrorFunction: (reason: TError) => void): SyncResult<T>;
|
|
140
|
-
onError<TError>(errorType: Type<TError>, onErrorFunction: (reason: TError) => PromiseLike<void>): PromiseAsyncResult<T>;
|
|
141
|
-
convertError(convertErrorFunction: (reason: unknown) => unknown): SyncResult<T>;
|
|
142
|
-
convertError(onErrorFunction: (reason: unknown) => PromiseLike<unknown>): PromiseAsyncResult<T>;
|
|
143
|
-
convertError<TError>(errorType: Type<TError>, convertErrorFunction: (reason: TError) => unknown): SyncResult<T>;
|
|
144
|
-
convertError<TError>(errorType: Type<TError>, convertErrorFunction: (reason: TError) => PromiseLike<unknown>): PromiseAsyncResult<T>;
|
|
145
|
-
finally(onfinally?: (() => void) | null): SyncResult<T>;
|
|
146
|
-
finally(onfinally?: (() => Promise<void>) | null): PromiseAsyncResult<T>;
|
|
147
|
-
readonly [Symbol.toStringTag]: string;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* A collection of {@link Function}s that can be used to determine if two values are equal.
|
|
152
|
-
*/
|
|
153
|
-
declare class EqualFunctions {
|
|
154
|
-
private readonly equalFunctions;
|
|
155
|
-
private constructor();
|
|
156
|
-
static create(): EqualFunctions;
|
|
157
|
-
private defaultEqualFunction;
|
|
158
|
-
/**
|
|
159
|
-
* Get whether the provided values are equal based on the registered equal {@link Function}s.
|
|
160
|
-
* @param left The left value in the comparison.
|
|
161
|
-
* @param right The right value in the comparison.
|
|
162
|
-
*/
|
|
163
|
-
areEqual(left: unknown, right: unknown): SyncResult<boolean>;
|
|
164
|
-
add(equalFunction: (left: unknown, right: unknown) => (boolean | undefined)): this;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* The built-in {@link Array} type.
|
|
169
|
-
*
|
|
170
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array
|
|
171
|
-
*/
|
|
172
|
-
type JavascriptArray<T> = Array<T>;
|
|
173
|
-
/**
|
|
174
|
-
* The built-in {@link Iterator} type.
|
|
175
|
-
*
|
|
176
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#iterators
|
|
177
|
-
*/
|
|
178
|
-
type JavascriptIterator<T> = Iterator<T>;
|
|
179
|
-
/**
|
|
180
|
-
* The built-in {@link IteratorResult} type.
|
|
181
|
-
*/
|
|
182
|
-
type JavascriptIteratorResult<T> = IteratorResult<T, T>;
|
|
183
|
-
/**
|
|
184
|
-
* The built-in {@link Iterable} type.
|
|
185
|
-
*
|
|
186
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators#iterables
|
|
187
|
-
*/
|
|
188
|
-
type JavascriptIterable<T> = Iterable<T>;
|
|
189
|
-
/**
|
|
190
|
-
* The built-in {@link Map} type.
|
|
191
|
-
*
|
|
192
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
|
|
193
|
-
*/
|
|
194
|
-
type JavascriptMap<TKey, TValue> = Map<TKey, TValue>;
|
|
195
|
-
/**
|
|
196
|
-
* The built-in {@link Map} type.
|
|
197
|
-
*
|
|
198
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
|
|
199
|
-
*/
|
|
200
|
-
declare const JavascriptMap: MapConstructor;
|
|
201
|
-
/**
|
|
202
|
-
* The built-in {@link AsyncIterator} type.
|
|
203
|
-
*
|
|
204
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncIterator
|
|
205
|
-
*/
|
|
206
|
-
type JavascriptAsyncIterator<T> = AsyncIterator<T>;
|
|
207
|
-
interface JavascriptAsyncIterable<T> {
|
|
208
|
-
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* The built-in {@link Set} type.
|
|
212
|
-
*
|
|
213
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
|
214
|
-
*/
|
|
215
|
-
type JavascriptSet<T> = Set<T>;
|
|
216
|
-
declare const JavascriptSet: SetConstructor;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* A type that can be used to iterate over a collection.
|
|
220
|
-
*/
|
|
221
|
-
declare abstract class Iterator$1<T> implements JavascriptIterable<T> {
|
|
222
|
-
/**
|
|
223
|
-
* Create a new {@link Iterator} that contains the provided values.
|
|
224
|
-
* @param values The values that the new {@link Iterator} will iterate over.
|
|
225
|
-
*/
|
|
226
|
-
static create<T>(values: JavascriptIterator<T> | JavascriptIterable<T>): Iterator$1<T>;
|
|
227
|
-
/**
|
|
228
|
-
* Move to the next value in the collection. Return whether this {@link Iterator} points to a
|
|
229
|
-
* value after the move.
|
|
230
|
-
*/
|
|
231
|
-
abstract next(): SyncResult<boolean>;
|
|
232
|
-
/**
|
|
233
|
-
* Get whether this {@link Iterator} has started iterating over the values in the collection.
|
|
234
|
-
*/
|
|
235
|
-
abstract hasStarted(): boolean;
|
|
236
|
-
/**
|
|
237
|
-
* Get whether this {@link Iterator} currently points at a value in the collection.
|
|
238
|
-
*/
|
|
239
|
-
abstract hasCurrent(): boolean;
|
|
240
|
-
/**
|
|
241
|
-
* Get the value that this {@link Iterator} points to.
|
|
242
|
-
*/
|
|
243
|
-
abstract getCurrent(): T;
|
|
244
|
-
/**
|
|
245
|
-
* Move to the first value if this {@link Iterator} hasn't started yet.
|
|
246
|
-
* @returns This object for method chaining.
|
|
247
|
-
*/
|
|
248
|
-
start(): SyncResult<this>;
|
|
249
|
-
/**
|
|
250
|
-
* Move the provided {@link Iterator} to its first value if it hasn't started yet.
|
|
251
|
-
*/
|
|
252
|
-
static start<T, TIterator extends Iterator$1<T>>(iterator: TIterator): SyncResult<TIterator>;
|
|
253
|
-
/**
|
|
254
|
-
* Get the current value from this {@link Iterator} and advance this {@link Iterator} to the
|
|
255
|
-
* next value.
|
|
256
|
-
*/
|
|
257
|
-
takeCurrent(): SyncResult<T>;
|
|
258
|
-
static takeCurrent<T>(iterator: Iterator$1<T>): SyncResult<T>;
|
|
259
|
-
[Symbol.iterator](): JavascriptIterator<T>;
|
|
260
|
-
/**
|
|
261
|
-
* Convert the provided {@link Iterator} to a {@link IteratorToJavascriptIteratorAdapter}.
|
|
262
|
-
* @param iterator The {@link Iterator} to convert.
|
|
263
|
-
*/
|
|
264
|
-
static [Symbol.iterator]<T>(iterator: Iterator$1<T>): JavascriptIterator<T>;
|
|
265
|
-
/**
|
|
266
|
-
* Get whether this {@link Iterator} contains any values.
|
|
267
|
-
* Note: This may advance the {@link Iterator} to the first value if it hasn't been
|
|
268
|
-
* started yet.
|
|
269
|
-
*/
|
|
270
|
-
any(): SyncResult<boolean>;
|
|
271
|
-
/**
|
|
272
|
-
* Get whether this {@link Iterator} contains any values.
|
|
273
|
-
* Note: This may advance the {@link Iterator} to the first value if it hasn't been
|
|
274
|
-
* started yet.
|
|
275
|
-
*/
|
|
276
|
-
static any<T>(iterator: Iterator$1<T>): SyncResult<boolean>;
|
|
277
|
-
/**
|
|
278
|
-
* Get the number of values in this {@link Iterator}.
|
|
279
|
-
* Note: This will consume all of the values in this {@link Iterator}.
|
|
280
|
-
*/
|
|
281
|
-
getCount(): SyncResult<number>;
|
|
282
|
-
/**
|
|
283
|
-
* Get the number of values in the provided {@link Iterator}.
|
|
284
|
-
* Note: This will consume all of the values in the provided {@link Iterator}.
|
|
285
|
-
*/
|
|
286
|
-
static getCount<T>(iterator: Iterator$1<T>): SyncResult<number>;
|
|
287
|
-
/**
|
|
288
|
-
* Get all of the remaining values in this {@link Iterator} in a {@link T} {@link Array}.
|
|
289
|
-
*/
|
|
290
|
-
toArray(): SyncResult<T[]>;
|
|
291
|
-
/**
|
|
292
|
-
* Get all of the remaining values in the provided {@link Iterator} in a {@link T}
|
|
293
|
-
* {@link Array}.
|
|
294
|
-
*/
|
|
295
|
-
static toArray<T>(iterator: Iterator$1<T>): SyncResult<T[]>;
|
|
296
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator$1<T>;
|
|
297
|
-
static concatenate<T>(iterator: Iterator$1<T>, ...toConcatenate: JavascriptIterable<T>[]): Iterator$1<T>;
|
|
298
|
-
/**
|
|
299
|
-
* Get an {@link Iterator} that will only return values that match the provided condition.
|
|
300
|
-
* @param condition The condition to run against each of the values in this {@link Iterator}.
|
|
301
|
-
*/
|
|
302
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator$1<T>;
|
|
303
|
-
static where<T>(iterator: Iterator$1<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator$1<T>;
|
|
304
|
-
/**
|
|
305
|
-
* Get a {@link MapIterator} that will map all {@link T} values from this {@link Iterator} to
|
|
306
|
-
* {@link TOutput} values.
|
|
307
|
-
* @param mapping The mapping that maps {@link T} values to {@link TOutput} values.
|
|
308
|
-
*/
|
|
309
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator$1<TOutput>;
|
|
310
|
-
static map<T, TOutput>(iterator: Iterator$1<T>, mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator$1<TOutput>;
|
|
311
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator$1<TOutput>;
|
|
312
|
-
static flatMap<T, TOutput>(iterator: Iterator$1<T>, mapping: (value: T) => JavascriptIterable<TOutput>): Iterator$1<TOutput>;
|
|
313
|
-
/**
|
|
314
|
-
* Get an {@link Iterator} that will filter this {@link Iterator} to only the values that are
|
|
315
|
-
* instances of {@link U} based on the provided type check {@link Function}.
|
|
316
|
-
* @param typeCheck The {@link Function} that will be used to determine if values are of type
|
|
317
|
-
* {@link U}.
|
|
318
|
-
*/
|
|
319
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator$1<U>;
|
|
320
|
-
static whereInstanceOf<T, U extends T>(iterator: Iterator$1<T>, typeCheck: (value: T) => value is U): Iterator$1<U>;
|
|
321
|
-
/**
|
|
322
|
-
* Get an {@link Iterator} that will filter this {@link Iterator} to only the values that are
|
|
323
|
-
* instances of the provided {@link Type}.
|
|
324
|
-
* @param type The type of values to return from the new {@link Iterator}.
|
|
325
|
-
*/
|
|
326
|
-
whereInstanceOfType<U extends T>(type: Type<U>): Iterator$1<U>;
|
|
327
|
-
static whereInstanceOfType<T, U extends T>(iterator: Iterator$1<T>, type: Type<U>): Iterator$1<U>;
|
|
328
|
-
/**
|
|
329
|
-
* If the condition function is undefined, then this function will return the first value in
|
|
330
|
-
* this {@link Iterator}. If this condition function is provided, then this function will return
|
|
331
|
-
* the first value that matches the provided condition.
|
|
332
|
-
* @param condition The condition that the returned value must satisfy.
|
|
333
|
-
*/
|
|
334
|
-
first(condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
335
|
-
/**
|
|
336
|
-
* If the condition function is undefined, then this function will return the first value in
|
|
337
|
-
* the {@link Iterator}. If this condition function is provided, then this function will return
|
|
338
|
-
* the first value that matches the provided condition.
|
|
339
|
-
* @param iterator The {@link Iterator} to get the first value from.
|
|
340
|
-
*/
|
|
341
|
-
static first<T>(iterator: Iterator$1<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
342
|
-
/**
|
|
343
|
-
* If the condition function is undefined, then this function will return the last value in this
|
|
344
|
-
* {@link Iterator}. If this condition function is provided, then this function will return the
|
|
345
|
-
* last value that matches the provided condition.
|
|
346
|
-
* @param condition The condition that the returned value must satisfy.
|
|
347
|
-
*/
|
|
348
|
-
last(condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
349
|
-
/**
|
|
350
|
-
* If the condition function is undefined, then this function will return the last value in the
|
|
351
|
-
* {@link Iterator}. If this condition function is provided, then this function will return the
|
|
352
|
-
* last value that matches the provided condition.
|
|
353
|
-
* @param iterator The {@link Iterator} to get the last value from.
|
|
354
|
-
*/
|
|
355
|
-
static last<T>(iterator: Iterator$1<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
356
|
-
/**
|
|
357
|
-
* Find the maximum value in the provided {@link Iterator}.
|
|
358
|
-
* @param iterator The values to find the maximum of.
|
|
359
|
-
*/
|
|
360
|
-
static findMaximum<T extends Comparable<T>>(iterator: JavascriptIterator<T> | Iterator$1<T>): SyncResult<T>;
|
|
361
|
-
/**
|
|
362
|
-
* Get a new {@link Iterator} that wraps around this {@link Iterator} and only
|
|
363
|
-
* returns a maximum number of values from this {@link Iterator}.
|
|
364
|
-
* @param maximumToTake The maximum number of values to take from this {@link Iterator}.
|
|
365
|
-
*/
|
|
366
|
-
take(maximumToTake: number): Iterator$1<T>;
|
|
367
|
-
static take<T>(iterator: Iterator$1<T>, maximumToTake: number): Iterator$1<T>;
|
|
368
|
-
/**
|
|
369
|
-
* Get a new {@link Iterator} that wraps around this {@link Iterator} and will skip the initial
|
|
370
|
-
* provided number of values before beginning to return values.
|
|
371
|
-
* @param maximumToSkip The maximum number of values to skip from this {@link Iterator}.
|
|
372
|
-
*/
|
|
373
|
-
skip(maximumToSkip: number): Iterator$1<T>;
|
|
374
|
-
static skip<T>(iterator: Iterator$1<T>, maximumToSkip: number): Iterator$1<T>;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* A collection of {@link ToStringFunction}s.
|
|
379
|
-
*/
|
|
380
|
-
declare class ToStringFunctions {
|
|
381
|
-
private readonly functions;
|
|
382
|
-
private constructor();
|
|
383
|
-
static create(): ToStringFunctions;
|
|
384
|
-
private defaultToString;
|
|
385
|
-
/**
|
|
386
|
-
* Get the {@link String} representation of the value with the registered
|
|
387
|
-
* {@link ToStringFunction}s.
|
|
388
|
-
* @param value The value to get the {@link String} representation of.
|
|
389
|
-
*/
|
|
390
|
-
toString(value: unknown): string;
|
|
391
|
-
add(toStringFunction: (value: unknown) => (string | undefined)): this;
|
|
392
|
-
add<T>(typeCheckFunction: (value: unknown) => value is T, typedToStringFunction: (value: T) => string): this;
|
|
393
|
-
private iterableToString;
|
|
394
|
-
private mapToString;
|
|
395
|
-
private setToString;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* An object that can be iterated over.
|
|
400
|
-
*/
|
|
401
|
-
declare abstract class Iterable$1<T> implements JavascriptIterable<T> {
|
|
402
|
-
static create<T>(values?: JavascriptIterable<T>): Iterable$1<T>;
|
|
403
|
-
/**
|
|
404
|
-
* Iterate over the values in this {@link Iterable}.
|
|
405
|
-
*/
|
|
406
|
-
abstract iterate(): Iterator$1<T>;
|
|
407
|
-
[Symbol.iterator](): JavascriptIterator<T>;
|
|
408
|
-
static [Symbol.iterator]<T>(iterable: Iterable$1<T>): JavascriptIterator<T>;
|
|
409
|
-
/**
|
|
410
|
-
* Get all of the values in this {@link Iterable} in an {@link Array}.
|
|
411
|
-
*/
|
|
412
|
-
toArray(): SyncResult<T[]>;
|
|
413
|
-
/**
|
|
414
|
-
* Get all of the values in the provided {@link Iterable} in an {@link Array}.
|
|
415
|
-
*/
|
|
416
|
-
static toArray<T>(iterable: Iterable$1<T>): SyncResult<T[]>;
|
|
417
|
-
/**
|
|
418
|
-
* Get whether this {@link Iterable} contains any values.
|
|
419
|
-
*/
|
|
420
|
-
any(): SyncResult<boolean>;
|
|
421
|
-
/**
|
|
422
|
-
* Get whether the provided {@link JavascriptIterable} contains any values.
|
|
423
|
-
*/
|
|
424
|
-
static any<T>(iterable: JavascriptIterable<T>): SyncResult<boolean>;
|
|
425
|
-
/**
|
|
426
|
-
* Get the number of values in this {@link Iterable}.
|
|
427
|
-
*/
|
|
428
|
-
getCount(): SyncResult<number>;
|
|
429
|
-
/**
|
|
430
|
-
* Get the number of values in the provided {@link Iterable}.
|
|
431
|
-
*/
|
|
432
|
-
static getCount<T>(iterable: Iterable$1<T>): SyncResult<number>;
|
|
433
|
-
/**
|
|
434
|
-
* Get whether this {@link Iterable} is equal to the provided {@link Iterable}.
|
|
435
|
-
* @param right The {@link Iterable} to compare against this {@link Iterable}.
|
|
436
|
-
* @param equalFunctions The optional {@link EqualFunctions} to use to determine if the two
|
|
437
|
-
* {@link Iterable}s are equal.
|
|
438
|
-
*/
|
|
439
|
-
equals(right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
440
|
-
static equals<T>(left: JavascriptIterable<T>, right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
441
|
-
/**
|
|
442
|
-
* Get the {@link String} representation of this {@link Iterable}.
|
|
443
|
-
*/
|
|
444
|
-
toString(toStringFunctions?: ToStringFunctions): string;
|
|
445
|
-
/**
|
|
446
|
-
* Get the {@link String} representation of the provided {@link Iterable}.
|
|
447
|
-
*/
|
|
448
|
-
static toString<T>(iterable: Iterable$1<T>, toStringFunctions?: ToStringFunctions): string;
|
|
449
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable$1<T>;
|
|
450
|
-
static concatenate<T>(iterable: Iterable$1<T>, ...toConcatenate: JavascriptIterable<T>[]): Iterable$1<T>;
|
|
451
|
-
/**
|
|
452
|
-
* Get a {@link MapIterable} that maps all of the {@link T} values in this {@link Iterable} to
|
|
453
|
-
* {@link TOutput} values.
|
|
454
|
-
* @param mapping The mapping function to use to convert values of type {@link T} to
|
|
455
|
-
* {@link TOutput}.
|
|
456
|
-
*/
|
|
457
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable$1<TOutput>;
|
|
458
|
-
/**
|
|
459
|
-
* Get a {@link MapIterable} that maps all of the {@link T} values in the provided
|
|
460
|
-
* {@link Iterable} to {@link TOutput} values.
|
|
461
|
-
* @param mapping The mapping function to use to convert values of type {@link T} to
|
|
462
|
-
* {@link TOutput}.
|
|
463
|
-
*/
|
|
464
|
-
static map<TInput, TOutput>(iterable: Iterable$1<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>)): Iterable$1<TOutput>;
|
|
465
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable$1<TOutput>;
|
|
466
|
-
static flatMap<T, TOutput>(iterable: Iterable$1<T>, mapping: (value: T) => JavascriptIterable<TOutput>): Iterable$1<TOutput>;
|
|
467
|
-
/**
|
|
468
|
-
* Get an {@link Iterable} that contains values from this {@link Iterable} that match the
|
|
469
|
-
* provided condition.
|
|
470
|
-
* @param condition The condition to run against each of the values in this {@link Iterable}.
|
|
471
|
-
*/
|
|
472
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable$1<T>;
|
|
473
|
-
/**
|
|
474
|
-
* Get an {@link Iterable} that contains values from the provided {@link Iterable} that match
|
|
475
|
-
* the provided condition.
|
|
476
|
-
* @param iterable The {@link Iterable} to get values from.
|
|
477
|
-
* @param condition The condition that the values must match to be contained in the new
|
|
478
|
-
* {@link Iterable}.
|
|
479
|
-
*/
|
|
480
|
-
static where<T>(iterable: JavascriptIterable<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable$1<T>;
|
|
481
|
-
/**
|
|
482
|
-
* Get an {@link Iterable} that contains values from this {@link Iterable} that match the
|
|
483
|
-
* provided {@link Type} or type check function.
|
|
484
|
-
* @param typeOrTypeCheck The {@link Type} or type check function that returned values must
|
|
485
|
-
* match.
|
|
486
|
-
*/
|
|
487
|
-
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable$1<TOutput>;
|
|
488
|
-
/**
|
|
489
|
-
* Get an {@link Iterable} that contains values from the provided {@link Iterable} that match
|
|
490
|
-
* the provided {@link Type} or type check function.
|
|
491
|
-
* @param iterable The {@link Iterable} to get values from.
|
|
492
|
-
* @param typeOrTypeCheck The {@link Type} or type check function that returned values must
|
|
493
|
-
* match.
|
|
494
|
-
*/
|
|
495
|
-
static instanceOf<TInput, TOutput extends TInput>(iterable: JavascriptIterable<TInput>, typeOrTypeCheck: Type<TOutput> | ((value: TInput) => value is TOutput)): Iterable$1<TOutput>;
|
|
496
|
-
/**
|
|
497
|
-
* Get the first value in this {@link Iterable}.
|
|
498
|
-
*/
|
|
499
|
-
first(condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
500
|
-
/**
|
|
501
|
-
* Get the first value from the provided {@link JavascriptIterable}.
|
|
502
|
-
* @param iterable The {@link JavascriptIterable} to get the first value from.
|
|
503
|
-
*/
|
|
504
|
-
static first<T>(iterable: JavascriptIterable<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
505
|
-
/**
|
|
506
|
-
* Get the last value in this {@link Iterable}.
|
|
507
|
-
*/
|
|
508
|
-
last(condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
509
|
-
/**
|
|
510
|
-
* Get the last value from the provided {@link JavascriptIterable}.
|
|
511
|
-
* @param iterable The {@link JavascriptIterable} to get the last value from.
|
|
512
|
-
*/
|
|
513
|
-
static last<T>(iterable: JavascriptIterable<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
514
|
-
/**
|
|
515
|
-
* Find the maximum value in the provided {@link Iterable}.
|
|
516
|
-
* @param iterable The values to find the maximum of.
|
|
517
|
-
*/
|
|
518
|
-
static findMaximum<T extends Comparable<T>>(iterable: JavascriptIterable<T> | Iterable$1<T>): SyncResult<T>;
|
|
519
|
-
contains(value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
520
|
-
static contains<T>(iterable: Iterable$1<T>, value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
/**
|
|
524
|
-
* A {@link Type} that can be used to pass types as parameters.
|
|
525
|
-
*/
|
|
526
|
-
type Type<T> = Function & {
|
|
527
|
-
prototype: T;
|
|
528
|
-
};
|
|
529
|
-
/**
|
|
530
|
-
* Get whether the provided value is an instance of {@link Type} {@link T}.
|
|
531
|
-
* @param typeOrTypeCheck The {@link Type} to look for or type check {@link Function} to determine
|
|
532
|
-
* if the provided value is a {@link T}.
|
|
533
|
-
* @param value The value to check.
|
|
534
|
-
*/
|
|
535
|
-
declare function instanceOf<T>(value: unknown, typeCheck: (value: unknown) => value is T): value is T;
|
|
536
|
-
/**
|
|
537
|
-
* Get whether the provided value is an instance of {@link Type} {@link T}.
|
|
538
|
-
* @param typeOrTypeCheck The {@link Type} to look for or type check {@link Function} to determine
|
|
539
|
-
* if the provided value is a {@link T}.
|
|
540
|
-
* @param value The value to check.
|
|
541
|
-
*/
|
|
542
|
-
declare function instanceOf<T>(value: unknown, type: Type<T>, typeCheck?: (value: unknown) => value is T): value is T;
|
|
543
|
-
/**
|
|
544
|
-
* Get whether the provided value is an instance of the provided {@link Type}. This will return
|
|
545
|
-
* false if value only implements the provided {@link Type} but doesn't extend it.
|
|
546
|
-
* @param value The value to check.
|
|
547
|
-
* @param type The {@link Type} to see if value is an instance of.
|
|
548
|
-
*/
|
|
549
|
-
declare function instanceOfType<T>(value: unknown, type: Type<T>): value is T;
|
|
550
|
-
/**
|
|
551
|
-
* If the provided {@link value} is of type {@link T} (according to the provided {@link typeCheck}),
|
|
552
|
-
* then return the {@link value}. Otherwise return undefined.
|
|
553
|
-
* @param value The value to check.
|
|
554
|
-
* @param typeOrTypeCheck The {@link Type} to look for or type check {@link Function} to determine
|
|
555
|
-
* if the provided value is a {@link T}.
|
|
556
|
-
*/
|
|
557
|
-
declare function as<T>(value: unknown, typeOrTypeCheck: Type<T> | ((value: unknown) => value is T)): T | undefined;
|
|
558
|
-
/**
|
|
559
|
-
* Get whether the provided value is undefined.
|
|
560
|
-
* @param value The value to check.
|
|
561
|
-
*/
|
|
562
|
-
declare function isUndefined(value: unknown): value is undefined;
|
|
563
|
-
/**
|
|
564
|
-
* Get whether the provided value is null.
|
|
565
|
-
* @param value The value to check.
|
|
566
|
-
*/
|
|
567
|
-
declare function isNull(value: unknown): value is null;
|
|
568
|
-
/**
|
|
569
|
-
* Return the provided value if it is null, otherwise return undefined.
|
|
570
|
-
* @param value The value to check.
|
|
571
|
-
*/
|
|
572
|
-
declare function asNull(value: unknown): null | undefined;
|
|
573
|
-
/**
|
|
574
|
-
* Get whether the provided value is undefined or null.
|
|
575
|
-
* @param value The value to check.
|
|
576
|
-
*/
|
|
577
|
-
declare function isUndefinedOrNull(value: unknown): value is undefined | null;
|
|
578
|
-
/**
|
|
579
|
-
* Get whether the provided value is a {@link boolean}.
|
|
580
|
-
* @param value The value to check.
|
|
581
|
-
*/
|
|
582
|
-
declare function isBoolean(value: unknown): value is boolean;
|
|
583
|
-
/**
|
|
584
|
-
* Return the provided value if it is a boolean, otherwise return undefined.
|
|
585
|
-
* @param value The value to check.
|
|
586
|
-
*/
|
|
587
|
-
declare function asBoolean(value: unknown): boolean | undefined;
|
|
588
|
-
/**
|
|
589
|
-
* Get whether the provided value is a {@link number}.
|
|
590
|
-
* @param value The value to check.
|
|
591
|
-
*/
|
|
592
|
-
declare function isNumber(value: unknown): value is number;
|
|
593
|
-
/**
|
|
594
|
-
* Return the provided value if it is a number, otherwise return undefined.
|
|
595
|
-
* @param value The value to check.
|
|
596
|
-
*/
|
|
597
|
-
declare function asNumber(value: unknown): number | undefined;
|
|
598
|
-
/**
|
|
599
|
-
* Get whether the provided value is a {@link string}.
|
|
600
|
-
* @param value The value to check.
|
|
601
|
-
*/
|
|
602
|
-
declare function isString(value: unknown): value is string;
|
|
603
|
-
/**
|
|
604
|
-
* Return the provided value if it is a string, otherwise return undefined.
|
|
605
|
-
* @param value The value to check.
|
|
606
|
-
*/
|
|
607
|
-
declare function asString(value: unknown): string | undefined;
|
|
608
|
-
/**
|
|
609
|
-
* Get whether the provided value is a {@link function}.
|
|
610
|
-
* @param value The value to check.
|
|
611
|
-
*/
|
|
612
|
-
declare function isFunction(value: unknown): value is Function;
|
|
613
|
-
/**
|
|
614
|
-
* Return the provided value if it is a function, otherwise return undefined.
|
|
615
|
-
* @param value The value to check.
|
|
616
|
-
*/
|
|
617
|
-
declare function asFunction(value: unknown): Function | undefined;
|
|
618
|
-
/**
|
|
619
|
-
* Get the number of parameters that the provided {@link Function} takes.
|
|
620
|
-
* @param value The {@link Function} to get the parameter count for.
|
|
621
|
-
*/
|
|
622
|
-
declare function getParameterCount(value: Function): number;
|
|
623
|
-
/**
|
|
624
|
-
* Get whether the provided value is a function with the provided parameter count.
|
|
625
|
-
* @param value The value to check.
|
|
626
|
-
* @param parameterCount The number of parameters the function must have.
|
|
627
|
-
*/
|
|
628
|
-
declare function isFunctionWithParameterCount(value: unknown, parameterCount: number): value is Function;
|
|
629
|
-
/**
|
|
630
|
-
* Return the provided value if it is a function with the provided {@link parameterCount}, otherwise
|
|
631
|
-
* return undefined.
|
|
632
|
-
* @param value The value to check.
|
|
633
|
-
*/
|
|
634
|
-
declare function asFunctionWithParameterCount(value: unknown, parameterCount: number): Function | undefined;
|
|
635
|
-
/**
|
|
636
|
-
* Get whether the provided value is an {@link Array}.
|
|
637
|
-
* @param value The value to check.
|
|
638
|
-
*/
|
|
639
|
-
declare function isArray(value: unknown): value is unknown[];
|
|
640
|
-
/**
|
|
641
|
-
* Return the provided value if it is an array, otherwise return undefined.
|
|
642
|
-
* @param value The value to check.
|
|
643
|
-
*/
|
|
644
|
-
declare function asArray(value: unknown): unknown[] | undefined;
|
|
645
|
-
/**
|
|
646
|
-
* Get whether the provided value is an {@link Object} or is null.
|
|
647
|
-
* @param value The value to check.
|
|
648
|
-
*/
|
|
649
|
-
declare function isObjectOrArrayOrNull(value: unknown): value is {} | unknown[] | null;
|
|
650
|
-
/**
|
|
651
|
-
* Return the provided value if it is an array, otherwise return undefined.
|
|
652
|
-
* @param value The value to check.
|
|
653
|
-
*/
|
|
654
|
-
declare function asObjectOrArrayOrNull(value: unknown): {} | unknown[] | null | undefined;
|
|
655
|
-
/**
|
|
656
|
-
* Get whether the provided value is an {@link Object}.
|
|
657
|
-
* @param value The value to check.
|
|
658
|
-
* @returns
|
|
659
|
-
*/
|
|
660
|
-
declare function isObject(value: unknown): value is {};
|
|
661
|
-
/**
|
|
662
|
-
* Return the provided value if it is an {@link Object}, otherwise return undefined.
|
|
663
|
-
* @param value The value to check.
|
|
664
|
-
*/
|
|
665
|
-
declare function asObject(value: unknown): {} | undefined;
|
|
666
|
-
/**
|
|
667
|
-
* Get an {@link Iterator} that can be used to iterate through the properties of the provided value.
|
|
668
|
-
* @param value The value to iterate over.
|
|
669
|
-
*/
|
|
670
|
-
declare function getPropertyNames(value: {}): Iterable$1<string>;
|
|
671
|
-
/**
|
|
672
|
-
* Get whether the provided value has a property with the provided key.
|
|
673
|
-
* @param value The value to check.
|
|
674
|
-
* @param propertyKey The key of the property to look for.
|
|
675
|
-
*/
|
|
676
|
-
declare function hasProperty<TValue, TPropertyKey extends PropertyKey>(value: TValue, propertyKey: TPropertyKey): value is TValue & Record<TPropertyKey, unknown>;
|
|
677
|
-
/**
|
|
678
|
-
* Get whether the value has a function with the provided name.
|
|
679
|
-
* @param value The value to check.
|
|
680
|
-
* @param functionName The name of the function to look for.
|
|
681
|
-
*/
|
|
682
|
-
declare function hasFunction<TValue, TPropertyKey extends PropertyKey>(value: TValue, functionName: TPropertyKey, parameterCount?: number): value is TValue & Record<TPropertyKey, Function>;
|
|
683
|
-
/**
|
|
684
|
-
* Get whether the provided value is a {@link JavascriptIterator}.
|
|
685
|
-
* @param value The value to check.
|
|
686
|
-
*/
|
|
687
|
-
declare function isJavascriptIterator<T>(value: unknown): value is JavascriptIterator<T>;
|
|
688
|
-
/**
|
|
689
|
-
* Get whether the provided value is a {@link JavascriptIterable}.
|
|
690
|
-
* @param value The value to check.
|
|
691
|
-
*/
|
|
692
|
-
declare function isJavascriptIterable<T>(value: unknown): value is JavascriptIterable<T>;
|
|
693
|
-
declare function isIterable<T>(value: unknown): value is Iterable$1<T>;
|
|
694
|
-
/**
|
|
695
|
-
* Get whether the provided value is a {@link JavascriptAsyncIterator}.
|
|
696
|
-
* @param value The value to check.
|
|
697
|
-
*/
|
|
698
|
-
declare function isJavascriptAsyncIterator<T>(value: unknown): value is JavascriptAsyncIterator<T>;
|
|
699
|
-
/**
|
|
700
|
-
* Get whether the provided value is a {@link JavascriptAsyncIterable}.
|
|
701
|
-
* @param value The value to check.
|
|
702
|
-
*/
|
|
703
|
-
declare function isJavascriptAsyncIterable<T>(value: unknown): value is JavascriptAsyncIterable<T>;
|
|
704
|
-
declare function isAsyncIterable<T>(value: unknown): value is AsyncIterable<T>;
|
|
705
|
-
/**
|
|
706
|
-
* Get the name of the provided {@link Type}.
|
|
707
|
-
* @param type The {@link Type} to get the name of.
|
|
708
|
-
*/
|
|
709
|
-
declare function getName(type: Type<unknown>): string;
|
|
710
|
-
declare function isPromiseLike<T>(value: unknown): value is PromiseLike<T>;
|
|
711
|
-
declare function isPromise<T>(value: unknown): value is Promise<T>;
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* A result object that adds extra behavior beyond the standard {@link Promise}.
|
|
715
|
-
*/
|
|
716
|
-
declare abstract class AsyncResult<T> implements Promise<T> {
|
|
717
|
-
static create<T>(action: () => (T | Promise<T>)): AsyncResult<T>;
|
|
718
|
-
static create<T>(promise: Promise<T>): AsyncResult<T>;
|
|
719
|
-
/**
|
|
720
|
-
* Create a new {@link AsyncResult} that contains the provided value.
|
|
721
|
-
* @param value The value to wrap in a {@link AsyncResult}.
|
|
722
|
-
*/
|
|
723
|
-
static value<T>(value: T): AsyncResult<T>;
|
|
724
|
-
/**
|
|
725
|
-
* Create a new {@link AsyncResult} that contains the provided error.
|
|
726
|
-
* @param error The error to wrap in a {@link AsyncResult}.
|
|
727
|
-
*/
|
|
728
|
-
static error<T>(error: Error): AsyncResult<T>;
|
|
729
|
-
static yield(): AsyncResult<void>;
|
|
730
|
-
/**
|
|
731
|
-
* Get a {@link AsyncResult} that runs the provided function if this {@link AsyncResult} is successful.
|
|
732
|
-
* @param thenFunction The function to run if this {@link AsyncResult} is successful.
|
|
733
|
-
*/
|
|
734
|
-
abstract then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): AsyncResult<TResult1 | TResult2>;
|
|
735
|
-
/**
|
|
736
|
-
* Run the provided onValueFunction if this {@link AsyncResult} is successful. The value or error
|
|
737
|
-
* contained by this {@link AsyncResult} will be contained by the returned {@link AsyncResult}.
|
|
738
|
-
* @param onValueFunction The function to run if this {@link AsyncResult} is successful.
|
|
739
|
-
*/
|
|
740
|
-
abstract onValue(onValueFunction: (value: T) => (void | Promise<void>)): AsyncResult<T>;
|
|
741
|
-
/**
|
|
742
|
-
* Run the provided catchFunction if this {@link AsyncResult} contains an error.
|
|
743
|
-
* @param catchFunction The function to run if an error is caught.
|
|
744
|
-
*/
|
|
745
|
-
abstract catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): AsyncResult<T | TResult>;
|
|
746
|
-
/**
|
|
747
|
-
* Run the provided catchFunction if this {@link AsyncResult} contains an error of the provided type.
|
|
748
|
-
* @param errorType The type of error to catch.
|
|
749
|
-
* @param catchFunction The function to run if the error is caught.
|
|
750
|
-
*/
|
|
751
|
-
abstract catch<TError, TResult = never>(errorType: Type<TError>, onrejected: (reason: TError) => (TResult | PromiseLike<TResult>)): AsyncResult<T | TResult>;
|
|
752
|
-
/**
|
|
753
|
-
* Run the provided onErrorFunction if this {@link AsyncResult} contains an error.
|
|
754
|
-
* @param onErrorFunction The function to run if an error is found.
|
|
755
|
-
*/
|
|
756
|
-
abstract onError(onErrorFunction: (reason: unknown) => (void | PromiseLike<void>)): AsyncResult<T>;
|
|
757
|
-
/**
|
|
758
|
-
* Run the provided onErrorFunction if this {@link AsyncResult} contains an error of the provided
|
|
759
|
-
* type.
|
|
760
|
-
* @param errorType The type of error to respond to.
|
|
761
|
-
* @param onErrorFunction The function to run if the error is found.
|
|
762
|
-
*/
|
|
763
|
-
abstract onError<TError>(errorType: Type<TError>, onErrorFunction: (reason: TError) => (void | PromiseLike<void>)): AsyncResult<T>;
|
|
764
|
-
/**
|
|
765
|
-
* Run the provided convertErrorFunction if this {@link AsyncResult} contains an error. The value
|
|
766
|
-
* returned from the convertErrorFunction will be the error for the returned {@link AsyncResult}.
|
|
767
|
-
* @param convertErrorFunction The function that will return the new error.
|
|
768
|
-
*/
|
|
769
|
-
abstract convertError(convertErrorFunction: (reason: unknown) => (unknown | PromiseLike<unknown>)): AsyncResult<T>;
|
|
770
|
-
/**
|
|
771
|
-
* Run the provided convertErrorFunction if this {@link AsyncResult} contains an error of the
|
|
772
|
-
* provided type. The value returned from the convertErrorFunction will be the error for the
|
|
773
|
-
* returned {@link AsyncResult}.
|
|
774
|
-
* @param errorType The type of error to respond to.
|
|
775
|
-
* @param convertErrorFunction The function that will return the new error.
|
|
776
|
-
*/
|
|
777
|
-
abstract convertError<TError>(errorType: Type<TError>, convertErrorFunction: (reason: TError) => (unknown | PromiseLike<unknown>)): AsyncResult<T>;
|
|
778
|
-
abstract finally(onfinally?: (() => (void | Promise<void>)) | null): AsyncResult<T>;
|
|
779
|
-
readonly abstract [Symbol.toStringTag]: string;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
declare class PromiseAsyncResult<T> implements AsyncResult<T> {
|
|
783
|
-
private readonly promise;
|
|
784
|
-
private constructor();
|
|
785
|
-
static create<T>(action: () => (T | Promise<T>)): PromiseAsyncResult<T>;
|
|
786
|
-
static create<T>(promise: Promise<T>): PromiseAsyncResult<T>;
|
|
787
|
-
static value<T>(value: T): PromiseAsyncResult<T>;
|
|
788
|
-
static error<T>(error: unknown): PromiseAsyncResult<T>;
|
|
789
|
-
static yield(): PromiseAsyncResult<void>;
|
|
790
|
-
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): PromiseAsyncResult<TResult1 | TResult2>;
|
|
791
|
-
onValue(onValueFunction: (value: T) => (void | Promise<void>)): PromiseAsyncResult<T>;
|
|
792
|
-
catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): PromiseAsyncResult<T | TResult>;
|
|
793
|
-
catch<TError, TResult = never>(errorType: Type<TError>, onrejected: (reason: TError) => (TResult | PromiseLike<TResult>)): PromiseAsyncResult<T | TResult>;
|
|
794
|
-
onError(onErrorFunction: (reason: unknown) => (void | PromiseLike<void>)): PromiseAsyncResult<T>;
|
|
795
|
-
onError<TError>(errorType: Type<TError>, onErrorFunction: (reason: TError) => (void | PromiseLike<void>)): PromiseAsyncResult<T>;
|
|
796
|
-
convertError(convertErrorFunction: (reason: unknown) => (unknown | PromiseLike<unknown>)): PromiseAsyncResult<T>;
|
|
797
|
-
convertError<TError>(errorType: Type<TError>, convertErrorFunction: (reason: TError) => (unknown | PromiseLike<unknown>)): PromiseAsyncResult<T>;
|
|
798
|
-
finally(onfinally?: (() => (void | Promise<void>)) | null): PromiseAsyncResult<T>;
|
|
799
|
-
readonly [Symbol.toStringTag]: string;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
27
|
/**
|
|
803
28
|
* A type that can be used to asynchronously iterate over a collection.
|
|
804
29
|
*/
|
|
805
|
-
declare abstract class AsyncIterator
|
|
806
|
-
static create<T>(iterator: JavascriptAsyncIterator<T>): AsyncIterator
|
|
30
|
+
declare abstract class AsyncIterator<T> {
|
|
31
|
+
static create<T>(iterator: JavascriptAsyncIterator<T>): AsyncIterator<T>;
|
|
807
32
|
/**
|
|
808
33
|
* Move to the next value in the collection. Return whether this {@link AsyncIterator} points to
|
|
809
34
|
* a value after the move.
|
|
@@ -829,19 +54,19 @@ declare abstract class AsyncIterator$1<T> {
|
|
|
829
54
|
/**
|
|
830
55
|
* Move the provided {@link AsyncIterator} to its first value if it hasn't started yet.
|
|
831
56
|
*/
|
|
832
|
-
static start<T, TIterator extends AsyncIterator
|
|
57
|
+
static start<T, TIterator extends AsyncIterator<T>>(iterator: TIterator): PromiseAsyncResult<TIterator>;
|
|
833
58
|
/**
|
|
834
59
|
* Get the current value from this {@link AsyncIterator} and advance this {@link AsyncIterator} to the
|
|
835
60
|
* next value.
|
|
836
61
|
*/
|
|
837
62
|
takeCurrent(): PromiseAsyncResult<T>;
|
|
838
|
-
static takeCurrent<T>(iterator: AsyncIterator
|
|
63
|
+
static takeCurrent<T>(iterator: AsyncIterator<T>): PromiseAsyncResult<T>;
|
|
839
64
|
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
840
65
|
/**
|
|
841
66
|
* Convert the provided {@link AsyncIterator} to a {@link IteratorToJavascriptIteratorAdapter}.
|
|
842
67
|
* @param iterator The {@link AsyncIterator} to convert.
|
|
843
68
|
*/
|
|
844
|
-
static [Symbol.asyncIterator]<T>(iterator: AsyncIterator
|
|
69
|
+
static [Symbol.asyncIterator]<T>(iterator: AsyncIterator<T>): JavascriptAsyncIterator<T>;
|
|
845
70
|
/**
|
|
846
71
|
* Get whether this {@link AsyncIterator} contains any values.
|
|
847
72
|
* Note: This may advance the {@link AsyncIterator} to the first value if it hasn't been
|
|
@@ -853,7 +78,7 @@ declare abstract class AsyncIterator$1<T> {
|
|
|
853
78
|
* Note: This may advance the {@link AsyncIterator} to the first value if it hasn't been
|
|
854
79
|
* started yet.
|
|
855
80
|
*/
|
|
856
|
-
static any<T>(iterator: AsyncIterator
|
|
81
|
+
static any<T>(iterator: AsyncIterator<T>): PromiseAsyncResult<boolean>;
|
|
857
82
|
/**
|
|
858
83
|
* Get the number of values in this {@link AsyncIterator}.
|
|
859
84
|
* Note: This will consume all of the values in this {@link AsyncIterator}.
|
|
@@ -863,7 +88,7 @@ declare abstract class AsyncIterator$1<T> {
|
|
|
863
88
|
* Get the number of values in the provided {@link AsyncIterator}.
|
|
864
89
|
* Note: This will consume all of the values in the provided {@link AsyncIterator}.
|
|
865
90
|
*/
|
|
866
|
-
static getCount<T>(iterator: AsyncIterator
|
|
91
|
+
static getCount<T>(iterator: AsyncIterator<T>): PromiseAsyncResult<number>;
|
|
867
92
|
/**
|
|
868
93
|
* Get all of the remaining values in this {@link AsyncIterator} in a {@link T} {@link Array}.
|
|
869
94
|
*/
|
|
@@ -872,35 +97,35 @@ declare abstract class AsyncIterator$1<T> {
|
|
|
872
97
|
* Get all of the remaining values in the provided {@link AsyncIterator} in a {@link T}
|
|
873
98
|
* {@link Array}.
|
|
874
99
|
*/
|
|
875
|
-
static toArray<T>(iterator: AsyncIterator
|
|
100
|
+
static toArray<T>(iterator: AsyncIterator<T>): PromiseAsyncResult<T[]>;
|
|
876
101
|
/**
|
|
877
102
|
* Get an {@link AsyncIterator} that will only return values that match the provided condition.
|
|
878
103
|
* @param condition The condition to run against each of the values in this {@link AsyncIterator}.
|
|
879
104
|
*/
|
|
880
|
-
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator
|
|
881
|
-
static where<T>(iterator: AsyncIterator
|
|
105
|
+
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator<T>;
|
|
106
|
+
static where<T>(iterator: AsyncIterator<T>, condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator<T>;
|
|
882
107
|
/**
|
|
883
108
|
* Get a {@link MapIterator} that will map all {@link T} values from this {@link AsyncIterator} to
|
|
884
109
|
* {@link TOutput} values.
|
|
885
110
|
* @param mapping The mapping that maps {@link T} values to {@link TOutput} values.
|
|
886
111
|
*/
|
|
887
|
-
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator
|
|
888
|
-
static map<T, TOutput>(iterator: AsyncIterator
|
|
112
|
+
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
113
|
+
static map<T, TOutput>(iterator: AsyncIterator<T>, mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
889
114
|
/**
|
|
890
115
|
* Get an {@link AsyncIterator} that will filter this {@link AsyncIterator} to only the values that are
|
|
891
116
|
* instances of {@link U} based on the provided type check {@link Function}.
|
|
892
117
|
* @param typeCheck The {@link Function} that will be used to determine if values are of type
|
|
893
118
|
* {@link U}.
|
|
894
119
|
*/
|
|
895
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator
|
|
896
|
-
static whereInstanceOf<T, U extends T>(iterator: AsyncIterator
|
|
120
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
121
|
+
static whereInstanceOf<T, U extends T>(iterator: AsyncIterator<T>, typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
897
122
|
/**
|
|
898
123
|
* Get an {@link AsyncIterator} that will filter this {@link AsyncIterator} to only the values that are
|
|
899
124
|
* instances of the provided {@link Type}.
|
|
900
125
|
* @param type The type of values to return from the new {@link AsyncIterator}.
|
|
901
126
|
*/
|
|
902
|
-
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator
|
|
903
|
-
static whereInstanceOfType<T, U extends T>(iterator: AsyncIterator
|
|
127
|
+
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator<U>;
|
|
128
|
+
static whereInstanceOfType<T, U extends T>(iterator: AsyncIterator<T>, type: Type<U>): AsyncIterator<U>;
|
|
904
129
|
/**
|
|
905
130
|
* If the condition function is undefined, then this function will return the first value in
|
|
906
131
|
* this {@link AsyncIterator}. If this condition function is provided, then this function will return
|
|
@@ -914,7 +139,7 @@ declare abstract class AsyncIterator$1<T> {
|
|
|
914
139
|
* the first value that matches the provided condition.
|
|
915
140
|
* @param iterator The {@link AsyncIterator} to get the first value from.
|
|
916
141
|
*/
|
|
917
|
-
static first<T>(iterator: AsyncIterator
|
|
142
|
+
static first<T>(iterator: AsyncIterator<T>, condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
918
143
|
/**
|
|
919
144
|
* If the condition function is undefined, then this function will return the last value in this
|
|
920
145
|
* {@link AsyncIterator}. If this condition function is provided, then this function will return the
|
|
@@ -928,26 +153,26 @@ declare abstract class AsyncIterator$1<T> {
|
|
|
928
153
|
* last value that matches the provided condition.
|
|
929
154
|
* @param iterator The {@link AsyncIterator} to get the last value from.
|
|
930
155
|
*/
|
|
931
|
-
static last<T>(iterator: AsyncIterator
|
|
156
|
+
static last<T>(iterator: AsyncIterator<T>, condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
932
157
|
/**
|
|
933
158
|
* Find the maximum value in the provided {@link AsyncIterator}.
|
|
934
159
|
* @param iterator The values to find the maximum of.
|
|
935
160
|
*/
|
|
936
|
-
static findMaximum<T extends Comparable<T>>(iterator: JavascriptAsyncIterator<T> | AsyncIterator
|
|
161
|
+
static findMaximum<T extends Comparable<T>>(iterator: JavascriptAsyncIterator<T> | AsyncIterator<T>): PromiseAsyncResult<T>;
|
|
937
162
|
/**
|
|
938
163
|
* Get a new {@link AsyncIterator} that wraps around this {@link AsyncIterator} and only
|
|
939
164
|
* returns a maximum number of values from this {@link AsyncIterator}.
|
|
940
165
|
* @param maximumToTake The maximum number of values to take from this {@link AsyncIterator}.
|
|
941
166
|
*/
|
|
942
|
-
take(maximumToTake: number): AsyncIterator
|
|
943
|
-
static take<T>(iterator: AsyncIterator
|
|
167
|
+
take(maximumToTake: number): AsyncIterator<T>;
|
|
168
|
+
static take<T>(iterator: AsyncIterator<T>, maximumToTake: number): AsyncIterator<T>;
|
|
944
169
|
/**
|
|
945
170
|
* Get a new {@link AsyncIterator} that wraps around this {@link AsyncIterator} and will skip the initial
|
|
946
171
|
* provided number of values before beginning to return values.
|
|
947
172
|
* @param maximumToSkip The maximum number of values to skip from this {@link AsyncIterator}.
|
|
948
173
|
*/
|
|
949
|
-
skip(maximumToSkip: number): AsyncIterator
|
|
950
|
-
static skip<T>(iterator: AsyncIterator
|
|
174
|
+
skip(maximumToSkip: number): AsyncIterator<T>;
|
|
175
|
+
static skip<T>(iterator: AsyncIterator<T>, maximumToSkip: number): AsyncIterator<T>;
|
|
951
176
|
}
|
|
952
177
|
|
|
953
178
|
/**
|
|
@@ -957,7 +182,7 @@ declare class AsyncIteratorToJavascriptAsyncIteratorAdapter<T> implements Javasc
|
|
|
957
182
|
private readonly iterator;
|
|
958
183
|
private hasStarted;
|
|
959
184
|
private constructor();
|
|
960
|
-
static create<T>(iterator: AsyncIterator
|
|
185
|
+
static create<T>(iterator: AsyncIterator<T>): AsyncIteratorToJavascriptAsyncIteratorAdapter<T>;
|
|
961
186
|
next(): Promise<JavascriptIteratorResult<T>>;
|
|
962
187
|
}
|
|
963
188
|
|
|
@@ -1003,7 +228,7 @@ declare class SyncDisposable implements Disposable {
|
|
|
1003
228
|
isDisposed(): boolean;
|
|
1004
229
|
}
|
|
1005
230
|
|
|
1006
|
-
declare abstract class List<T> implements Iterable
|
|
231
|
+
declare abstract class List<T> implements Iterable<T> {
|
|
1007
232
|
static create<T>(values?: JavascriptIterable<T>): List<T>;
|
|
1008
233
|
/**
|
|
1009
234
|
* Add the provided value to the end of this {@link List}.
|
|
@@ -1069,7 +294,7 @@ declare abstract class List<T> implements Iterable$1<T> {
|
|
|
1069
294
|
removeLast(): SyncResult<T>;
|
|
1070
295
|
static removeLast<T, TList extends List<T>>(list: TList): SyncResult<T>;
|
|
1071
296
|
abstract set(index: number, value: T): this;
|
|
1072
|
-
abstract iterate(): Iterator
|
|
297
|
+
abstract iterate(): Iterator<T>;
|
|
1073
298
|
abstract get(index: number): SyncResult<T>;
|
|
1074
299
|
toArray(): SyncResult<T[]>;
|
|
1075
300
|
static toArray<T>(list: List<T>): SyncResult<T[]>;
|
|
@@ -1081,16 +306,16 @@ declare abstract class List<T> implements Iterable$1<T> {
|
|
|
1081
306
|
static equals<T>(left: List<T>, right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1082
307
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
1083
308
|
static toString<T>(list: List<T>, toStringFunctions?: ToStringFunctions): string;
|
|
1084
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable
|
|
1085
|
-
static concatenate<T>(list: List<T>, ...toConcatenate: JavascriptIterable<T>[]): Iterable
|
|
1086
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
1087
|
-
static map<TInput, TOutput>(list: List<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
1088
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable
|
|
1089
|
-
static flatMap<TInput, TOutput>(list: List<TInput>, mapping: (value: TInput) => JavascriptIterable<TOutput>): Iterable
|
|
1090
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable
|
|
1091
|
-
static where<T>(list: List<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable
|
|
1092
|
-
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable
|
|
1093
|
-
static instanceOf<TInput, TOutput extends TInput>(list: List<TInput>, typeOrTypeCheck: Type<TOutput> | ((value: TInput) => value is TOutput)): Iterable
|
|
309
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
310
|
+
static concatenate<T>(list: List<T>, ...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
311
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
312
|
+
static map<TInput, TOutput>(list: List<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
313
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
314
|
+
static flatMap<TInput, TOutput>(list: List<TInput>, mapping: (value: TInput) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
315
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
316
|
+
static where<T>(list: List<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
317
|
+
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable<TOutput>;
|
|
318
|
+
static instanceOf<TInput, TOutput extends TInput>(list: List<TInput>, typeOrTypeCheck: Type<TOutput> | ((value: TInput) => value is TOutput)): Iterable<TOutput>;
|
|
1094
319
|
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
1095
320
|
static first<T>(list: List<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
1096
321
|
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
@@ -1118,18 +343,18 @@ declare class ByteList implements List<number> {
|
|
|
1118
343
|
removeFirst(): SyncResult<number>;
|
|
1119
344
|
removeLast(): SyncResult<number>;
|
|
1120
345
|
set(index: number, value: number): this;
|
|
1121
|
-
iterate(): Iterator
|
|
346
|
+
iterate(): Iterator<number>;
|
|
1122
347
|
get(index: number): SyncResult<number>;
|
|
1123
348
|
toArray(): SyncResult<number[]>;
|
|
1124
349
|
any(): SyncResult<boolean>;
|
|
1125
350
|
getCount(): SyncResult<number>;
|
|
1126
351
|
equals(right: JavascriptIterable<number>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1127
352
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
1128
|
-
concatenate(...toConcatenate: JavascriptIterable<number>[]): Iterable
|
|
1129
|
-
map<TOutput>(mapping: (value: number) => TOutput | SyncResult<TOutput>): Iterable
|
|
1130
|
-
flatMap<TOutput>(mapping: (value: number) => JavascriptIterable<TOutput>): Iterable
|
|
1131
|
-
where(condition: (value: number) => (boolean | SyncResult<boolean>)): Iterable
|
|
1132
|
-
instanceOf<TOutput extends number>(typeOrTypeCheck: Type<TOutput> | ((value: number) => value is TOutput)): Iterable
|
|
353
|
+
concatenate(...toConcatenate: JavascriptIterable<number>[]): Iterable<number>;
|
|
354
|
+
map<TOutput>(mapping: (value: number) => TOutput | SyncResult<TOutput>): Iterable<TOutput>;
|
|
355
|
+
flatMap<TOutput>(mapping: (value: number) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
356
|
+
where(condition: (value: number) => (boolean | SyncResult<boolean>)): Iterable<number>;
|
|
357
|
+
instanceOf<TOutput extends number>(typeOrTypeCheck: Type<TOutput> | ((value: number) => value is TOutput)): Iterable<TOutput>;
|
|
1133
358
|
first(condition?: ((value: number) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<number>;
|
|
1134
359
|
last(condition?: ((value: number) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<number>;
|
|
1135
360
|
contains(value: number, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
@@ -1217,7 +442,7 @@ declare class CharacterList implements List<string> {
|
|
|
1217
442
|
insert(index: number, value: string): this;
|
|
1218
443
|
removeAt(index: number): SyncResult<string>;
|
|
1219
444
|
set(index: number, value: string): this;
|
|
1220
|
-
iterate(): Iterator
|
|
445
|
+
iterate(): Iterator<string>;
|
|
1221
446
|
get(index: number): SyncResult<string>;
|
|
1222
447
|
add(value: string): this;
|
|
1223
448
|
addAll(values: JavascriptIterable<string>): this;
|
|
@@ -1229,11 +454,11 @@ declare class CharacterList implements List<string> {
|
|
|
1229
454
|
any(): SyncResult<boolean>;
|
|
1230
455
|
equals(right: JavascriptIterable<string>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1231
456
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
1232
|
-
concatenate(...toConcatenate: JavascriptIterable<string>[]): Iterable
|
|
1233
|
-
map<TOutput>(mapping: (value: string) => TOutput | SyncResult<TOutput>): Iterable
|
|
1234
|
-
flatMap<TOutput>(mapping: (value: string) => JavascriptIterable<TOutput>): Iterable
|
|
1235
|
-
where(condition: (value: string) => (boolean | SyncResult<boolean>)): Iterable
|
|
1236
|
-
instanceOf<TOutput extends string>(typeOrTypeCheck: Type<TOutput> | ((value: string) => value is TOutput)): Iterable
|
|
457
|
+
concatenate(...toConcatenate: JavascriptIterable<string>[]): Iterable<string>;
|
|
458
|
+
map<TOutput>(mapping: (value: string) => TOutput | SyncResult<TOutput>): Iterable<TOutput>;
|
|
459
|
+
flatMap<TOutput>(mapping: (value: string) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
460
|
+
where(condition: (value: string) => (boolean | SyncResult<boolean>)): Iterable<string>;
|
|
461
|
+
instanceOf<TOutput extends string>(typeOrTypeCheck: Type<TOutput> | ((value: string) => value is TOutput)): Iterable<TOutput>;
|
|
1237
462
|
first(condition?: (value: string) => (boolean | SyncResult<boolean>)): SyncResult<string>;
|
|
1238
463
|
last(condition?: (value: string) => (boolean | SyncResult<boolean>)): SyncResult<string>;
|
|
1239
464
|
contains(value: string, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
@@ -1264,23 +489,6 @@ declare abstract class CharacterReadStream {
|
|
|
1264
489
|
static readLine(readStream: CharacterReadStream): AsyncResult<string>;
|
|
1265
490
|
}
|
|
1266
491
|
|
|
1267
|
-
declare abstract class CharacterWriteStream {
|
|
1268
|
-
/**
|
|
1269
|
-
* Write the provided text to this {@link CharacterWriteStream}.
|
|
1270
|
-
* @param text The text to write.
|
|
1271
|
-
* @returns The number of characters that were written.
|
|
1272
|
-
*/
|
|
1273
|
-
abstract writeString(text: string): AsyncResult<number>;
|
|
1274
|
-
/**
|
|
1275
|
-
* Write the provided text (if provided) and then write a newline character sequence to this
|
|
1276
|
-
* {@link CharacterWriteStream}.
|
|
1277
|
-
* @param text The optional text to write before the newline character sequence.
|
|
1278
|
-
* @returns The number of characters that were written.
|
|
1279
|
-
*/
|
|
1280
|
-
writeLine(text?: string): AsyncResult<number>;
|
|
1281
|
-
static writeLine(writeStream: CharacterWriteStream, text?: string): AsyncResult<number>;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
492
|
/**
|
|
1285
493
|
* A {@link CharacterReadStream} and {@link CharacterWriteStream} implementation that is implemented using a
|
|
1286
494
|
* {@link CharacterList}.
|
|
@@ -1303,7 +511,7 @@ declare class CharacterListStream implements CharacterReadStream, CharacterWrite
|
|
|
1303
511
|
readLine(): AsyncResult<string>;
|
|
1304
512
|
}
|
|
1305
513
|
|
|
1306
|
-
declare class CharacterReadStreamAsyncIterator implements AsyncIterator
|
|
514
|
+
declare class CharacterReadStreamAsyncIterator implements AsyncIterator<string> {
|
|
1307
515
|
private readonly readStream;
|
|
1308
516
|
private current;
|
|
1309
517
|
private started;
|
|
@@ -1318,14 +526,14 @@ declare class CharacterReadStreamAsyncIterator implements AsyncIterator$1<string
|
|
|
1318
526
|
any(): PromiseAsyncResult<boolean>;
|
|
1319
527
|
getCount(): PromiseAsyncResult<number>;
|
|
1320
528
|
toArray(): PromiseAsyncResult<string[]>;
|
|
1321
|
-
where(condition: (value: string) => boolean | PromiseLike<boolean>): AsyncIterator
|
|
1322
|
-
map<TOutput>(mapping: (value: string) => (TOutput | PromiseLike<TOutput>)): AsyncIterator
|
|
1323
|
-
whereInstanceOf<U extends string>(typeCheck: (value: string) => value is U): AsyncIterator
|
|
1324
|
-
whereInstanceOfType<U extends string>(type: Type<U>): AsyncIterator
|
|
529
|
+
where(condition: (value: string) => boolean | PromiseLike<boolean>): AsyncIterator<string>;
|
|
530
|
+
map<TOutput>(mapping: (value: string) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
531
|
+
whereInstanceOf<U extends string>(typeCheck: (value: string) => value is U): AsyncIterator<U>;
|
|
532
|
+
whereInstanceOfType<U extends string>(type: Type<U>): AsyncIterator<U>;
|
|
1325
533
|
first(condition?: (value: string) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<string>;
|
|
1326
534
|
last(condition?: (value: string) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<string>;
|
|
1327
|
-
take(maximumToTake: number): AsyncIterator
|
|
1328
|
-
skip(maximumToSkip: number): AsyncIterator
|
|
535
|
+
take(maximumToTake: number): AsyncIterator<string>;
|
|
536
|
+
skip(maximumToSkip: number): AsyncIterator<string>;
|
|
1329
537
|
[Symbol.asyncIterator](): JavascriptAsyncIterator<string>;
|
|
1330
538
|
}
|
|
1331
539
|
|
|
@@ -1430,28 +638,28 @@ declare abstract class Comparer<TLeft, TRight = TLeft> {
|
|
|
1430
638
|
static compareNumbers(left: number | undefined | null, right: number | undefined | null): Comparison;
|
|
1431
639
|
}
|
|
1432
640
|
|
|
1433
|
-
declare class ConcatenateIterable<T> implements Iterable
|
|
641
|
+
declare class ConcatenateIterable<T> implements Iterable<T> {
|
|
1434
642
|
private readonly innerIterables;
|
|
1435
643
|
private constructor();
|
|
1436
|
-
static create<T>(innerIterable: Iterable
|
|
1437
|
-
iterate(): Iterator
|
|
644
|
+
static create<T>(innerIterable: Iterable<T>, ...toConcatenate: JavascriptIterable<T>[]): ConcatenateIterable<T>;
|
|
645
|
+
iterate(): Iterator<T>;
|
|
1438
646
|
toArray(): SyncResult<T[]>;
|
|
1439
647
|
any(): SyncResult<boolean>;
|
|
1440
648
|
getCount(): SyncResult<number>;
|
|
1441
649
|
equals(right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1442
650
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
1443
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable
|
|
1444
|
-
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterable
|
|
1445
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable
|
|
1446
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable
|
|
1447
|
-
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable
|
|
651
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
652
|
+
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterable<TOutput>;
|
|
653
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
654
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
655
|
+
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable<TOutput>;
|
|
1448
656
|
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
1449
657
|
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
1450
658
|
contains(value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1451
659
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
1452
660
|
}
|
|
1453
661
|
|
|
1454
|
-
declare class ConcatenateIterator<T> implements Iterator
|
|
662
|
+
declare class ConcatenateIterator<T> implements Iterator<T> {
|
|
1455
663
|
private readonly innerIterators;
|
|
1456
664
|
private constructor();
|
|
1457
665
|
static create<T>(...toConcatenate: JavascriptIterable<T>[]): ConcatenateIterator<T>;
|
|
@@ -1464,16 +672,16 @@ declare class ConcatenateIterator<T> implements Iterator$1<T> {
|
|
|
1464
672
|
any(): SyncResult<boolean>;
|
|
1465
673
|
getCount(): SyncResult<number>;
|
|
1466
674
|
toArray(): SyncResult<T[]>;
|
|
1467
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator
|
|
1468
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator
|
|
1469
|
-
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterator
|
|
1470
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator
|
|
1471
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator
|
|
1472
|
-
whereInstanceOfType<U extends T>(type: Type<U>): Iterator
|
|
675
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
676
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator<T>;
|
|
677
|
+
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterator<TOutput>;
|
|
678
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
679
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
680
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
1473
681
|
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
1474
682
|
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
1475
|
-
take(maximumToTake: number): Iterator
|
|
1476
|
-
skip(maximumToSkip: number): Iterator
|
|
683
|
+
take(maximumToTake: number): Iterator<T>;
|
|
684
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
1477
685
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
1478
686
|
}
|
|
1479
687
|
|
|
@@ -1829,7 +1037,7 @@ declare class MutableHttpHeaders implements HttpHeaders {
|
|
|
1829
1037
|
private readonly headers;
|
|
1830
1038
|
private constructor();
|
|
1831
1039
|
static create(headers?: JavascriptIterable<HttpHeader>): MutableHttpHeaders;
|
|
1832
|
-
iterate(): Iterator
|
|
1040
|
+
iterate(): Iterator<HttpHeader>;
|
|
1833
1041
|
get(headerName: string): SyncResult<HttpHeader>;
|
|
1834
1042
|
getValue(headerName: string): SyncResult<string>;
|
|
1835
1043
|
/**
|
|
@@ -1849,11 +1057,11 @@ declare class MutableHttpHeaders implements HttpHeaders {
|
|
|
1849
1057
|
any(): SyncResult<boolean>;
|
|
1850
1058
|
equals(right: JavascriptIterable<HttpHeader>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1851
1059
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
1852
|
-
concatenate(...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable
|
|
1853
|
-
map<TOutput>(mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
1854
|
-
flatMap<TOutput>(mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable
|
|
1855
|
-
where(condition: (value: HttpHeader) => (boolean | SyncResult<boolean>)): Iterable
|
|
1856
|
-
instanceOf<TOutput extends HttpHeader>(typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable
|
|
1060
|
+
concatenate(...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable<HttpHeader>;
|
|
1061
|
+
map<TOutput>(mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1062
|
+
flatMap<TOutput>(mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1063
|
+
where(condition: (value: HttpHeader) => (boolean | SyncResult<boolean>)): Iterable<HttpHeader>;
|
|
1064
|
+
instanceOf<TOutput extends HttpHeader>(typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable<TOutput>;
|
|
1857
1065
|
first(condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
1858
1066
|
last(condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
1859
1067
|
[Symbol.iterator](): JavascriptIterator<HttpHeader>;
|
|
@@ -1863,7 +1071,7 @@ declare class MutableHttpHeaders implements HttpHeaders {
|
|
|
1863
1071
|
/**
|
|
1864
1072
|
* A collection of {@link HttpHeader}s.
|
|
1865
1073
|
*/
|
|
1866
|
-
declare abstract class HttpHeaders implements Iterable
|
|
1074
|
+
declare abstract class HttpHeaders implements Iterable<HttpHeader> {
|
|
1867
1075
|
static readonly contentTypeHeaderName: string;
|
|
1868
1076
|
static create(headers?: JavascriptIterable<HttpHeader>): MutableHttpHeaders;
|
|
1869
1077
|
/**
|
|
@@ -1884,7 +1092,7 @@ declare abstract class HttpHeaders implements Iterable$1<HttpHeader> {
|
|
|
1884
1092
|
* Get an {@link Iterator} that can be used to iterate through the {@link HttpHeader}s in this
|
|
1885
1093
|
* collection.
|
|
1886
1094
|
*/
|
|
1887
|
-
abstract iterate(): Iterator
|
|
1095
|
+
abstract iterate(): Iterator<HttpHeader>;
|
|
1888
1096
|
/**
|
|
1889
1097
|
* Get the {@link HttpHeader}s in this {@link HttpHeaders} object as an array.
|
|
1890
1098
|
*/
|
|
@@ -1898,16 +1106,16 @@ declare abstract class HttpHeaders implements Iterable$1<HttpHeader> {
|
|
|
1898
1106
|
static equals(headers: HttpHeaders, right: JavascriptIterable<HttpHeader>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1899
1107
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
1900
1108
|
static toString(headers: HttpHeaders, toStringFunctions?: ToStringFunctions): string;
|
|
1901
|
-
concatenate(...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable
|
|
1902
|
-
static concatenate(headers: HttpHeaders, ...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable
|
|
1903
|
-
map<TOutput>(mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
1904
|
-
static map<TOutput>(headers: HttpHeaders, mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
1905
|
-
flatMap<TOutput>(mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable
|
|
1906
|
-
static flatMap<TOutput>(headers: HttpHeaders, mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable
|
|
1907
|
-
where(condition: (value: HttpHeader) => boolean): Iterable
|
|
1908
|
-
static where(headers: HttpHeaders, condition: (value: HttpHeader) => (boolean | SyncResult<boolean>)): Iterable
|
|
1909
|
-
instanceOf<TOutput extends HttpHeader>(typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable
|
|
1910
|
-
static instanceOf<TOutput extends HttpHeader>(headers: HttpHeaders, typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable
|
|
1109
|
+
concatenate(...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable<HttpHeader>;
|
|
1110
|
+
static concatenate(headers: HttpHeaders, ...toConcatenate: JavascriptIterable<HttpHeader>[]): Iterable<HttpHeader>;
|
|
1111
|
+
map<TOutput>(mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1112
|
+
static map<TOutput>(headers: HttpHeaders, mapping: (value: HttpHeader) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1113
|
+
flatMap<TOutput>(mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1114
|
+
static flatMap<TOutput>(headers: HttpHeaders, mapping: (value: HttpHeader) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1115
|
+
where(condition: (value: HttpHeader) => boolean): Iterable<HttpHeader>;
|
|
1116
|
+
static where(headers: HttpHeaders, condition: (value: HttpHeader) => (boolean | SyncResult<boolean>)): Iterable<HttpHeader>;
|
|
1117
|
+
instanceOf<TOutput extends HttpHeader>(typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable<TOutput>;
|
|
1118
|
+
static instanceOf<TOutput extends HttpHeader>(headers: HttpHeaders, typeOrTypeCheck: Type<TOutput> | ((value: HttpHeader) => value is TOutput)): Iterable<TOutput>;
|
|
1911
1119
|
first(condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
1912
1120
|
static first(headers: HttpHeaders, condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
1913
1121
|
last(condition?: (value: HttpHeader) => (boolean | SyncResult<boolean>)): SyncResult<HttpHeader>;
|
|
@@ -2271,11 +1479,11 @@ declare abstract class SearchControl<TVisit, TResult> {
|
|
|
2271
1479
|
abstract break(): never;
|
|
2272
1480
|
}
|
|
2273
1481
|
|
|
2274
|
-
declare function depthFirstSearch<TVisit, TResult>(initialToVisit: JavascriptIterable<TVisit>, searchAction: (searchControl: SearchControl<TVisit, TResult>, current: TVisit) => void): Iterator
|
|
1482
|
+
declare function depthFirstSearch<TVisit, TResult>(initialToVisit: JavascriptIterable<TVisit>, searchAction: (searchControl: SearchControl<TVisit, TResult>, current: TVisit) => void): Iterator<TResult>;
|
|
2275
1483
|
declare function depthFirstSearch<TVisit, TResult>(parameters: {
|
|
2276
1484
|
initialToVisit: JavascriptIterable<TVisit>;
|
|
2277
1485
|
searchAction: (searchControl: SearchControl<TVisit, TResult>, current: TVisit) => void;
|
|
2278
|
-
}): Iterator
|
|
1486
|
+
}): Iterator<TResult>;
|
|
2279
1487
|
|
|
2280
1488
|
/**
|
|
2281
1489
|
* An {@link Error} that is created when something is empty.
|
|
@@ -2312,35 +1520,35 @@ declare class FetchHttpClient implements HttpClient {
|
|
|
2312
1520
|
static convertMethod(method: HttpMethod): string;
|
|
2313
1521
|
}
|
|
2314
1522
|
|
|
2315
|
-
declare class FlatMapIterable<TInput, TOutput> implements Iterable
|
|
1523
|
+
declare class FlatMapIterable<TInput, TOutput> implements Iterable<TOutput> {
|
|
2316
1524
|
private readonly innerIterable;
|
|
2317
1525
|
private readonly mapping;
|
|
2318
1526
|
private constructor();
|
|
2319
|
-
static create<TInput, TOutput>(innerIterable: Iterable
|
|
2320
|
-
iterate(): Iterator
|
|
1527
|
+
static create<TInput, TOutput>(innerIterable: Iterable<TInput>, mapping: (value: TInput) => JavascriptIterable<TOutput>): FlatMapIterable<TInput, TOutput>;
|
|
1528
|
+
iterate(): Iterator<TOutput>;
|
|
2321
1529
|
toArray(): SyncResult<TOutput[]>;
|
|
2322
1530
|
any(): SyncResult<boolean>;
|
|
2323
1531
|
getCount(): SyncResult<number>;
|
|
2324
1532
|
equals(right: JavascriptIterable<TOutput>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2325
1533
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
2326
|
-
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterable
|
|
2327
|
-
map<TOutput2>(mapping: (value: TOutput) => TOutput2 | SyncResult<TOutput2>): Iterable
|
|
2328
|
-
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterable
|
|
2329
|
-
where(condition: (value: TOutput) => (boolean | SyncResult<boolean>)): Iterable
|
|
2330
|
-
instanceOf<TOutput2 extends TOutput>(typeOrTypeCheck: Type<TOutput2> | ((value: TOutput2) => value is TOutput2)): Iterable
|
|
1534
|
+
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterable<TOutput>;
|
|
1535
|
+
map<TOutput2>(mapping: (value: TOutput) => TOutput2 | SyncResult<TOutput2>): Iterable<TOutput2>;
|
|
1536
|
+
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterable<TOutput2>;
|
|
1537
|
+
where(condition: (value: TOutput) => (boolean | SyncResult<boolean>)): Iterable<TOutput>;
|
|
1538
|
+
instanceOf<TOutput2 extends TOutput>(typeOrTypeCheck: Type<TOutput2> | ((value: TOutput2) => value is TOutput2)): Iterable<TOutput2>;
|
|
2331
1539
|
first(condition?: ((value: TOutput) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<TOutput>;
|
|
2332
1540
|
last(condition?: ((value: TOutput) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<TOutput>;
|
|
2333
1541
|
contains(value: TOutput, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2334
1542
|
[Symbol.iterator](): JavascriptIterator<TOutput>;
|
|
2335
1543
|
}
|
|
2336
1544
|
|
|
2337
|
-
declare class FlatMapIterator<TInput, TOutput> implements Iterator
|
|
1545
|
+
declare class FlatMapIterator<TInput, TOutput> implements Iterator<TOutput> {
|
|
2338
1546
|
private readonly innerIterator;
|
|
2339
1547
|
private readonly mapping;
|
|
2340
1548
|
private mappingIterator;
|
|
2341
1549
|
private started;
|
|
2342
1550
|
private constructor();
|
|
2343
|
-
static create<TInput, TOutput>(innerIterator: Iterator
|
|
1551
|
+
static create<TInput, TOutput>(innerIterator: Iterator<TInput>, mapping: (value: TInput) => JavascriptIterable<TOutput>): FlatMapIterator<TInput, TOutput>;
|
|
2344
1552
|
next(): SyncResult<boolean>;
|
|
2345
1553
|
hasStarted(): boolean;
|
|
2346
1554
|
hasCurrent(): boolean;
|
|
@@ -2350,16 +1558,16 @@ declare class FlatMapIterator<TInput, TOutput> implements Iterator$1<TOutput> {
|
|
|
2350
1558
|
any(): SyncResult<boolean>;
|
|
2351
1559
|
getCount(): SyncResult<number>;
|
|
2352
1560
|
toArray(): SyncResult<TOutput[]>;
|
|
2353
|
-
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterator
|
|
2354
|
-
where(condition: (value: TOutput) => (boolean | SyncResult<boolean>)): Iterator
|
|
2355
|
-
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterator
|
|
2356
|
-
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterator
|
|
2357
|
-
whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): Iterator
|
|
2358
|
-
whereInstanceOfType<U extends TOutput>(type: Type<U>): Iterator
|
|
1561
|
+
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterator<TOutput>;
|
|
1562
|
+
where(condition: (value: TOutput) => (boolean | SyncResult<boolean>)): Iterator<TOutput>;
|
|
1563
|
+
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterator<TOutput2>;
|
|
1564
|
+
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterator<TOutput2>;
|
|
1565
|
+
whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): Iterator<U>;
|
|
1566
|
+
whereInstanceOfType<U extends TOutput>(type: Type<U>): Iterator<U>;
|
|
2359
1567
|
first(condition?: ((value: TOutput) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<TOutput>;
|
|
2360
1568
|
last(condition?: ((value: TOutput) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<TOutput>;
|
|
2361
|
-
take(maximumToTake: number): Iterator
|
|
2362
|
-
skip(maximumToSkip: number): Iterator
|
|
1569
|
+
take(maximumToTake: number): Iterator<TOutput>;
|
|
1570
|
+
skip(maximumToSkip: number): Iterator<TOutput>;
|
|
2363
1571
|
[Symbol.iterator](): JavascriptIterator<TOutput>;
|
|
2364
1572
|
}
|
|
2365
1573
|
|
|
@@ -2386,7 +1594,7 @@ interface GeneratorControl<T> {
|
|
|
2386
1594
|
*/
|
|
2387
1595
|
getCurrent(): T;
|
|
2388
1596
|
}
|
|
2389
|
-
declare class Generator<T> implements Iterator
|
|
1597
|
+
declare class Generator<T> implements Iterator<T> {
|
|
2390
1598
|
private readonly control;
|
|
2391
1599
|
private readonly generatorAction;
|
|
2392
1600
|
private started;
|
|
@@ -2401,16 +1609,16 @@ declare class Generator<T> implements Iterator$1<T> {
|
|
|
2401
1609
|
any(): SyncResult<boolean>;
|
|
2402
1610
|
getCount(): SyncResult<number>;
|
|
2403
1611
|
toArray(): SyncResult<T[]>;
|
|
2404
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator
|
|
2405
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator
|
|
2406
|
-
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterator
|
|
2407
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator
|
|
2408
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator
|
|
2409
|
-
whereInstanceOfType<U extends T>(type: Type<U>): Iterator
|
|
1612
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
1613
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterator<T>;
|
|
1614
|
+
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterator<TOutput>;
|
|
1615
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
1616
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
1617
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
2410
1618
|
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
2411
1619
|
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
2412
|
-
take(maximumToTake: number): Iterator
|
|
2413
|
-
skip(maximumToSkip: number): Iterator
|
|
1620
|
+
take(maximumToTake: number): Iterator<T>;
|
|
1621
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
2414
1622
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
2415
1623
|
}
|
|
2416
1624
|
|
|
@@ -2434,7 +1642,7 @@ declare class IteratorToJavascriptIteratorAdapter<T> implements JavascriptIterat
|
|
|
2434
1642
|
private readonly iterator;
|
|
2435
1643
|
private hasStarted;
|
|
2436
1644
|
private constructor();
|
|
2437
|
-
static create<T>(iterator: Iterator
|
|
1645
|
+
static create<T>(iterator: Iterator<T>): IteratorToJavascriptIteratorAdapter<T>;
|
|
2438
1646
|
next(): JavascriptIteratorResult<T>;
|
|
2439
1647
|
}
|
|
2440
1648
|
|
|
@@ -2443,7 +1651,7 @@ declare class JavascriptArrayList<T> implements List<T> {
|
|
|
2443
1651
|
private constructor();
|
|
2444
1652
|
static create<T>(values?: JavascriptIterable<T>): JavascriptArrayList<T>;
|
|
2445
1653
|
set(index: number, value: T): this;
|
|
2446
|
-
iterate(): Iterator
|
|
1654
|
+
iterate(): Iterator<T>;
|
|
2447
1655
|
getCount(): SyncResult<number>;
|
|
2448
1656
|
get(index: number): SyncResult<T>;
|
|
2449
1657
|
insert(index: number, value: T): this;
|
|
@@ -2458,18 +1666,18 @@ declare class JavascriptArrayList<T> implements List<T> {
|
|
|
2458
1666
|
any(): SyncResult<boolean>;
|
|
2459
1667
|
equals(right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2460
1668
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
2461
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable
|
|
2462
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
2463
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable
|
|
2464
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable
|
|
2465
|
-
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable
|
|
1669
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
1670
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1671
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1672
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
1673
|
+
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable<TOutput>;
|
|
2466
1674
|
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
2467
1675
|
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
2468
1676
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
2469
1677
|
contains(value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2470
1678
|
}
|
|
2471
1679
|
|
|
2472
|
-
declare class JavascriptAsyncIteratorToAsyncIteratorAdapter<T> implements AsyncIterator
|
|
1680
|
+
declare class JavascriptAsyncIteratorToAsyncIteratorAdapter<T> implements AsyncIterator<T> {
|
|
2473
1681
|
private readonly javascriptIterator;
|
|
2474
1682
|
private javascriptIteratorResult?;
|
|
2475
1683
|
private constructor();
|
|
@@ -2483,18 +1691,18 @@ declare class JavascriptAsyncIteratorToAsyncIteratorAdapter<T> implements AsyncI
|
|
|
2483
1691
|
any(): PromiseAsyncResult<boolean>;
|
|
2484
1692
|
getCount(): PromiseAsyncResult<number>;
|
|
2485
1693
|
toArray(): PromiseAsyncResult<T[]>;
|
|
2486
|
-
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator
|
|
1694
|
+
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
2487
1695
|
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
2488
1696
|
first(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
2489
1697
|
last(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
2490
|
-
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator
|
|
2491
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator
|
|
2492
|
-
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator
|
|
2493
|
-
take(maximumToTake: number): AsyncIterator
|
|
2494
|
-
skip(maximumToSkip: number): AsyncIterator
|
|
1698
|
+
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator<T>;
|
|
1699
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
1700
|
+
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator<U>;
|
|
1701
|
+
take(maximumToTake: number): AsyncIterator<T>;
|
|
1702
|
+
skip(maximumToSkip: number): AsyncIterator<T>;
|
|
2495
1703
|
}
|
|
2496
1704
|
|
|
2497
|
-
declare class JavascriptIteratorToIteratorAdapter<T> implements Iterator
|
|
1705
|
+
declare class JavascriptIteratorToIteratorAdapter<T> implements Iterator<T> {
|
|
2498
1706
|
private readonly javascriptIterator;
|
|
2499
1707
|
private javascriptIteratorResult?;
|
|
2500
1708
|
private constructor();
|
|
@@ -2508,17 +1716,17 @@ declare class JavascriptIteratorToIteratorAdapter<T> implements Iterator$1<T> {
|
|
|
2508
1716
|
any(): SyncResult<boolean>;
|
|
2509
1717
|
getCount(): SyncResult<number>;
|
|
2510
1718
|
toArray(): SyncResult<T[]>;
|
|
2511
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator
|
|
2512
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator
|
|
2513
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator
|
|
1719
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
1720
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator<TOutput>;
|
|
1721
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
2514
1722
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
2515
1723
|
first(condition?: (value: T) => boolean): SyncResult<T>;
|
|
2516
1724
|
last(): SyncResult<T>;
|
|
2517
|
-
where(condition: (value: T) => boolean): Iterator
|
|
2518
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator
|
|
2519
|
-
whereInstanceOfType<U extends T>(type: Type<U>): Iterator
|
|
2520
|
-
take(maximumToTake: number): Iterator
|
|
2521
|
-
skip(maximumToSkip: number): Iterator
|
|
1725
|
+
where(condition: (value: T) => boolean): Iterator<T>;
|
|
1726
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
1727
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
1728
|
+
take(maximumToTake: number): Iterator<T>;
|
|
1729
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
2522
1730
|
}
|
|
2523
1731
|
|
|
2524
1732
|
/**
|
|
@@ -2529,7 +1737,7 @@ declare function isMutableMap(value: unknown): value is MutableMap<unknown, unkn
|
|
|
2529
1737
|
/**
|
|
2530
1738
|
* A type that maps {@link TKey} values to {@link TValue} values.
|
|
2531
1739
|
*/
|
|
2532
|
-
declare abstract class MutableMap<TKey, TValue> implements Map
|
|
1740
|
+
declare abstract class MutableMap<TKey, TValue> implements Map<TKey, TValue> {
|
|
2533
1741
|
/**
|
|
2534
1742
|
* Create a new instance of the default {@link Map} implementation.
|
|
2535
1743
|
*/
|
|
@@ -2537,13 +1745,13 @@ declare abstract class MutableMap<TKey, TValue> implements Map$1<TKey, TValue> {
|
|
|
2537
1745
|
/**
|
|
2538
1746
|
* Iterate over the entries in this {@link MutableMap}.
|
|
2539
1747
|
*/
|
|
2540
|
-
abstract iterate(): Iterator
|
|
1748
|
+
abstract iterate(): Iterator<MapEntry<TKey, TValue>>;
|
|
2541
1749
|
any(): SyncResult<boolean>;
|
|
2542
1750
|
static any<TKey, TValue>(map: MutableMap<TKey, TValue>): SyncResult<boolean>;
|
|
2543
1751
|
toArray(): SyncResult<MapEntry<TKey, TValue>[]>;
|
|
2544
1752
|
static toArray<TKey, TValue>(map: MutableMap<TKey, TValue>): SyncResult<MapEntry<TKey, TValue>[]>;
|
|
2545
|
-
equals(right: Iterable
|
|
2546
|
-
static equals<TKey, TValue>(left: MutableMap<TKey, TValue>, right: Iterable
|
|
1753
|
+
equals(right: Iterable<MapEntry<TKey, TValue>>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1754
|
+
static equals<TKey, TValue>(left: MutableMap<TKey, TValue>, right: Iterable<MapEntry<TKey, TValue>>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2547
1755
|
/**
|
|
2548
1756
|
* Get the {@link String} representation of this {@link MutableMap}.
|
|
2549
1757
|
*/
|
|
@@ -2552,16 +1760,16 @@ declare abstract class MutableMap<TKey, TValue> implements Map$1<TKey, TValue> {
|
|
|
2552
1760
|
* Get the {@link String} representation of the provided {@link MutableMap}.
|
|
2553
1761
|
*/
|
|
2554
1762
|
static toString<TKey, TValue>(map: MutableMap<TKey, TValue>, toStringFunctions?: ToStringFunctions): string;
|
|
2555
|
-
concatenate(...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable
|
|
2556
|
-
static concatenate<TKey, TValue>(map: MutableMap<TKey, TValue>, ...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable
|
|
2557
|
-
map<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
2558
|
-
static map<TKey, TValue, TOutput>(map: MutableMap<TKey, TValue>, mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
2559
|
-
flatMap<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable
|
|
2560
|
-
static flatMap<TKey, TValue, TOutput>(map: MutableMap<TKey, TValue>, mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable
|
|
2561
|
-
where(condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable
|
|
2562
|
-
static where<TKey, TValue>(map: MutableMap<TKey, TValue>, condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable
|
|
2563
|
-
instanceOf<T extends MapEntry<TKey, TValue>>(typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable
|
|
2564
|
-
static instanceOf<TKey, TValue, T extends MapEntry<TKey, TValue>>(map: MutableMap<TKey, TValue>, typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable
|
|
1763
|
+
concatenate(...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable<MapEntry<TKey, TValue>>;
|
|
1764
|
+
static concatenate<TKey, TValue>(map: MutableMap<TKey, TValue>, ...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable<MapEntry<TKey, TValue>>;
|
|
1765
|
+
map<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1766
|
+
static map<TKey, TValue, TOutput>(map: MutableMap<TKey, TValue>, mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1767
|
+
flatMap<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1768
|
+
static flatMap<TKey, TValue, TOutput>(map: MutableMap<TKey, TValue>, mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1769
|
+
where(condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable<MapEntry<TKey, TValue>>;
|
|
1770
|
+
static where<TKey, TValue>(map: MutableMap<TKey, TValue>, condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable<MapEntry<TKey, TValue>>;
|
|
1771
|
+
instanceOf<T extends MapEntry<TKey, TValue>>(typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable<T>;
|
|
1772
|
+
static instanceOf<TKey, TValue, T extends MapEntry<TKey, TValue>>(map: MutableMap<TKey, TValue>, typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable<T>;
|
|
2565
1773
|
[Symbol.iterator](): JavascriptIterator<MapEntry<TKey, TValue>>;
|
|
2566
1774
|
static [Symbol.iterator]<TKey, TValue>(map: MutableMap<TKey, TValue>): JavascriptIterator<MapEntry<TKey, TValue>>;
|
|
2567
1775
|
/**
|
|
@@ -2619,21 +1827,21 @@ declare abstract class MutableMap<TKey, TValue> implements Map$1<TKey, TValue> {
|
|
|
2619
1827
|
/**
|
|
2620
1828
|
* Iterate over the keys in this {@link MutableMap}.
|
|
2621
1829
|
*/
|
|
2622
|
-
iterateKeys(): Iterator
|
|
1830
|
+
iterateKeys(): Iterator<TKey>;
|
|
2623
1831
|
/**
|
|
2624
1832
|
* Iterate over the keys in the {@link MutableMap}.
|
|
2625
1833
|
* @param map The map to iterate over.
|
|
2626
1834
|
*/
|
|
2627
|
-
static iterateKeys<TKey, TValue>(map: MutableMap<TKey, TValue>): Iterator
|
|
1835
|
+
static iterateKeys<TKey, TValue>(map: MutableMap<TKey, TValue>): Iterator<TKey>;
|
|
2628
1836
|
/**
|
|
2629
1837
|
* Iterate over the values in this {@link MutableMap}.
|
|
2630
1838
|
*/
|
|
2631
|
-
iterateValues(): Iterator
|
|
1839
|
+
iterateValues(): Iterator<TValue>;
|
|
2632
1840
|
/**
|
|
2633
1841
|
* Iterate over the keys in the {@link MutableMap}.
|
|
2634
1842
|
* @param map The map to iterate over.
|
|
2635
1843
|
*/
|
|
2636
|
-
static iterateValues<TKey, TValue>(map: MutableMap<TKey, TValue>): Iterator
|
|
1844
|
+
static iterateValues<TKey, TValue>(map: MutableMap<TKey, TValue>): Iterator<TValue>;
|
|
2637
1845
|
contains(value: MapEntry<TKey, TValue>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2638
1846
|
static contains<TKey, TValue>(map: MutableMap<TKey, TValue>, value: MapEntry<TKey, TValue>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2639
1847
|
}
|
|
@@ -2642,7 +1850,7 @@ declare abstract class MutableMap<TKey, TValue> implements Map$1<TKey, TValue> {
|
|
|
2642
1850
|
* Get whether the provided value is {@link Map}.
|
|
2643
1851
|
* @param value The value to check.
|
|
2644
1852
|
*/
|
|
2645
|
-
declare function isMap(value: unknown): value is Map
|
|
1853
|
+
declare function isMap(value: unknown): value is Map<unknown, unknown>;
|
|
2646
1854
|
/**
|
|
2647
1855
|
* An entry within a {@link Map}.
|
|
2648
1856
|
*/
|
|
@@ -2659,7 +1867,7 @@ interface MapEntry<TKey, TValue> {
|
|
|
2659
1867
|
/**
|
|
2660
1868
|
* A type that maps {@link TKey} values to {@link TValue} values.
|
|
2661
1869
|
*/
|
|
2662
|
-
declare abstract class Map
|
|
1870
|
+
declare abstract class Map<TKey, TValue> implements Iterable<MapEntry<TKey, TValue>> {
|
|
2663
1871
|
/**
|
|
2664
1872
|
* Create a new instance of the default {@link MutableMap} implementation.
|
|
2665
1873
|
*/
|
|
@@ -2667,13 +1875,13 @@ declare abstract class Map$1<TKey, TValue> implements Iterable$1<MapEntry<TKey,
|
|
|
2667
1875
|
/**
|
|
2668
1876
|
* Iterate over the entries in this {@link Map}.
|
|
2669
1877
|
*/
|
|
2670
|
-
abstract iterate(): Iterator
|
|
1878
|
+
abstract iterate(): Iterator<MapEntry<TKey, TValue>>;
|
|
2671
1879
|
any(): SyncResult<boolean>;
|
|
2672
|
-
static any<TKey, TValue>(map: Map
|
|
1880
|
+
static any<TKey, TValue>(map: Map<TKey, TValue>): SyncResult<boolean>;
|
|
2673
1881
|
toArray(): SyncResult<MapEntry<TKey, TValue>[]>;
|
|
2674
|
-
static toArray<TKey, TValue>(map: Map
|
|
2675
|
-
equals(right: Iterable
|
|
2676
|
-
static equals<TKey, TValue>(left: Map
|
|
1882
|
+
static toArray<TKey, TValue>(map: Map<TKey, TValue>): SyncResult<MapEntry<TKey, TValue>[]>;
|
|
1883
|
+
equals(right: Iterable<MapEntry<TKey, TValue>>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
1884
|
+
static equals<TKey, TValue>(left: Map<TKey, TValue>, right: Iterable<MapEntry<TKey, TValue>>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2677
1885
|
/**
|
|
2678
1886
|
* Get the {@link String} representation of this {@link Map}.
|
|
2679
1887
|
*/
|
|
@@ -2681,28 +1889,28 @@ declare abstract class Map$1<TKey, TValue> implements Iterable$1<MapEntry<TKey,
|
|
|
2681
1889
|
/**
|
|
2682
1890
|
* Get the {@link String} representation of the provided {@link Map}.
|
|
2683
1891
|
*/
|
|
2684
|
-
static toString<TKey, TValue>(map: Map
|
|
2685
|
-
concatenate(...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable
|
|
2686
|
-
static concatenate<TKey, TValue>(map: Map
|
|
2687
|
-
map<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
2688
|
-
static map<TKey, TValue, TOutput>(map: Map
|
|
2689
|
-
flatMap<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable
|
|
2690
|
-
static flatMap<TKey, TValue, TOutput>(map: Map
|
|
2691
|
-
where(condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable
|
|
2692
|
-
static where<TKey, TValue>(map: Map
|
|
2693
|
-
instanceOf<T extends MapEntry<TKey, TValue>>(typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable
|
|
2694
|
-
static instanceOf<TKey, TValue, T extends MapEntry<TKey, TValue>>(map: Map
|
|
1892
|
+
static toString<TKey, TValue>(map: Map<TKey, TValue>, toStringFunctions?: ToStringFunctions): string;
|
|
1893
|
+
concatenate(...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable<MapEntry<TKey, TValue>>;
|
|
1894
|
+
static concatenate<TKey, TValue>(map: Map<TKey, TValue>, ...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable<MapEntry<TKey, TValue>>;
|
|
1895
|
+
map<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1896
|
+
static map<TKey, TValue, TOutput>(map: Map<TKey, TValue>, mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1897
|
+
flatMap<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1898
|
+
static flatMap<TKey, TValue, TOutput>(map: Map<TKey, TValue>, mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1899
|
+
where(condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable<MapEntry<TKey, TValue>>;
|
|
1900
|
+
static where<TKey, TValue>(map: Map<TKey, TValue>, condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable<MapEntry<TKey, TValue>>;
|
|
1901
|
+
instanceOf<T extends MapEntry<TKey, TValue>>(typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable<T>;
|
|
1902
|
+
static instanceOf<TKey, TValue, T extends MapEntry<TKey, TValue>>(map: Map<TKey, TValue>, typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable<T>;
|
|
2695
1903
|
[Symbol.iterator](): JavascriptIterator<MapEntry<TKey, TValue>>;
|
|
2696
|
-
static [Symbol.iterator]<TKey, TValue>(map: Map
|
|
1904
|
+
static [Symbol.iterator]<TKey, TValue>(map: Map<TKey, TValue>): JavascriptIterator<MapEntry<TKey, TValue>>;
|
|
2697
1905
|
/**
|
|
2698
1906
|
* Get the number of entries in this {@link Map}.
|
|
2699
1907
|
*/
|
|
2700
1908
|
getCount(): SyncResult<number>;
|
|
2701
|
-
static getCount<TKey, TValue>(map: Map
|
|
1909
|
+
static getCount<TKey, TValue>(map: Map<TKey, TValue>): SyncResult<number>;
|
|
2702
1910
|
first(condition?: (entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): SyncResult<MapEntry<TKey, TValue>>;
|
|
2703
|
-
static first<TKey, TValue>(map: Map
|
|
1911
|
+
static first<TKey, TValue>(map: Map<TKey, TValue>, condition?: (entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): SyncResult<MapEntry<TKey, TValue>>;
|
|
2704
1912
|
last(condition?: (entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): SyncResult<MapEntry<TKey, TValue>>;
|
|
2705
|
-
static last<TKey, TValue>(map: Map
|
|
1913
|
+
static last<TKey, TValue>(map: Map<TKey, TValue>, condition?: (entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): SyncResult<MapEntry<TKey, TValue>>;
|
|
2706
1914
|
/**
|
|
2707
1915
|
* Get whether this {@link Map} contains the provided key.
|
|
2708
1916
|
* @param key The key to look for.
|
|
@@ -2716,23 +1924,23 @@ declare abstract class Map$1<TKey, TValue> implements Iterable$1<MapEntry<TKey,
|
|
|
2716
1924
|
/**
|
|
2717
1925
|
* Iterate over the keys in this {@link Map}.
|
|
2718
1926
|
*/
|
|
2719
|
-
iterateKeys(): Iterator
|
|
1927
|
+
iterateKeys(): Iterator<TKey>;
|
|
2720
1928
|
/**
|
|
2721
1929
|
* Iterate over the keys in the {@link Map}.
|
|
2722
1930
|
* @param map The map to iterate over.
|
|
2723
1931
|
*/
|
|
2724
|
-
static iterateKeys<TKey, TValue>(map: Map
|
|
1932
|
+
static iterateKeys<TKey, TValue>(map: Map<TKey, TValue>): Iterator<TKey>;
|
|
2725
1933
|
/**
|
|
2726
1934
|
* Iterate over the values in this {@link Map}.
|
|
2727
1935
|
*/
|
|
2728
|
-
iterateValues(): Iterator
|
|
1936
|
+
iterateValues(): Iterator<TValue>;
|
|
2729
1937
|
/**
|
|
2730
1938
|
* Iterate over the keys in the {@link Map}.
|
|
2731
1939
|
* @param map The map to iterate over.
|
|
2732
1940
|
*/
|
|
2733
|
-
static iterateValues<TKey, TValue>(map: Map
|
|
1941
|
+
static iterateValues<TKey, TValue>(map: Map<TKey, TValue>): Iterator<TValue>;
|
|
2734
1942
|
contains(value: MapEntry<TKey, TValue>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2735
|
-
static contains<TKey, TValue>(map: Map
|
|
1943
|
+
static contains<TKey, TValue>(map: Map<TKey, TValue>, value: MapEntry<TKey, TValue>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2736
1944
|
}
|
|
2737
1945
|
|
|
2738
1946
|
declare class JavascriptMapMap<TKey, TValue> implements MutableMap<TKey, TValue> {
|
|
@@ -2745,17 +1953,17 @@ declare class JavascriptMapMap<TKey, TValue> implements MutableMap<TKey, TValue>
|
|
|
2745
1953
|
get(key: TKey): SyncResult<TValue>;
|
|
2746
1954
|
set(key: TKey, value: TValue): this;
|
|
2747
1955
|
remove(key: TKey): SyncResult<TValue>;
|
|
2748
|
-
iterate(): Iterator
|
|
2749
|
-
iterateKeys(): Iterator
|
|
2750
|
-
iterateValues(): Iterator
|
|
1956
|
+
iterate(): Iterator<MapEntry<TKey, TValue>>;
|
|
1957
|
+
iterateKeys(): Iterator<TKey>;
|
|
1958
|
+
iterateValues(): Iterator<TValue>;
|
|
2751
1959
|
toArray(): SyncResult<MapEntry<TKey, TValue>[]>;
|
|
2752
|
-
equals(right: Iterable
|
|
1960
|
+
equals(right: Iterable<MapEntry<TKey, TValue>>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2753
1961
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
2754
|
-
concatenate(...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable
|
|
2755
|
-
map<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
2756
|
-
flatMap<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable
|
|
2757
|
-
where(condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable
|
|
2758
|
-
instanceOf<T extends MapEntry<TKey, TValue>>(typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable
|
|
1962
|
+
concatenate(...toConcatenate: JavascriptIterable<MapEntry<TKey, TValue>>[]): Iterable<MapEntry<TKey, TValue>>;
|
|
1963
|
+
map<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
1964
|
+
flatMap<TOutput>(mapping: (value: MapEntry<TKey, TValue>) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
1965
|
+
where(condition: (value: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)): Iterable<MapEntry<TKey, TValue>>;
|
|
1966
|
+
instanceOf<T extends MapEntry<TKey, TValue>>(typeOrTypeCheck: Type<T> | ((value: MapEntry<TKey, TValue>) => value is T)): Iterable<T>;
|
|
2759
1967
|
first(condition?: ((entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<MapEntry<TKey, TValue>>;
|
|
2760
1968
|
last(condition?: ((entry: MapEntry<TKey, TValue>) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<MapEntry<TKey, TValue>>;
|
|
2761
1969
|
getOrSet(key: TKey, valueCreator: () => TValue | SyncResult<TValue>): SyncResult<TValue>;
|
|
@@ -2767,8 +1975,8 @@ declare class JavascriptMapMap<TKey, TValue> implements MutableMap<TKey, TValue>
|
|
|
2767
1975
|
* Get whether the provided value is a {@link Set}.
|
|
2768
1976
|
* @param value The value to check.
|
|
2769
1977
|
*/
|
|
2770
|
-
declare function isSet(value: unknown): value is Set
|
|
2771
|
-
declare abstract class Set
|
|
1978
|
+
declare function isSet(value: unknown): value is Set<unknown>;
|
|
1979
|
+
declare abstract class Set<T> implements Iterable<T> {
|
|
2772
1980
|
static create<T>(initialValues?: JavascriptIterable<T>): JavascriptSetSet<T>;
|
|
2773
1981
|
/**
|
|
2774
1982
|
* Add the provided value to this {@link Set}.
|
|
@@ -2776,66 +1984,66 @@ declare abstract class Set$1<T> implements Iterable$1<T> {
|
|
|
2776
1984
|
*/
|
|
2777
1985
|
abstract add(value: T): this;
|
|
2778
1986
|
addAll(values: JavascriptIterable<T>): this;
|
|
2779
|
-
static addAll<T, TSet extends Set
|
|
1987
|
+
static addAll<T, TSet extends Set<T>>(set: TSet, values: JavascriptIterable<T>): TSet;
|
|
2780
1988
|
/**
|
|
2781
1989
|
* Remove the provided value from this {@link Set}. Return a {@link NotFoundError} if the value
|
|
2782
1990
|
* is not found.
|
|
2783
1991
|
* @param value The value to remove.
|
|
2784
1992
|
*/
|
|
2785
1993
|
abstract remove(value: T): SyncResult<void>;
|
|
2786
|
-
abstract iterate(): Iterator
|
|
2787
|
-
union(values: JavascriptIterable<T>): Set
|
|
2788
|
-
static union<T>(set: Set
|
|
1994
|
+
abstract iterate(): Iterator<T>;
|
|
1995
|
+
union(values: JavascriptIterable<T>): Set<T>;
|
|
1996
|
+
static union<T>(set: Set<T>, values: JavascriptIterable<T>): Set<T>;
|
|
2789
1997
|
toArray(): SyncResult<T[]>;
|
|
2790
|
-
static toArray<T>(set: Set
|
|
1998
|
+
static toArray<T>(set: Set<T>): SyncResult<T[]>;
|
|
2791
1999
|
any(): SyncResult<boolean>;
|
|
2792
|
-
static any<T>(set: Set
|
|
2000
|
+
static any<T>(set: Set<T>): SyncResult<boolean>;
|
|
2793
2001
|
getCount(): SyncResult<number>;
|
|
2794
|
-
static getCount<T>(set: Set
|
|
2002
|
+
static getCount<T>(set: Set<T>): SyncResult<number>;
|
|
2795
2003
|
equals(right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2796
|
-
static equals<T>(left: Set
|
|
2797
|
-
static equalSet<T>(left: Set
|
|
2004
|
+
static equals<T>(left: Set<T>, right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2005
|
+
static equalSet<T>(left: Set<T>, right: Set<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2798
2006
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
2799
|
-
static toString<T>(set: Set
|
|
2800
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable
|
|
2801
|
-
static concatenate<T>(set: Set
|
|
2802
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
2803
|
-
static map<TInput, TOutput>(set: Set
|
|
2804
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable
|
|
2805
|
-
static flatMap<TInput, TOutput>(set: Set
|
|
2806
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable
|
|
2807
|
-
static where<T>(set: Set
|
|
2808
|
-
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable
|
|
2809
|
-
static instanceOf<TInput, TOutput extends TInput>(set: Set
|
|
2007
|
+
static toString<T>(set: Set<T>, toStringFunctions?: ToStringFunctions): string;
|
|
2008
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
2009
|
+
static concatenate<T>(set: Set<T>, ...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
2010
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
2011
|
+
static map<TInput, TOutput>(set: Set<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
2012
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
2013
|
+
static flatMap<TInput, TOutput>(set: Set<TInput>, mapping: (value: TInput) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
2014
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
2015
|
+
static where<T>(set: Set<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
2016
|
+
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable<TOutput>;
|
|
2017
|
+
static instanceOf<TInput, TOutput extends TInput>(set: Set<TInput>, typeOrTypeCheck: Type<TOutput> | ((value: TInput) => value is TOutput)): Iterable<TOutput>;
|
|
2810
2018
|
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
2811
|
-
static first<T>(set: Set
|
|
2019
|
+
static first<T>(set: Set<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
2812
2020
|
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
2813
|
-
static last<T>(set: Set
|
|
2021
|
+
static last<T>(set: Set<T>, condition?: (value: T) => (boolean | SyncResult<boolean>)): SyncResult<T>;
|
|
2814
2022
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
2815
|
-
static [Symbol.iterator]<T>(set: Set
|
|
2023
|
+
static [Symbol.iterator]<T>(set: Set<T>): JavascriptIterator<T>;
|
|
2816
2024
|
contains(value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2817
|
-
static contains<T>(set: Set
|
|
2025
|
+
static contains<T>(set: Set<T>, value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2818
2026
|
}
|
|
2819
2027
|
|
|
2820
|
-
declare class JavascriptSetSet<T> implements Set
|
|
2028
|
+
declare class JavascriptSetSet<T> implements Set<T> {
|
|
2821
2029
|
private readonly set;
|
|
2822
2030
|
private constructor();
|
|
2823
2031
|
static create<T>(initialValues?: JavascriptIterable<T>): JavascriptSetSet<T>;
|
|
2824
2032
|
add(value: T): this;
|
|
2825
2033
|
addAll(values: JavascriptIterable<T>): this;
|
|
2826
2034
|
remove(value: T): SyncResult<void>;
|
|
2827
|
-
union(values: JavascriptIterable<T>): Set
|
|
2828
|
-
iterate(): Iterator
|
|
2035
|
+
union(values: JavascriptIterable<T>): Set<T>;
|
|
2036
|
+
iterate(): Iterator<T>;
|
|
2829
2037
|
toArray(): SyncResult<T[]>;
|
|
2830
2038
|
any(): SyncResult<boolean>;
|
|
2831
2039
|
getCount(): SyncResult<number>;
|
|
2832
2040
|
equals(right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
2833
2041
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
2834
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable
|
|
2835
|
-
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterable
|
|
2836
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable
|
|
2837
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable
|
|
2838
|
-
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable
|
|
2042
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
2043
|
+
map<TOutput>(mapping: (value: T) => TOutput | SyncResult<TOutput>): Iterable<TOutput>;
|
|
2044
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
2045
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
2046
|
+
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable<TOutput>;
|
|
2839
2047
|
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
2840
2048
|
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
2841
2049
|
contains(value: T, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
@@ -2961,13 +2169,13 @@ declare class LuxonDateTime implements DateTime {
|
|
|
2961
2169
|
/**
|
|
2962
2170
|
* An {@link AsyncIterator} that maps {@link TInput} values to {@link TOutput} values.
|
|
2963
2171
|
*/
|
|
2964
|
-
declare class MapAsyncIterator<TInput, TOutput> implements AsyncIterator
|
|
2172
|
+
declare class MapAsyncIterator<TInput, TOutput> implements AsyncIterator<TOutput> {
|
|
2965
2173
|
private readonly inputIterator;
|
|
2966
2174
|
private readonly mapping;
|
|
2967
2175
|
private current;
|
|
2968
2176
|
private started;
|
|
2969
|
-
protected constructor(inputIterator: AsyncIterator
|
|
2970
|
-
static create<TInput, TOutput>(inputIterator: AsyncIterator
|
|
2177
|
+
protected constructor(inputIterator: AsyncIterator<TInput>, mapping: (value: TInput) => (TOutput | PromiseLike<TOutput>));
|
|
2178
|
+
static create<TInput, TOutput>(inputIterator: AsyncIterator<TInput>, mapping: (value: TInput) => (TOutput | PromiseLike<TOutput>)): MapAsyncIterator<TInput, TOutput>;
|
|
2971
2179
|
next(): PromiseAsyncResult<boolean>;
|
|
2972
2180
|
hasStarted(): boolean;
|
|
2973
2181
|
hasCurrent(): boolean;
|
|
@@ -2977,34 +2185,34 @@ declare class MapAsyncIterator<TInput, TOutput> implements AsyncIterator$1<TOutp
|
|
|
2977
2185
|
any(): PromiseAsyncResult<boolean>;
|
|
2978
2186
|
getCount(): PromiseAsyncResult<number>;
|
|
2979
2187
|
toArray(): PromiseAsyncResult<TOutput[]>;
|
|
2980
|
-
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | PromiseLike<TOutput2>)): AsyncIterator
|
|
2188
|
+
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | PromiseLike<TOutput2>)): AsyncIterator<TOutput2>;
|
|
2981
2189
|
[Symbol.asyncIterator](): JavascriptAsyncIterator<TOutput>;
|
|
2982
2190
|
first(condition?: (value: TOutput) => boolean): PromiseAsyncResult<TOutput>;
|
|
2983
2191
|
last(): PromiseAsyncResult<TOutput>;
|
|
2984
|
-
where(condition: (value: TOutput) => (boolean | PromiseLike<boolean>)): AsyncIterator
|
|
2985
|
-
whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): AsyncIterator
|
|
2986
|
-
whereInstanceOfType<U extends TOutput>(type: Type<U>): AsyncIterator
|
|
2987
|
-
take(maximumToTake: number): AsyncIterator
|
|
2988
|
-
skip(maximumToSkip: number): AsyncIterator
|
|
2192
|
+
where(condition: (value: TOutput) => (boolean | PromiseLike<boolean>)): AsyncIterator<TOutput>;
|
|
2193
|
+
whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): AsyncIterator<U>;
|
|
2194
|
+
whereInstanceOfType<U extends TOutput>(type: Type<U>): AsyncIterator<U>;
|
|
2195
|
+
take(maximumToTake: number): AsyncIterator<TOutput>;
|
|
2196
|
+
skip(maximumToSkip: number): AsyncIterator<TOutput>;
|
|
2989
2197
|
}
|
|
2990
2198
|
|
|
2991
2199
|
/**
|
|
2992
2200
|
* An {@link Iterable} that converts {@link TInput} values to {@link TOutput} values.
|
|
2993
2201
|
*/
|
|
2994
|
-
declare class MapIterable<TInput, TOutput> implements Iterable
|
|
2202
|
+
declare class MapIterable<TInput, TOutput> implements Iterable<TOutput> {
|
|
2995
2203
|
private readonly innerIterable;
|
|
2996
2204
|
private readonly mapping;
|
|
2997
|
-
protected constructor(innerIterable: Iterable
|
|
2998
|
-
static create<TInput, TOutput>(innerIterable: Iterable
|
|
2999
|
-
iterate(): Iterator
|
|
2205
|
+
protected constructor(innerIterable: Iterable<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>));
|
|
2206
|
+
static create<TInput, TOutput>(innerIterable: Iterable<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>)): MapIterable<TInput, TOutput>;
|
|
2207
|
+
iterate(): Iterator<TOutput>;
|
|
3000
2208
|
toArray(): SyncResult<TOutput[]>;
|
|
3001
|
-
equals(right: Iterable
|
|
2209
|
+
equals(right: Iterable<TOutput>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
3002
2210
|
toString(): string;
|
|
3003
|
-
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterable
|
|
3004
|
-
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterable
|
|
3005
|
-
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterable
|
|
3006
|
-
where(condition: (value: TOutput) => boolean): Iterable
|
|
3007
|
-
instanceOf<TOutput2 extends TOutput>(typeOrTypeCheck: Type<TOutput2> | ((value: TOutput) => value is TOutput2)): Iterable
|
|
2211
|
+
concatenate(...toConcatenate: JavascriptIterable<TOutput>[]): Iterable<TOutput>;
|
|
2212
|
+
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterable<TOutput2>;
|
|
2213
|
+
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterable<TOutput2>;
|
|
2214
|
+
where(condition: (value: TOutput) => boolean): Iterable<TOutput>;
|
|
2215
|
+
instanceOf<TOutput2 extends TOutput>(typeOrTypeCheck: Type<TOutput2> | ((value: TOutput) => value is TOutput2)): Iterable<TOutput2>;
|
|
3008
2216
|
[Symbol.iterator](): JavascriptIterator<TOutput>;
|
|
3009
2217
|
any(): SyncResult<boolean>;
|
|
3010
2218
|
getCount(): SyncResult<number>;
|
|
@@ -3016,12 +2224,12 @@ declare class MapIterable<TInput, TOutput> implements Iterable$1<TOutput> {
|
|
|
3016
2224
|
/**
|
|
3017
2225
|
* An {@link Iterator} that maps {@link TInput} values to {@link TOutput} values.
|
|
3018
2226
|
*/
|
|
3019
|
-
declare class MapIterator<TInput, TOutput> implements Iterator
|
|
2227
|
+
declare class MapIterator<TInput, TOutput> implements Iterator<TOutput> {
|
|
3020
2228
|
private readonly inputIterator;
|
|
3021
2229
|
private readonly mapping;
|
|
3022
2230
|
private started;
|
|
3023
|
-
protected constructor(inputIterator: Iterator
|
|
3024
|
-
static create<TInput, TOutput>(inputIterator: Iterator
|
|
2231
|
+
protected constructor(inputIterator: Iterator<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>));
|
|
2232
|
+
static create<TInput, TOutput>(inputIterator: Iterator<TInput>, mapping: (value: TInput) => (TOutput | SyncResult<TOutput>)): MapIterator<TInput, TOutput>;
|
|
3025
2233
|
next(): SyncResult<boolean>;
|
|
3026
2234
|
hasStarted(): boolean;
|
|
3027
2235
|
hasCurrent(): boolean;
|
|
@@ -3031,17 +2239,17 @@ declare class MapIterator<TInput, TOutput> implements Iterator$1<TOutput> {
|
|
|
3031
2239
|
any(): SyncResult<boolean>;
|
|
3032
2240
|
getCount(): SyncResult<number>;
|
|
3033
2241
|
toArray(): SyncResult<TOutput[]>;
|
|
3034
|
-
concatenate(toConcatenate: JavascriptIterable<TOutput>): Iterator
|
|
3035
|
-
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterator
|
|
3036
|
-
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterator
|
|
2242
|
+
concatenate(toConcatenate: JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
2243
|
+
map<TOutput2>(mapping: (value: TOutput) => (TOutput2 | SyncResult<TOutput2>)): Iterator<TOutput2>;
|
|
2244
|
+
flatMap<TOutput2>(mapping: (value: TOutput) => JavascriptIterable<TOutput2>): Iterator<TOutput2>;
|
|
3037
2245
|
[Symbol.iterator](): JavascriptIterator<TOutput>;
|
|
3038
2246
|
first(condition?: (value: TOutput) => boolean): SyncResult<TOutput>;
|
|
3039
2247
|
last(): SyncResult<TOutput>;
|
|
3040
|
-
where(condition: (value: TOutput) => boolean): Iterator
|
|
3041
|
-
whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): Iterator
|
|
3042
|
-
whereInstanceOfType<U extends TOutput>(type: Type<U>): Iterator
|
|
3043
|
-
take(maximumToTake: number): Iterator
|
|
3044
|
-
skip(maximumToSkip: number): Iterator
|
|
2248
|
+
where(condition: (value: TOutput) => boolean): Iterator<TOutput>;
|
|
2249
|
+
whereInstanceOf<U extends TOutput>(typeCheck: (value: TOutput) => value is U): Iterator<U>;
|
|
2250
|
+
whereInstanceOfType<U extends TOutput>(type: Type<U>): Iterator<U>;
|
|
2251
|
+
take(maximumToTake: number): Iterator<TOutput>;
|
|
2252
|
+
skip(maximumToSkip: number): Iterator<TOutput>;
|
|
3045
2253
|
}
|
|
3046
2254
|
|
|
3047
2255
|
declare class Node<T> {
|
|
@@ -3050,7 +2258,7 @@ declare class Node<T> {
|
|
|
3050
2258
|
private constructor();
|
|
3051
2259
|
static create<T>(value: T): Node<T>;
|
|
3052
2260
|
getValue(): T;
|
|
3053
|
-
iterateConnectedNodes(): Iterator
|
|
2261
|
+
iterateConnectedNodes(): Iterator<Node<T>>;
|
|
3054
2262
|
addConnectedNode(node: Node<T>): void;
|
|
3055
2263
|
}
|
|
3056
2264
|
|
|
@@ -3527,7 +2735,7 @@ declare class RecreationDotGovDivisionAvailability {
|
|
|
3527
2735
|
readonly json: RecreationDotGovDivisionAvailabilityJson;
|
|
3528
2736
|
readonly minimumGroupSize?: number;
|
|
3529
2737
|
readonly maximumGroupSize?: number;
|
|
3530
|
-
readonly dayAvailabilities: Iterable
|
|
2738
|
+
readonly dayAvailabilities: Iterable<RecreationDotGovDivisionDayAvailability>;
|
|
3531
2739
|
private constructor();
|
|
3532
2740
|
static create(json: RecreationDotGovDivisionAvailabilityJson): RecreationDotGovDivisionAvailability;
|
|
3533
2741
|
}
|
|
@@ -3564,12 +2772,12 @@ declare class RecreationDotGovClient implements HttpClient {
|
|
|
3564
2772
|
* An {@link AsyncIterator} that skips the first maximum number of values from an inner
|
|
3565
2773
|
* {@link AsyncIterator} before beginning to return values.
|
|
3566
2774
|
*/
|
|
3567
|
-
declare class SkipAsyncIterator<T> implements AsyncIterator
|
|
2775
|
+
declare class SkipAsyncIterator<T> implements AsyncIterator<T> {
|
|
3568
2776
|
private readonly innerIterator;
|
|
3569
2777
|
private started;
|
|
3570
2778
|
private readonly maximumToSkip;
|
|
3571
2779
|
private constructor();
|
|
3572
|
-
static create<T>(innerIterator: AsyncIterator
|
|
2780
|
+
static create<T>(innerIterator: AsyncIterator<T>, maximumToSkip: number): SkipAsyncIterator<T>;
|
|
3573
2781
|
next(): PromiseAsyncResult<boolean>;
|
|
3574
2782
|
hasStarted(): boolean;
|
|
3575
2783
|
hasCurrent(): boolean;
|
|
@@ -3579,27 +2787,27 @@ declare class SkipAsyncIterator<T> implements AsyncIterator$1<T> {
|
|
|
3579
2787
|
any(): PromiseAsyncResult<boolean>;
|
|
3580
2788
|
getCount(): PromiseAsyncResult<number>;
|
|
3581
2789
|
toArray(): PromiseAsyncResult<T[]>;
|
|
3582
|
-
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator
|
|
3583
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator
|
|
3584
|
-
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator
|
|
3585
|
-
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator
|
|
2790
|
+
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator<T>;
|
|
2791
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
2792
|
+
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator<U>;
|
|
2793
|
+
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
3586
2794
|
first(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
3587
2795
|
last(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
3588
2796
|
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
3589
|
-
take(maximumToTake: number): AsyncIterator
|
|
3590
|
-
skip(maximumToSkip: number): AsyncIterator
|
|
2797
|
+
take(maximumToTake: number): AsyncIterator<T>;
|
|
2798
|
+
skip(maximumToSkip: number): AsyncIterator<T>;
|
|
3591
2799
|
}
|
|
3592
2800
|
|
|
3593
2801
|
/**
|
|
3594
2802
|
* An {@link Iterator} that skips the first maximum number of values from an inner {@link Iterator}
|
|
3595
2803
|
* before beginning to return values.
|
|
3596
2804
|
*/
|
|
3597
|
-
declare class SkipIterator<T> implements Iterator
|
|
2805
|
+
declare class SkipIterator<T> implements Iterator<T> {
|
|
3598
2806
|
private readonly innerIterator;
|
|
3599
2807
|
private started;
|
|
3600
2808
|
private readonly maximumToSkip;
|
|
3601
2809
|
private constructor();
|
|
3602
|
-
static create<T>(innerIterator: Iterator
|
|
2810
|
+
static create<T>(innerIterator: Iterator<T>, maximumToSkip: number): SkipIterator<T>;
|
|
3603
2811
|
next(): SyncResult<boolean>;
|
|
3604
2812
|
hasStarted(): boolean;
|
|
3605
2813
|
hasCurrent(): boolean;
|
|
@@ -3609,17 +2817,17 @@ declare class SkipIterator<T> implements Iterator$1<T> {
|
|
|
3609
2817
|
any(): SyncResult<boolean>;
|
|
3610
2818
|
getCount(): SyncResult<number>;
|
|
3611
2819
|
toArray(): SyncResult<T[]>;
|
|
3612
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator
|
|
3613
|
-
where(condition: (value: T) => boolean): Iterator
|
|
3614
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator
|
|
3615
|
-
whereInstanceOfType<U extends T>(type: Type<U>): Iterator
|
|
3616
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator
|
|
3617
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator
|
|
2820
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
2821
|
+
where(condition: (value: T) => boolean): Iterator<T>;
|
|
2822
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
2823
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
2824
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator<TOutput>;
|
|
2825
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
3618
2826
|
first(condition?: (value: T) => boolean): SyncResult<T>;
|
|
3619
2827
|
last(condition?: (value: T) => boolean): SyncResult<T>;
|
|
3620
2828
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
3621
|
-
take(maximumToTake: number): Iterator
|
|
3622
|
-
skip(maximumToSkip: number): Iterator
|
|
2829
|
+
take(maximumToTake: number): Iterator<T>;
|
|
2830
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
3623
2831
|
}
|
|
3624
2832
|
|
|
3625
2833
|
/**
|
|
@@ -3635,7 +2843,7 @@ declare class StringComparer extends Comparer<string> {
|
|
|
3635
2843
|
/**
|
|
3636
2844
|
* An {@link Iterator} that iterates over the characters in a {@link string}.
|
|
3637
2845
|
*/
|
|
3638
|
-
declare class StringIterator implements Iterator
|
|
2846
|
+
declare class StringIterator implements Iterator<string> {
|
|
3639
2847
|
private readonly value;
|
|
3640
2848
|
private currentIndex;
|
|
3641
2849
|
private started;
|
|
@@ -3651,16 +2859,16 @@ declare class StringIterator implements Iterator$1<string> {
|
|
|
3651
2859
|
any(): SyncResult<boolean>;
|
|
3652
2860
|
getCount(): SyncResult<number>;
|
|
3653
2861
|
toArray(): SyncResult<string[]>;
|
|
3654
|
-
concatenate(...toConcatenate: JavascriptIterable<string>[]): Iterator
|
|
3655
|
-
map<TOutput>(mapping: (value: string) => (TOutput | SyncResult<TOutput>)): Iterator
|
|
3656
|
-
flatMap<TOutput>(mapping: (value: string) => JavascriptIterable<TOutput>): Iterator
|
|
2862
|
+
concatenate(...toConcatenate: JavascriptIterable<string>[]): Iterator<string>;
|
|
2863
|
+
map<TOutput>(mapping: (value: string) => (TOutput | SyncResult<TOutput>)): Iterator<TOutput>;
|
|
2864
|
+
flatMap<TOutput>(mapping: (value: string) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
3657
2865
|
first(): SyncResult<string>;
|
|
3658
2866
|
last(): SyncResult<string>;
|
|
3659
|
-
where(condition: (value: string) => boolean): Iterator
|
|
3660
|
-
whereInstanceOf<U extends string>(typeCheck: (value: string) => value is U): Iterator
|
|
3661
|
-
whereInstanceOfType<U extends string>(type: Type<U>): Iterator
|
|
3662
|
-
take(maximumToTake: number): Iterator
|
|
3663
|
-
skip(maximumToSkip: number): Iterator
|
|
2867
|
+
where(condition: (value: string) => boolean): Iterator<string>;
|
|
2868
|
+
whereInstanceOf<U extends string>(typeCheck: (value: string) => value is U): Iterator<U>;
|
|
2869
|
+
whereInstanceOfType<U extends string>(type: Type<U>): Iterator<U>;
|
|
2870
|
+
take(maximumToTake: number): Iterator<string>;
|
|
2871
|
+
skip(maximumToSkip: number): Iterator<string>;
|
|
3664
2872
|
[Symbol.iterator](): JavascriptIterator<string>;
|
|
3665
2873
|
}
|
|
3666
2874
|
|
|
@@ -3744,13 +2952,13 @@ declare function isLetterOrDigit(value: string): boolean;
|
|
|
3744
2952
|
/**
|
|
3745
2953
|
* An {@link AsyncIterator} that iterates over a maximum number of values.
|
|
3746
2954
|
*/
|
|
3747
|
-
declare class TakeAsyncIterator<T> implements AsyncIterator
|
|
2955
|
+
declare class TakeAsyncIterator<T> implements AsyncIterator<T> {
|
|
3748
2956
|
private readonly innerIterator;
|
|
3749
2957
|
private started;
|
|
3750
2958
|
private readonly maximumToTake;
|
|
3751
2959
|
private taken;
|
|
3752
2960
|
private constructor();
|
|
3753
|
-
static create<T>(innerIterator: AsyncIterator
|
|
2961
|
+
static create<T>(innerIterator: AsyncIterator<T>, maximumToTake: number): TakeAsyncIterator<T>;
|
|
3754
2962
|
hasCurrent(): boolean;
|
|
3755
2963
|
next(): PromiseAsyncResult<boolean>;
|
|
3756
2964
|
hasStarted(): boolean;
|
|
@@ -3760,27 +2968,27 @@ declare class TakeAsyncIterator<T> implements AsyncIterator$1<T> {
|
|
|
3760
2968
|
any(): PromiseAsyncResult<boolean>;
|
|
3761
2969
|
getCount(): PromiseAsyncResult<number>;
|
|
3762
2970
|
toArray(): PromiseAsyncResult<T[]>;
|
|
3763
|
-
where(condition: (value: T) => boolean): AsyncIterator
|
|
3764
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator
|
|
3765
|
-
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator
|
|
3766
|
-
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator
|
|
2971
|
+
where(condition: (value: T) => boolean): AsyncIterator<T>;
|
|
2972
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
2973
|
+
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator<U>;
|
|
2974
|
+
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
3767
2975
|
first(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
3768
2976
|
last(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
3769
2977
|
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
3770
|
-
take(maximumToTake: number): AsyncIterator
|
|
3771
|
-
skip(maximumToSkip: number): AsyncIterator
|
|
2978
|
+
take(maximumToTake: number): AsyncIterator<T>;
|
|
2979
|
+
skip(maximumToSkip: number): AsyncIterator<T>;
|
|
3772
2980
|
}
|
|
3773
2981
|
|
|
3774
2982
|
/**
|
|
3775
2983
|
* An {@link Iterator} that iterates over a maximum number of values.
|
|
3776
2984
|
*/
|
|
3777
|
-
declare class TakeIterator<T> implements Iterator
|
|
2985
|
+
declare class TakeIterator<T> implements Iterator<T> {
|
|
3778
2986
|
private readonly innerIterator;
|
|
3779
2987
|
private started;
|
|
3780
2988
|
private readonly maximumToTake;
|
|
3781
2989
|
private taken;
|
|
3782
2990
|
private constructor();
|
|
3783
|
-
static create<T>(innerIterator: Iterator
|
|
2991
|
+
static create<T>(innerIterator: Iterator<T>, maximumToTake: number): TakeIterator<T>;
|
|
3784
2992
|
hasCurrent(): boolean;
|
|
3785
2993
|
next(): SyncResult<boolean>;
|
|
3786
2994
|
hasStarted(): boolean;
|
|
@@ -3790,23 +2998,23 @@ declare class TakeIterator<T> implements Iterator$1<T> {
|
|
|
3790
2998
|
any(): SyncResult<boolean>;
|
|
3791
2999
|
getCount(): SyncResult<number>;
|
|
3792
3000
|
toArray(): SyncResult<T[]>;
|
|
3793
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator
|
|
3794
|
-
where(condition: (value: T) => boolean): Iterator
|
|
3795
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator
|
|
3796
|
-
whereInstanceOfType<U extends T>(type: Type<U>): Iterator
|
|
3797
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator
|
|
3798
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator
|
|
3001
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
3002
|
+
where(condition: (value: T) => boolean): Iterator<T>;
|
|
3003
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
3004
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
3005
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator<TOutput>;
|
|
3006
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
3799
3007
|
first(condition?: (value: T) => boolean): SyncResult<T>;
|
|
3800
3008
|
last(condition?: (value: T) => boolean): SyncResult<T>;
|
|
3801
3009
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
3802
|
-
take(maximumToTake: number): Iterator
|
|
3803
|
-
skip(maximumToSkip: number): Iterator
|
|
3010
|
+
take(maximumToTake: number): Iterator<T>;
|
|
3011
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
3804
3012
|
}
|
|
3805
3013
|
|
|
3806
3014
|
/**
|
|
3807
3015
|
* An {@link Iterator} that only returns values that match a condition.
|
|
3808
3016
|
*/
|
|
3809
|
-
declare class WhereAsyncIterator<T> implements AsyncIterator
|
|
3017
|
+
declare class WhereAsyncIterator<T> implements AsyncIterator<T> {
|
|
3810
3018
|
private readonly innerIterator;
|
|
3811
3019
|
private started;
|
|
3812
3020
|
private readonly condition;
|
|
@@ -3814,43 +3022,43 @@ declare class WhereAsyncIterator<T> implements AsyncIterator$1<T> {
|
|
|
3814
3022
|
hasStarted(): boolean;
|
|
3815
3023
|
hasCurrent(): boolean;
|
|
3816
3024
|
getCurrent(): T;
|
|
3817
|
-
static create<T>(innerIterator: AsyncIterator
|
|
3025
|
+
static create<T>(innerIterator: AsyncIterator<T>, condition: (value: T) => (boolean | PromiseLike<boolean>)): WhereAsyncIterator<T>;
|
|
3818
3026
|
next(): PromiseAsyncResult<boolean>;
|
|
3819
3027
|
start(): PromiseAsyncResult<this>;
|
|
3820
3028
|
takeCurrent(): PromiseAsyncResult<T>;
|
|
3821
3029
|
any(): PromiseAsyncResult<boolean>;
|
|
3822
3030
|
getCount(): PromiseAsyncResult<number>;
|
|
3823
3031
|
toArray(): PromiseAsyncResult<T[]>;
|
|
3824
|
-
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator
|
|
3825
|
-
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator
|
|
3826
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator
|
|
3827
|
-
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator
|
|
3032
|
+
where(condition: (value: T) => (boolean | PromiseLike<boolean>)): AsyncIterator<T>;
|
|
3033
|
+
map<TOutput>(mapping: (value: T) => (TOutput | PromiseLike<TOutput>)): AsyncIterator<TOutput>;
|
|
3034
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): AsyncIterator<U>;
|
|
3035
|
+
whereInstanceOfType<U extends T>(type: Type<U>): AsyncIterator<U>;
|
|
3828
3036
|
first(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
3829
3037
|
last(condition?: (value: T) => (boolean | PromiseLike<boolean>)): PromiseAsyncResult<T>;
|
|
3830
|
-
take(maximumToTake: number): AsyncIterator
|
|
3831
|
-
skip(maximumToSkip: number): AsyncIterator
|
|
3038
|
+
take(maximumToTake: number): AsyncIterator<T>;
|
|
3039
|
+
skip(maximumToSkip: number): AsyncIterator<T>;
|
|
3832
3040
|
[Symbol.asyncIterator](): JavascriptAsyncIterator<T>;
|
|
3833
3041
|
}
|
|
3834
3042
|
|
|
3835
3043
|
/**
|
|
3836
3044
|
* An {@link Iterable} that only returns values that match a condition.
|
|
3837
3045
|
*/
|
|
3838
|
-
declare class WhereIterable<T> implements Iterable
|
|
3046
|
+
declare class WhereIterable<T> implements Iterable<T> {
|
|
3839
3047
|
private readonly innerIterable;
|
|
3840
3048
|
private readonly condition;
|
|
3841
3049
|
private constructor();
|
|
3842
|
-
static create<T>(innerIterable: Iterable
|
|
3843
|
-
iterate(): Iterator
|
|
3050
|
+
static create<T>(innerIterable: Iterable<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): WhereIterable<T>;
|
|
3051
|
+
iterate(): Iterator<T>;
|
|
3844
3052
|
toArray(): SyncResult<T[]>;
|
|
3845
3053
|
any(): SyncResult<boolean>;
|
|
3846
3054
|
getCount(): SyncResult<number>;
|
|
3847
3055
|
equals(right: JavascriptIterable<T>, equalFunctions?: EqualFunctions): SyncResult<boolean>;
|
|
3848
3056
|
toString(toStringFunctions?: ToStringFunctions): string;
|
|
3849
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable
|
|
3850
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable
|
|
3851
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable
|
|
3852
|
-
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable
|
|
3853
|
-
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable
|
|
3057
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterable<T>;
|
|
3058
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterable<TOutput>;
|
|
3059
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterable<TOutput>;
|
|
3060
|
+
where(condition: (value: T) => (boolean | SyncResult<boolean>)): Iterable<T>;
|
|
3061
|
+
instanceOf<TOutput extends T>(typeOrTypeCheck: Type<TOutput> | ((value: T) => value is TOutput)): Iterable<TOutput>;
|
|
3854
3062
|
first(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
3855
3063
|
last(condition?: ((value: T) => (boolean | SyncResult<boolean>)) | undefined): SyncResult<T>;
|
|
3856
3064
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
@@ -3860,12 +3068,12 @@ declare class WhereIterable<T> implements Iterable$1<T> {
|
|
|
3860
3068
|
/**
|
|
3861
3069
|
* An {@link Iterator} that only returns values that match a condition.
|
|
3862
3070
|
*/
|
|
3863
|
-
declare class WhereIterator<T> implements Iterator
|
|
3071
|
+
declare class WhereIterator<T> implements Iterator<T> {
|
|
3864
3072
|
private readonly innerIterator;
|
|
3865
3073
|
private started;
|
|
3866
3074
|
private readonly condition;
|
|
3867
3075
|
private constructor();
|
|
3868
|
-
static create<T>(innerIterator: Iterator
|
|
3076
|
+
static create<T>(innerIterator: Iterator<T>, condition: (value: T) => (boolean | SyncResult<boolean>)): WhereIterator<T>;
|
|
3869
3077
|
hasStarted(): boolean;
|
|
3870
3078
|
hasCurrent(): boolean;
|
|
3871
3079
|
getCurrent(): T;
|
|
@@ -3875,16 +3083,16 @@ declare class WhereIterator<T> implements Iterator$1<T> {
|
|
|
3875
3083
|
any(): SyncResult<boolean>;
|
|
3876
3084
|
getCount(): SyncResult<number>;
|
|
3877
3085
|
toArray(): SyncResult<T[]>;
|
|
3878
|
-
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator
|
|
3879
|
-
where(condition: (value: T) => boolean): Iterator
|
|
3880
|
-
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator
|
|
3881
|
-
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator
|
|
3882
|
-
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator
|
|
3883
|
-
whereInstanceOfType<U extends T>(type: Type<U>): Iterator
|
|
3086
|
+
concatenate(...toConcatenate: JavascriptIterable<T>[]): Iterator<T>;
|
|
3087
|
+
where(condition: (value: T) => boolean): Iterator<T>;
|
|
3088
|
+
map<TOutput>(mapping: (value: T) => (TOutput | SyncResult<TOutput>)): Iterator<TOutput>;
|
|
3089
|
+
flatMap<TOutput>(mapping: (value: T) => JavascriptIterable<TOutput>): Iterator<TOutput>;
|
|
3090
|
+
whereInstanceOf<U extends T>(typeCheck: (value: T) => value is U): Iterator<U>;
|
|
3091
|
+
whereInstanceOfType<U extends T>(type: Type<U>): Iterator<U>;
|
|
3884
3092
|
first(condition?: (value: T) => boolean): SyncResult<T>;
|
|
3885
3093
|
last(condition?: (value: T) => boolean): SyncResult<T>;
|
|
3886
|
-
take(maximumToTake: number): Iterator
|
|
3887
|
-
skip(maximumToSkip: number): Iterator
|
|
3094
|
+
take(maximumToTake: number): Iterator<T>;
|
|
3095
|
+
skip(maximumToSkip: number): Iterator<T>;
|
|
3888
3096
|
[Symbol.iterator](): JavascriptIterator<T>;
|
|
3889
3097
|
}
|
|
3890
3098
|
|
|
@@ -3927,8 +3135,8 @@ declare abstract class WonderlandTrailLocations {
|
|
|
3927
3135
|
static readonly carbonRiver: WonderlandTrailLocation;
|
|
3928
3136
|
static readonly dickCreek: WonderlandTrailLocation;
|
|
3929
3137
|
static readonly mysticLake: WonderlandTrailLocation;
|
|
3930
|
-
static getLocations(): Iterable
|
|
3931
|
-
static getTrailheads(): Iterable
|
|
3138
|
+
static getLocations(): Iterable<WonderlandTrailLocation>;
|
|
3139
|
+
static getTrailheads(): Iterable<WonderlandTrailLocation>;
|
|
3932
3140
|
}
|
|
3933
3141
|
declare enum WonderlandTrailReservationType {
|
|
3934
3142
|
Reserved = 0,
|
|
@@ -3962,10 +3170,10 @@ declare class WonderlandTrailConnection {
|
|
|
3962
3170
|
readonly ascentFeet: number;
|
|
3963
3171
|
readonly descentFeet: number;
|
|
3964
3172
|
readonly direction: WonderlandTrailDirection;
|
|
3965
|
-
readonly intermediateLocations: Iterable
|
|
3173
|
+
readonly intermediateLocations: Iterable<WonderlandTrailLocation>;
|
|
3966
3174
|
private constructor();
|
|
3967
|
-
static create(startLocation: WonderlandTrailLocation, endLocation: WonderlandTrailLocation, distanceMiles: number, ascentFeet: number, descentFeet: number, direction: WonderlandTrailDirection, intermediateLocations: Iterable
|
|
3968
|
-
getLocations(): Iterable
|
|
3175
|
+
static create(startLocation: WonderlandTrailLocation, endLocation: WonderlandTrailLocation, distanceMiles: number, ascentFeet: number, descentFeet: number, direction: WonderlandTrailDirection, intermediateLocations: Iterable<WonderlandTrailLocation>): WonderlandTrailConnection;
|
|
3176
|
+
getLocations(): Iterable<WonderlandTrailLocation>;
|
|
3969
3177
|
private static ensureExists;
|
|
3970
3178
|
private static ensureAllExist;
|
|
3971
3179
|
reverseDirection(): WonderlandTrailConnection;
|
|
@@ -3979,15 +3187,15 @@ declare class WonderlandTrailConnections {
|
|
|
3979
3187
|
private constructor();
|
|
3980
3188
|
static create(addReverseConnectionDefault?: boolean): WonderlandTrailConnections;
|
|
3981
3189
|
static createDefault(): WonderlandTrailConnections;
|
|
3982
|
-
iterateConnections(startLocation?: WonderlandTrailLocation, endLocation?: WonderlandTrailLocation, direction?: WonderlandTrailDirection): Iterator
|
|
3190
|
+
iterateConnections(startLocation?: WonderlandTrailLocation, endLocation?: WonderlandTrailLocation, direction?: WonderlandTrailDirection): Iterator<WonderlandTrailConnection>;
|
|
3983
3191
|
iterateConnections(properties: {
|
|
3984
3192
|
startLocation?: WonderlandTrailLocation;
|
|
3985
3193
|
endLocation?: WonderlandTrailLocation;
|
|
3986
3194
|
direction?: WonderlandTrailDirection;
|
|
3987
|
-
}): Iterator
|
|
3195
|
+
}): Iterator<WonderlandTrailConnection>;
|
|
3988
3196
|
private addConnectionInner;
|
|
3989
3197
|
addConnection(connection: WonderlandTrailConnection, addReverseConnection?: boolean): this;
|
|
3990
|
-
addConnection(startLocation: WonderlandTrailLocation, endLocation: WonderlandTrailLocation, distanceMiles: number, ascentFeet: number, descentFeet: number, direction?: WonderlandTrailDirection, intermediateLocations?: Iterable
|
|
3198
|
+
addConnection(startLocation: WonderlandTrailLocation, endLocation: WonderlandTrailLocation, distanceMiles: number, ascentFeet: number, descentFeet: number, direction?: WonderlandTrailDirection, intermediateLocations?: Iterable<WonderlandTrailLocation>, addReverseConnection?: boolean): this;
|
|
3991
3199
|
addConnection(properties: {
|
|
3992
3200
|
startLocation: WonderlandTrailLocation;
|
|
3993
3201
|
endLocation: WonderlandTrailLocation;
|
|
@@ -3995,7 +3203,7 @@ declare class WonderlandTrailConnections {
|
|
|
3995
3203
|
ascentFeet: number;
|
|
3996
3204
|
descentFeet: number;
|
|
3997
3205
|
direction?: WonderlandTrailDirection;
|
|
3998
|
-
intermediateLocations?: Iterable
|
|
3206
|
+
intermediateLocations?: Iterable<WonderlandTrailLocation>;
|
|
3999
3207
|
addReverseConnection?: boolean;
|
|
4000
3208
|
}): this;
|
|
4001
3209
|
containsConnection(connection: WonderlandTrailConnection): boolean;
|
|
@@ -4009,14 +3217,14 @@ declare class WonderlandTrailItinerary {
|
|
|
4009
3217
|
private constructor();
|
|
4010
3218
|
static create(startDay: DateTime): WonderlandTrailItinerary;
|
|
4011
3219
|
clone(): WonderlandTrailItinerary;
|
|
4012
|
-
getConnections(): Iterable
|
|
3220
|
+
getConnections(): Iterable<WonderlandTrailConnection>;
|
|
4013
3221
|
getEndDay(): DateTime;
|
|
4014
3222
|
getDayCount(): number;
|
|
4015
3223
|
getStartLocation(): SyncResult<WonderlandTrailLocation>;
|
|
4016
|
-
getIntermediateLocations(): Iterable
|
|
3224
|
+
getIntermediateLocations(): Iterable<WonderlandTrailLocation>;
|
|
4017
3225
|
getEndLocation(): SyncResult<WonderlandTrailLocation>;
|
|
4018
|
-
getPath(): Iterable
|
|
4019
|
-
getPathStrings(includeAvailabilityTypes?: boolean): Iterable
|
|
3226
|
+
getPath(): Iterable<WonderlandTrailLocation>;
|
|
3227
|
+
getPathStrings(includeAvailabilityTypes?: boolean): Iterable<string>;
|
|
4020
3228
|
contains(parameters: {
|
|
4021
3229
|
location: WonderlandTrailLocation;
|
|
4022
3230
|
checkItineraryStartLocation?: boolean;
|
|
@@ -4064,7 +3272,7 @@ declare class WonderlandTrailClient implements HttpClient {
|
|
|
4064
3272
|
maximumDayDistanceMiles?: number;
|
|
4065
3273
|
maximumItineraryDays?: number;
|
|
4066
3274
|
campsitesToAvoid?: JavascriptIterable<WonderlandTrailLocation>;
|
|
4067
|
-
}): Iterable
|
|
3275
|
+
}): Iterable<WonderlandTrailItinerary>;
|
|
4068
3276
|
findItinerariesAsync(parameters: {
|
|
4069
3277
|
startDay: DateTime;
|
|
4070
3278
|
startLocation?: WonderlandTrailLocation;
|
|
@@ -4076,7 +3284,7 @@ declare class WonderlandTrailClient implements HttpClient {
|
|
|
4076
3284
|
allowIndividualSites?: boolean;
|
|
4077
3285
|
allowGroupSites?: boolean;
|
|
4078
3286
|
campsitesToAvoid?: JavascriptIterable<WonderlandTrailLocation>;
|
|
4079
|
-
}): PromiseAsyncResult<Iterable
|
|
3287
|
+
}): PromiseAsyncResult<Iterable<WonderlandTrailItinerary>>;
|
|
4080
3288
|
}
|
|
4081
3289
|
|
|
4082
|
-
export { type AssertMessageParameters, AsyncIterator
|
|
3290
|
+
export { type AssertMessageParameters, AsyncIterator, AsyncIteratorToJavascriptAsyncIteratorAdapter, AsyncResult, ByteList, ByteListStream, ByteReadStream, ByteWriteStream, Bytes, CharacterList, CharacterListStream, CharacterReadStream, CharacterReadStreamAsyncIterator, CharacterWriteStream, CommandLineParameter, CommandLineParameters, Comparable, Comparer, Comparison, ConcatenateIterable, ConcatenateIterator, Condition, CurrentProcess, DateTime, Disposable, EmptyError, EqualFunctions, FetchHttpClient, FetchHttpIncomingResponse, FlatMapIterable, FlatMapIterator, Generator, type GeneratorControl, HttpClient, HttpHeader, HttpHeaders, HttpIncomingRequest, HttpIncomingResponse, HttpMethod, HttpOutgoingRequest, HttpOutgoingResponse, HttpServer, InMemoryCharacterWriteStream, Iterable, Iterator, IteratorToJavascriptIteratorAdapter, JavascriptArrayList, JavascriptAsyncIterable, JavascriptAsyncIterator, JavascriptAsyncIteratorToAsyncIteratorAdapter, JavascriptIterable, JavascriptIterator, JavascriptIteratorResult, JavascriptIteratorToIteratorAdapter, JavascriptMapMap, JavascriptSetSet, List, ListQueue, ListStack, LuxonDateTime, Map, MapAsyncIterator, type MapEntry, MapIterable, MapIterator, MutableCondition, MutableHttpHeaders, MutableMap, Network, Node, NodeJSCharacterWriteStream, NodeJSHttpIncomingRequest, NodeJSHttpServer, NotFoundError, PostCondition, PostConditionError, PreCondition, PreConditionError, PromiseAsyncResult, Property, Queue, RealNetwork, RecreationDotGovClient, RecreationDotGovDivisionAvailability, type RecreationDotGovDivisionAvailabilityJson, type RecreationDotGovDivisionDayAvailability, type RecreationDotGovDivisionJson, RecreationDotGovError, type RecreationDotGovErrorResponse, type RecreationDotGovPermitItineraryJson, SearchControl, Set, SkipAsyncIterator, SkipIterator, Stack, StringComparer, StringIterator, SyncDisposable, SyncResult, TakeAsyncIterator, TakeIterator, ToStringFunctions, Type, WhereAsyncIterator, WhereIterable, WhereIterator, WonderlandTrailAvailability, type WonderlandTrailAvailabilityType, WonderlandTrailClient, WonderlandTrailConnection, WonderlandTrailConnections, WonderlandTrailDirection, WonderlandTrailItinerary, type WonderlandTrailLocation, WonderlandTrailLocations, WonderlandTrailReservationType, andList, depthFirstSearch, escape, escapeAndQuote, getLength, httpMethodToString, isDigit, isLetter, isLetterOrDigit, isLowercasedLetter, isMap, isMutableMap, isSet, isUppercasedLetter, isWhitespace, isWonderlandTrailLocation, join, orList, parseHttpMethod, quote, toString };
|