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 +1 -1
- package/package.json +1 -1
- package/src/dom.ts +1 -1
package/dist/dom.d.ts
CHANGED
package/package.json
CHANGED
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
|
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';
|