@alextheman/utility 2.9.0 → 2.10.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
@@ -8,7 +8,7 @@ declare function camelToKebab(string: string): string;
8
8
 
9
9
  declare function convertFileToBase64(file: File): Promise<string>;
10
10
 
11
- declare function createFormData(data: Record<string, string | object | Blob>): FormData;
11
+ declare function createFormData<T extends Record<string, string | object | Blob>>(data: T): FormData;
12
12
 
13
13
  declare function fillArray<T>(callback: (index: number) => T | Promise<T>, length?: number): T[] | Promise<T[]>;
14
14
 
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ declare function camelToKebab(string: string): string;
8
8
 
9
9
  declare function convertFileToBase64(file: File): Promise<string>;
10
10
 
11
- declare function createFormData(data: Record<string, string | object | Blob>): FormData;
11
+ declare function createFormData<T extends Record<string, string | object | Blob>>(data: T): FormData;
12
12
 
13
13
  declare function fillArray<T>(callback: (index: number) => T | Promise<T>, length?: number): T[] | Promise<T[]>;
14
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/utility",
3
- "version": "2.9.0",
3
+ "version": "2.10.1",
4
4
  "description": "Helpful utility functions",
5
5
  "license": "ISC",
6
6
  "author": "alextheman",