@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 +2 -1
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
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) =>
|
|
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) =>
|
|
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
|
|