@ls-stack/utils 3.30.1 → 3.32.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.
@@ -10,7 +10,7 @@
10
10
 
11
11
  ### ConcurrentCalls\<R, E\>
12
12
 
13
- Defined in: [packages/utils/src/concurrentCalls.ts:124](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L124)
13
+ Defined in: [packages/utils/src/concurrentCalls.ts:141](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L141)
14
14
 
15
15
  #### Type Parameters
16
16
 
@@ -20,20 +20,38 @@ Defined in: [packages/utils/src/concurrentCalls.ts:124](https://github.com/lucas
20
20
 
21
21
  ##### E
22
22
 
23
- `E` *extends* `Error` = `Error`
23
+ `E` *extends* `ResultValidErrors` = `Error`
24
24
 
25
25
  #### Constructors
26
26
 
27
27
  ##### Constructor
28
28
 
29
29
  ```ts
30
- new ConcurrentCalls<R, E>(): ConcurrentCalls<R, E>;
30
+ new ConcurrentCalls<R, E>(allowResultify): ConcurrentCalls<R, E>;
31
31
  ```
32
32
 
33
+ Defined in: [packages/utils/src/concurrentCalls.ts:146](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L146)
34
+
35
+ ###### Parameters
36
+
37
+ ###### allowResultify
38
+
39
+ `boolean`
40
+
33
41
  ###### Returns
34
42
 
35
43
  [`ConcurrentCalls`](#concurrentcalls)\<`R`, `E`\>
36
44
 
45
+ #### Properties
46
+
47
+ ##### allowResultify
48
+
49
+ ```ts
50
+ allowResultify: boolean = true;
51
+ ```
52
+
53
+ Defined in: [packages/utils/src/concurrentCalls.ts:144](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L144)
54
+
37
55
  #### Methods
38
56
 
39
57
  ##### add()
@@ -42,7 +60,7 @@ new ConcurrentCalls<R, E>(): ConcurrentCalls<R, E>;
42
60
  add(...calls): this;
43
61
  ```
44
62
 
45
- Defined in: [packages/utils/src/concurrentCalls.ts:128](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L128)
63
+ Defined in: [packages/utils/src/concurrentCalls.ts:150](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L150)
46
64
 
47
65
  ###### Parameters
48
66
 
@@ -60,7 +78,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:128](https://github.com/lucas
60
78
  resultifyAdd(...calls): this;
61
79
  ```
62
80
 
63
- Defined in: [packages/utils/src/concurrentCalls.ts:134](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L134)
81
+ Defined in: [packages/utils/src/concurrentCalls.ts:156](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L156)
64
82
 
65
83
  ###### Parameters
66
84
 
@@ -78,7 +96,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:134](https://github.com/lucas
78
96
  runAll(__namedParameters): Promise<Result<R[], E>>;
79
97
  ```
80
98
 
81
- Defined in: [packages/utils/src/concurrentCalls.ts:151](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L151)
99
+ Defined in: [packages/utils/src/concurrentCalls.ts:179](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L179)
82
100
 
83
101
  ###### Parameters
84
102
 
@@ -103,7 +121,7 @@ runAllSettled(__namedParameters): Promise<{
103
121
  }>;
104
122
  ```
105
123
 
106
- Defined in: [packages/utils/src/concurrentCalls.ts:183](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L183)
124
+ Defined in: [packages/utils/src/concurrentCalls.ts:211](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L211)
107
125
 
108
126
  ###### Parameters
109
127
 
@@ -126,7 +144,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:183](https://github.com/lucas
126
144
 
127
145
  ### ConcurrentCallsWithMetadata\<M, R, E\>
128
146
 
129
- Defined in: [packages/utils/src/concurrentCalls.ts:250](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L250)
147
+ Defined in: [packages/utils/src/concurrentCalls.ts:277](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L277)
130
148
 
131
149
  #### Type Parameters
132
150
 
@@ -140,20 +158,38 @@ Defined in: [packages/utils/src/concurrentCalls.ts:250](https://github.com/lucas
140
158
 
141
159
  ##### E
142
160
 
143
- `E` *extends* `Error` = `Error`
161
+ `E` *extends* `ResultValidErrors` = `Error`
144
162
 
145
163
  #### Constructors
146
164
 
147
165
  ##### Constructor
148
166
 
149
167
  ```ts
150
- new ConcurrentCallsWithMetadata<M, R, E>(): ConcurrentCallsWithMetadata<M, R, E>;
168
+ new ConcurrentCallsWithMetadata<M, R, E>(allowResultify): ConcurrentCallsWithMetadata<M, R, E>;
151
169
  ```
152
170
 
171
+ Defined in: [packages/utils/src/concurrentCalls.ts:286](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L286)
172
+
173
+ ###### Parameters
174
+
175
+ ###### allowResultify
176
+
177
+ `boolean`
178
+
153
179
  ###### Returns
154
180
 
155
181
  [`ConcurrentCallsWithMetadata`](#concurrentcallswithmetadata)\<`M`, `R`, `E`\>
156
182
 
183
+ #### Properties
184
+
185
+ ##### allowResultify
186
+
187
+ ```ts
188
+ allowResultify: boolean = true;
189
+ ```
190
+
191
+ Defined in: [packages/utils/src/concurrentCalls.ts:284](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L284)
192
+
157
193
  #### Methods
158
194
 
159
195
  ##### add()
@@ -162,7 +198,7 @@ new ConcurrentCallsWithMetadata<M, R, E>(): ConcurrentCallsWithMetadata<M, R, E>
162
198
  add(...calls): this;
163
199
  ```
164
200
 
165
- Defined in: [packages/utils/src/concurrentCalls.ts:258](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L258)
201
+ Defined in: [packages/utils/src/concurrentCalls.ts:290](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L290)
166
202
 
167
203
  ###### Parameters
168
204
 
@@ -180,7 +216,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:258](https://github.com/lucas
180
216
  resultifyAdd(...items): this;
181
217
  ```
182
218
 
183
- Defined in: [packages/utils/src/concurrentCalls.ts:272](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L272)
219
+ Defined in: [packages/utils/src/concurrentCalls.ts:304](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L304)
184
220
 
185
221
  ###### Parameters
186
222
 
@@ -198,7 +234,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:272](https://github.com/lucas
198
234
  runAll(__namedParameters): Promise<Result<SucceededCall<R, M>[], FailedCall<M, E>>>;
199
235
  ```
200
236
 
201
- Defined in: [packages/utils/src/concurrentCalls.ts:292](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L292)
237
+ Defined in: [packages/utils/src/concurrentCalls.ts:330](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L330)
202
238
 
203
239
  ###### Parameters
204
240
 
@@ -225,7 +261,7 @@ runAllSettled(__namedParameters): Promise<{
225
261
  }>;
226
262
  ```
227
263
 
228
- Defined in: [packages/utils/src/concurrentCalls.ts:339](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L339)
264
+ Defined in: [packages/utils/src/concurrentCalls.ts:377](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L377)
229
265
 
230
266
  ###### Parameters
231
267
 
@@ -254,7 +290,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:339](https://github.com/lucas
254
290
  type Action<R, E> = () => Promise<Result<R, E>>;
255
291
  ```
256
292
 
257
- Defined in: [packages/utils/src/concurrentCalls.ts:117](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L117)
293
+ Defined in: [packages/utils/src/concurrentCalls.ts:134](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L134)
258
294
 
259
295
  #### Type Parameters
260
296
 
@@ -264,7 +300,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:117](https://github.com/lucas
264
300
 
265
301
  ##### E
266
302
 
267
- `E` *extends* `Error`
303
+ `E` *extends* `ResultValidErrors`
268
304
 
269
305
  #### Returns
270
306
 
@@ -272,13 +308,29 @@ Defined in: [packages/utils/src/concurrentCalls.ts:117](https://github.com/lucas
272
308
 
273
309
  ***
274
310
 
311
+ ### ErrorFromResult\<R\>
312
+
313
+ ```ts
314
+ type ErrorFromResult<R> = R extends Result<any, infer E> ? E : never;
315
+ ```
316
+
317
+ Defined in: [packages/utils/src/concurrentCalls.ts:480](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L480)
318
+
319
+ #### Type Parameters
320
+
321
+ ##### R
322
+
323
+ `R`
324
+
325
+ ***
326
+
275
327
  ### FailedCall\<M, E\>
276
328
 
277
329
  ```ts
278
330
  type FailedCall<M, E> = object;
279
331
  ```
280
332
 
281
- Defined in: [packages/utils/src/concurrentCalls.ts:112](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L112)
333
+ Defined in: [packages/utils/src/concurrentCalls.ts:129](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L129)
282
334
 
283
335
  #### Type Parameters
284
336
 
@@ -288,7 +340,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:112](https://github.com/lucas
288
340
 
289
341
  ##### E
290
342
 
291
- `E` *extends* `Error` = `Error`
343
+ `E` *extends* `ResultValidErrors` = `Error`
292
344
 
293
345
  #### Properties
294
346
 
@@ -298,7 +350,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:112](https://github.com/lucas
298
350
  error: E;
299
351
  ```
300
352
 
301
- Defined in: [packages/utils/src/concurrentCalls.ts:114](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L114)
353
+ Defined in: [packages/utils/src/concurrentCalls.ts:131](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L131)
302
354
 
303
355
  ##### metadata
304
356
 
@@ -306,7 +358,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:114](https://github.com/lucas
306
358
  metadata: M;
307
359
  ```
308
360
 
309
- Defined in: [packages/utils/src/concurrentCalls.ts:113](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L113)
361
+ Defined in: [packages/utils/src/concurrentCalls.ts:130](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L130)
310
362
 
311
363
  ***
312
364
 
@@ -316,7 +368,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:113](https://github.com/lucas
316
368
  type RunProps = object;
317
369
  ```
318
370
 
319
- Defined in: [packages/utils/src/concurrentCalls.ts:103](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L103)
371
+ Defined in: [packages/utils/src/concurrentCalls.ts:120](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L120)
320
372
 
321
373
  #### Properties
322
374
 
@@ -326,7 +378,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:103](https://github.com/lucas
326
378
  optional delayStart: (index) => number;
327
379
  ```
328
380
 
329
- Defined in: [packages/utils/src/concurrentCalls.ts:104](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L104)
381
+ Defined in: [packages/utils/src/concurrentCalls.ts:121](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L121)
330
382
 
331
383
  ###### Parameters
332
384
 
@@ -357,7 +409,7 @@ type SettledResultWithMetadata<R, M, E> =
357
409
  };
358
410
  ```
359
411
 
360
- Defined in: [packages/utils/src/concurrentCalls.ts:120](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L120)
412
+ Defined in: [packages/utils/src/concurrentCalls.ts:137](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L137)
361
413
 
362
414
  #### Type Parameters
363
415
 
@@ -371,7 +423,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:120](https://github.com/lucas
371
423
 
372
424
  ##### E
373
425
 
374
- `E` *extends* `Error` = `Error`
426
+ `E` *extends* `ResultValidErrors` = `Error`
375
427
 
376
428
  ***
377
429
 
@@ -381,7 +433,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:120](https://github.com/lucas
381
433
  type SucceededCall<R, M> = object;
382
434
  ```
383
435
 
384
- Defined in: [packages/utils/src/concurrentCalls.ts:108](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L108)
436
+ Defined in: [packages/utils/src/concurrentCalls.ts:125](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L125)
385
437
 
386
438
  #### Type Parameters
387
439
 
@@ -401,7 +453,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:108](https://github.com/lucas
401
453
  metadata: M;
402
454
  ```
403
455
 
404
- Defined in: [packages/utils/src/concurrentCalls.ts:110](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L110)
456
+ Defined in: [packages/utils/src/concurrentCalls.ts:127](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L127)
405
457
 
406
458
  ##### value
407
459
 
@@ -409,7 +461,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:110](https://github.com/lucas
409
461
  value: R;
410
462
  ```
411
463
 
412
- Defined in: [packages/utils/src/concurrentCalls.ts:109](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L109)
464
+ Defined in: [packages/utils/src/concurrentCalls.ts:126](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L126)
413
465
 
414
466
  ***
415
467
 
@@ -419,4 +471,20 @@ Defined in: [packages/utils/src/concurrentCalls.ts:109](https://github.com/lucas
419
471
  type ValidMetadata = string | number | boolean | Record<string, unknown>;
420
472
  ```
421
473
 
422
- Defined in: [packages/utils/src/concurrentCalls.ts:101](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L101)
474
+ Defined in: [packages/utils/src/concurrentCalls.ts:118](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L118)
475
+
476
+ ***
477
+
478
+ ### ValueFromResult\<R\>
479
+
480
+ ```ts
481
+ type ValueFromResult<R> = R extends Result<infer T, any> ? T : never;
482
+ ```
483
+
484
+ Defined in: [packages/utils/src/concurrentCalls.ts:479](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L479)
485
+
486
+ #### Type Parameters
487
+
488
+ ##### R
489
+
490
+ `R`
@@ -14,7 +14,7 @@
14
14
 
15
15
  ### ConcurrentCallsAggregateError
16
16
 
17
- Defined in: [packages/utils/src/concurrentCalls.ts:32](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L32)
17
+ Defined in: [packages/utils/src/concurrentCalls.ts:38](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L38)
18
18
 
19
19
  #### Extends
20
20
 
@@ -31,13 +31,13 @@ new ConcurrentCallsAggregateError(
31
31
  failed): ConcurrentCallsAggregateError;
32
32
  ```
33
33
 
34
- Defined in: [packages/utils/src/concurrentCalls.ts:37](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L37)
34
+ Defined in: [packages/utils/src/concurrentCalls.ts:43](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L43)
35
35
 
36
36
  ###### Parameters
37
37
 
38
38
  ###### errors
39
39
 
40
- `Error`[]
40
+ `ResultValidErrors`[]
41
41
 
42
42
  ###### total
43
43
 
@@ -62,10 +62,10 @@ AggregateError.constructor
62
62
  ##### errors
63
63
 
64
64
  ```ts
65
- errors: Error[] = [];
65
+ errors: ResultValidErrors[] = [];
66
66
  ```
67
67
 
68
- Defined in: [packages/utils/src/concurrentCalls.ts:33](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L33)
68
+ Defined in: [packages/utils/src/concurrentCalls.ts:39](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L39)
69
69
 
70
70
  ###### Overrides
71
71
 
@@ -79,7 +79,7 @@ AggregateError.errors
79
79
  failed: number = 0;
80
80
  ```
81
81
 
82
- Defined in: [packages/utils/src/concurrentCalls.ts:35](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L35)
82
+ Defined in: [packages/utils/src/concurrentCalls.ts:41](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L41)
83
83
 
84
84
  ##### total
85
85
 
@@ -87,13 +87,13 @@ Defined in: [packages/utils/src/concurrentCalls.ts:35](https://github.com/lucaso
87
87
  total: number = 0;
88
88
  ```
89
89
 
90
- Defined in: [packages/utils/src/concurrentCalls.ts:34](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L34)
90
+ Defined in: [packages/utils/src/concurrentCalls.ts:40](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L40)
91
91
 
92
92
  ***
93
93
 
94
94
  ### ConcurrentCallsWithMetadataAggregateError\<M\>
95
95
 
96
- Defined in: [packages/utils/src/concurrentCalls.ts:50](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L50)
96
+ Defined in: [packages/utils/src/concurrentCalls.ts:62](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L62)
97
97
 
98
98
  #### Extends
99
99
 
@@ -116,7 +116,7 @@ new ConcurrentCallsWithMetadataAggregateError<M>(
116
116
  failed): ConcurrentCallsWithMetadataAggregateError<M>;
117
117
  ```
118
118
 
119
- Defined in: [packages/utils/src/concurrentCalls.ts:58](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L58)
119
+ Defined in: [packages/utils/src/concurrentCalls.ts:70](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L70)
120
120
 
121
121
  ###### Parameters
122
122
 
@@ -147,10 +147,10 @@ AggregateError.constructor
147
147
  ##### errors
148
148
 
149
149
  ```ts
150
- errors: Error[] = [];
150
+ errors: ResultValidErrors[] = [];
151
151
  ```
152
152
 
153
- Defined in: [packages/utils/src/concurrentCalls.ts:53](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L53)
153
+ Defined in: [packages/utils/src/concurrentCalls.ts:65](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L65)
154
154
 
155
155
  ###### Overrides
156
156
 
@@ -164,12 +164,12 @@ AggregateError.errors
164
164
  errorsWithMetadata: object[] = [];
165
165
  ```
166
166
 
167
- Defined in: [packages/utils/src/concurrentCalls.ts:54](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L54)
167
+ Defined in: [packages/utils/src/concurrentCalls.ts:66](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L66)
168
168
 
169
169
  ###### error
170
170
 
171
171
  ```ts
172
- error: Error;
172
+ error: ResultValidErrors;
173
173
  ```
174
174
 
175
175
  ###### metadata
@@ -184,7 +184,7 @@ metadata: M;
184
184
  failed: number = 0;
185
185
  ```
186
186
 
187
- Defined in: [packages/utils/src/concurrentCalls.ts:56](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L56)
187
+ Defined in: [packages/utils/src/concurrentCalls.ts:68](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L68)
188
188
 
189
189
  ##### total
190
190
 
@@ -192,7 +192,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:56](https://github.com/lucaso
192
192
  total: number = 0;
193
193
  ```
194
194
 
195
- Defined in: [packages/utils/src/concurrentCalls.ts:55](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L55)
195
+ Defined in: [packages/utils/src/concurrentCalls.ts:67](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L67)
196
196
 
197
197
  ## Functions
198
198
 
@@ -202,7 +202,7 @@ Defined in: [packages/utils/src/concurrentCalls.ts:55](https://github.com/lucaso
202
202
  function concurrentCalls<R>(): ConcurrentCalls<R, Error>;
203
203
  ```
204
204
 
205
- Defined in: [packages/utils/src/concurrentCalls.ts:246](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L246)
205
+ Defined in: [packages/utils/src/concurrentCalls.ts:273](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L273)
206
206
 
207
207
  Executes multiple asynchronous calls concurrently and collects the results in a easier to use format.
208
208
 
@@ -226,9 +226,9 @@ The type of the result value.
226
226
  function concurrentCallsWithMetadata<M, R>(): ConcurrentCallsWithMetadata<M, R, Error>;
227
227
  ```
228
228
 
229
- Defined in: [packages/utils/src/concurrentCalls.ts:435](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L435)
229
+ Defined in: [packages/utils/src/concurrentCalls.ts:472](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L472)
230
230
 
231
- Executes multiple asynchronous calls concurrently and collects the results in a easier to use format.
231
+ Executes multiple asynchronous calls concurrently with metadata for each call and collects the results in a easier to use format.
232
232
 
233
233
  #### Type Parameters
234
234
 
@@ -247,3 +247,53 @@ The type of the result value.
247
247
  #### Returns
248
248
 
249
249
  [`ConcurrentCallsWithMetadata`](-internal-.md#concurrentcallswithmetadata)\<`M`, `R`, `Error`\>
250
+
251
+ ***
252
+
253
+ ### concurrentResultCalls()
254
+
255
+ ```ts
256
+ function concurrentResultCalls<ResultFn>(): ConcurrentCalls<ValueFromResult<Awaited<ReturnType<ResultFn>>>, ErrorFromResult<Awaited<ReturnType<ResultFn>>>>;
257
+ ```
258
+
259
+ Defined in: [packages/utils/src/concurrentCalls.ts:487](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L487)
260
+
261
+ Executes multiple asynchronous result calls concurrently and collects the results in a easier to use format.
262
+
263
+ #### Type Parameters
264
+
265
+ ##### ResultFn
266
+
267
+ `ResultFn` *extends* (...`args`) => `Promise`\<`Result`\<`unknown`, `ResultValidErrors`\>\>
268
+
269
+ #### Returns
270
+
271
+ [`ConcurrentCalls`](-internal-.md#concurrentcalls)\<[`ValueFromResult`](-internal-.md#valuefromresult)\<`Awaited`\<`ReturnType`\<`ResultFn`\>\>\>, [`ErrorFromResult`](-internal-.md#errorfromresult)\<`Awaited`\<`ReturnType`\<`ResultFn`\>\>\>\>
272
+
273
+ ***
274
+
275
+ ### concurrentResultsWithMetadata()
276
+
277
+ ```ts
278
+ function concurrentResultsWithMetadata<M, ResultFn>(): ConcurrentCallsWithMetadata<M, ValueFromResult<Awaited<ReturnType<ResultFn>>>, ErrorFromResult<Awaited<ReturnType<ResultFn>>>>;
279
+ ```
280
+
281
+ Defined in: [packages/utils/src/concurrentCalls.ts:504](https://github.com/lucasols/utils/blob/main/packages/utils/src/concurrentCalls.ts#L504)
282
+
283
+ Executes multiple asynchronous result calls concurrently with metadata for each call and collects the results in a easier to use format.
284
+
285
+ #### Type Parameters
286
+
287
+ ##### M
288
+
289
+ `M` *extends* [`ValidMetadata`](-internal-.md#validmetadata)
290
+
291
+ ##### ResultFn
292
+
293
+ `ResultFn` *extends* (...`args`) => `Promise`\<`Result`\<`unknown`, `ResultValidErrors`\>\>
294
+
295
+ The type of the result function that will be called.
296
+
297
+ #### Returns
298
+
299
+ [`ConcurrentCallsWithMetadata`](-internal-.md#concurrentcallswithmetadata)\<`M`, [`ValueFromResult`](-internal-.md#valuefromresult)\<`Awaited`\<`ReturnType`\<`ResultFn`\>\>\>, [`ErrorFromResult`](-internal-.md#errorfromresult)\<`Awaited`\<`ReturnType`\<`ResultFn`\>\>\>\>
@@ -76,13 +76,93 @@ joinStrings('a', addBString ? 'b' : null, 'c') // 'ac' if addBString is false, '
76
76
 
77
77
  ***
78
78
 
79
+ ### convertToCamelCase()
80
+
81
+ ```ts
82
+ function convertToCamelCase(str): string;
83
+ ```
84
+
85
+ Defined in: [packages/utils/src/stringUtils.ts:72](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L72)
86
+
87
+ #### Parameters
88
+
89
+ ##### str
90
+
91
+ `string`
92
+
93
+ #### Returns
94
+
95
+ `string`
96
+
97
+ ***
98
+
99
+ ### convertToPascalCase()
100
+
101
+ ```ts
102
+ function convertToPascalCase(str): string;
103
+ ```
104
+
105
+ Defined in: [packages/utils/src/stringUtils.ts:65](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L65)
106
+
107
+ #### Parameters
108
+
109
+ ##### str
110
+
111
+ `string`
112
+
113
+ #### Returns
114
+
115
+ `string`
116
+
117
+ ***
118
+
119
+ ### convertToSentenceCase()
120
+
121
+ ```ts
122
+ function convertToSentenceCase(str): string;
123
+ ```
124
+
125
+ Defined in: [packages/utils/src/stringUtils.ts:77](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L77)
126
+
127
+ #### Parameters
128
+
129
+ ##### str
130
+
131
+ `string`
132
+
133
+ #### Returns
134
+
135
+ `string`
136
+
137
+ ***
138
+
79
139
  ### convertToSnakeCase()
80
140
 
81
141
  ```ts
82
142
  function convertToSnakeCase(str): string;
83
143
  ```
84
144
 
85
- Defined in: [packages/utils/src/stringUtils.ts:47](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L47)
145
+ Defined in: [packages/utils/src/stringUtils.ts:54](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L54)
146
+
147
+ #### Parameters
148
+
149
+ ##### str
150
+
151
+ `string`
152
+
153
+ #### Returns
154
+
155
+ `string`
156
+
157
+ ***
158
+
159
+ ### convertToTitleCase()
160
+
161
+ ```ts
162
+ function convertToTitleCase(str): string;
163
+ ```
164
+
165
+ Defined in: [packages/utils/src/stringUtils.ts:85](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L85)
86
166
 
87
167
  #### Parameters
88
168
 
@@ -99,7 +179,7 @@ Defined in: [packages/utils/src/stringUtils.ts:47](https://github.com/lucasols/u
99
179
  ### formatNum()
100
180
 
101
181
  ```ts
102
- function formatNum(num): string;
182
+ function formatNum(num, maxDecimalsOrOptions): string;
103
183
  ```
104
184
 
105
185
  Defined in: [packages/utils/src/stringUtils.ts:36](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L36)
@@ -110,6 +190,10 @@ Defined in: [packages/utils/src/stringUtils.ts:36](https://github.com/lucasols/u
110
190
 
111
191
  `number`
112
192
 
193
+ ##### maxDecimalsOrOptions
194
+
195
+ `number` | `NumberFormatOptions`
196
+
113
197
  #### Returns
114
198
 
115
199
  `string`
@@ -122,7 +206,7 @@ Defined in: [packages/utils/src/stringUtils.ts:36](https://github.com/lucasols/u
122
206
  function isSnakeCase(str): boolean;
123
207
  ```
124
208
 
125
- Defined in: [packages/utils/src/stringUtils.ts:43](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L43)
209
+ Defined in: [packages/utils/src/stringUtils.ts:50](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L50)
126
210
 
127
211
  #### Parameters
128
212
 
@@ -145,7 +229,7 @@ function truncateString(
145
229
  ellipsis): string;
146
230
  ```
147
231
 
148
- Defined in: [packages/utils/src/stringUtils.ts:54](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L54)
232
+ Defined in: [packages/utils/src/stringUtils.ts:92](https://github.com/lucasols/utils/blob/main/packages/utils/src/stringUtils.ts#L92)
149
233
 
150
234
  #### Parameters
151
235