utilium 0.8.1 → 0.8.2

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/dom.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Upload a file
3
3
  * @todo use Promise.withResolvers
4
4
  */
5
- export declare function upload(type: string, multiple?: boolean): Promise<File>;
5
+ export declare function upload(type?: string, multiple?: boolean): Promise<File>;
6
6
  /**
7
7
  * Downloads some data
8
8
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utilium",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Typescript utilities",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/dom.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Upload a file
5
5
  * @todo use Promise.withResolvers
6
6
  */
7
- export function upload(type: string, multiple = false): Promise<File> {
7
+ export function upload(type?: string, multiple = false): Promise<File> {
8
8
  return new Promise<File>((resolve, reject) => {
9
9
  const input = document.createElement('input');
10
10
  input.type = 'file';