@alextheman/utility 4.3.4 → 4.3.5

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/dist/index.cjs CHANGED
@@ -49,7 +49,7 @@ var VERSION_NUMBER_REGEX_default = VERSION_NUMBER_REGEX;
49
49
  *
50
50
  * @category Array Helpers
51
51
  *
52
- * @template ItemType
52
+ * @template ItemType - The return type of the callback (awaited if any items are a Promise) that becomes the type of the array items.
53
53
  *
54
54
  * @param callback - A function invoked with the current index. May return a value or a Promise.
55
55
  * @param length - The desired length of the resulting array.
package/dist/index.d.cts CHANGED
@@ -13,7 +13,7 @@ declare const VERSION_NUMBER_REGEX: string;
13
13
  * The callback will be invoked once for each index from `0` to `length - 1`.
14
14
  * If no length is provided, a single-element array will be produced.
15
15
  *
16
- * @template ItemType
16
+ * @template ItemType - The awaited return type of the callback that becomes the type of the array items.
17
17
  *
18
18
  * @param callback - An asynchronous function invoked with the current index.
19
19
  * @param length - The desired length of the resulting array.
@@ -27,7 +27,7 @@ declare function fillArray<ItemType>(callback: (index: number) => Promise<ItemTy
27
27
  * The callback will be invoked once for each index from `0` to `length - 1`.
28
28
  * If no length is provided, a single-element array will be produced.
29
29
  *
30
- * @template ItemType
30
+ * @template ItemType - The return type of the callback that becomes the type of the array items.
31
31
  *
32
32
  * @param callback - A synchronous function invoked with the current index.
33
33
  * @param length - The desired length of the resulting array.
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@ declare const VERSION_NUMBER_REGEX: string;
13
13
  * The callback will be invoked once for each index from `0` to `length - 1`.
14
14
  * If no length is provided, a single-element array will be produced.
15
15
  *
16
- * @template ItemType
16
+ * @template ItemType - The awaited return type of the callback that becomes the type of the array items.
17
17
  *
18
18
  * @param callback - An asynchronous function invoked with the current index.
19
19
  * @param length - The desired length of the resulting array.
@@ -27,7 +27,7 @@ declare function fillArray<ItemType>(callback: (index: number) => Promise<ItemTy
27
27
  * The callback will be invoked once for each index from `0` to `length - 1`.
28
28
  * If no length is provided, a single-element array will be produced.
29
29
  *
30
- * @template ItemType
30
+ * @template ItemType - The return type of the callback that becomes the type of the array items.
31
31
  *
32
32
  * @param callback - A synchronous function invoked with the current index.
33
33
  * @param length - The desired length of the resulting array.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ var VERSION_NUMBER_REGEX_default = VERSION_NUMBER_REGEX;
20
20
  *
21
21
  * @category Array Helpers
22
22
  *
23
- * @template ItemType
23
+ * @template ItemType - The return type of the callback (awaited if any items are a Promise) that becomes the type of the array items.
24
24
  *
25
25
  * @param callback - A function invoked with the current index. May return a value or a Promise.
26
26
  * @param length - The desired length of the resulting array.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/utility",
3
- "version": "4.3.4",
3
+ "version": "4.3.5",
4
4
  "description": "Helpful utility functions",
5
5
  "repository": {
6
6
  "type": "git",