voiptime-components 1.12.0 → 1.12.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.cjs.js +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +1 -0
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -857,6 +857,13 @@ export declare interface FieldValidation {
|
|
|
857
857
|
$validate(): Promise<boolean>;
|
|
858
858
|
}
|
|
859
859
|
|
|
860
|
+
export declare class FileValidator {
|
|
861
|
+
static validateSize(file: File, maxSize?: number): boolean;
|
|
862
|
+
static validateType(file: File, accept?: string): boolean;
|
|
863
|
+
static formatFileSize(bytes: number): string;
|
|
864
|
+
static generateId(): string;
|
|
865
|
+
}
|
|
866
|
+
|
|
860
867
|
export declare const FORMAT_TOKENS: Record<string, FormatToken>;
|
|
861
868
|
|
|
862
869
|
export declare const formatTime: (hour: number, minute: number, second?: number, format?: string, use12Hours?: boolean) => string;
|