@fewangsit/wangsvue 1.5.207-alpha.0 → 1.5.207-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue",
3
- "version": "1.5.207-alpha.0",
3
+ "version": "1.5.207-alpha.1",
4
4
  "author": "fewangsit",
5
5
  "description": "Wangsit VueJS Component Library",
6
6
  "module": "./wangsvue.es.js",
@@ -29,9 +29,10 @@ export declare const formatFile: (file: File) => FormattedFile;
29
29
  * Checks if a file is under the maximum size limit.
30
30
  *
31
31
  * @param file The file to be checked.
32
+ * @param customFileSize The maximum size limit in megabytes. @default 1
32
33
  * @returns True if the file is under the maximum size limit, false otherwise.
33
34
  */
34
- export declare const validateFileSize: (file: File) => boolean;
35
+ export declare const validateFileSize: (file: File, customFileSize?: number) => boolean;
35
36
  /**
36
37
  * Checks if a file has a valid type.
37
38
  * Make sure user doesn't upload a folder.