@alextheman/utility 2.11.0 → 2.11.1

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.d.cts CHANGED
@@ -22,7 +22,8 @@ interface CreateFormDataOptionsNullableResolution {
22
22
  type CreateFormDataOptions = CreateFormDataOptionsUndefinedOrNullResolution | CreateFormDataOptionsNullableResolution;
23
23
  declare function createFormData<T extends Record<string, unknown>>(data: T, options?: CreateFormDataOptions): FormData;
24
24
 
25
- declare function fillArray<T>(callback: (index: number) => T | Promise<T>, length?: number): T[] | Promise<T[]>;
25
+ declare function fillArray<T>(callback: (index: number) => Promise<T>, length?: number): Promise<T[]>;
26
+ declare function fillArray<T>(callback: (index: number) => T, length?: number): T[];
26
27
 
27
28
  declare function formatDateAndTime(inputDate: Date): string;
28
29
 
package/dist/index.d.ts CHANGED
@@ -22,7 +22,8 @@ interface CreateFormDataOptionsNullableResolution {
22
22
  type CreateFormDataOptions = CreateFormDataOptionsUndefinedOrNullResolution | CreateFormDataOptionsNullableResolution;
23
23
  declare function createFormData<T extends Record<string, unknown>>(data: T, options?: CreateFormDataOptions): FormData;
24
24
 
25
- declare function fillArray<T>(callback: (index: number) => T | Promise<T>, length?: number): T[] | Promise<T[]>;
25
+ declare function fillArray<T>(callback: (index: number) => Promise<T>, length?: number): Promise<T[]>;
26
+ declare function fillArray<T>(callback: (index: number) => T, length?: number): T[];
26
27
 
27
28
  declare function formatDateAndTime(inputDate: Date): string;
28
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/utility",
3
- "version": "2.11.0",
3
+ "version": "2.11.1",
4
4
  "description": "Helpful utility functions",
5
5
  "license": "ISC",
6
6
  "author": "alextheman",