react-files-uploading
Version:
The simple files uploader applied Render Props pattern. This approach allows you to fully control UI component and behaviours.
13 lines (12 loc) • 620 B
TypeScript
import { ErrorsType } from './typings';
export declare const isMaxFileSizeValid: (fileSize: number, maxFileSize?: number) => boolean;
export declare const isAcceptTypeValid: (acceptType: string[] | null, fileName: string) => boolean;
export declare const isMaxNumberValid: (totalNumber: number, maxNumber: number | null, keyUpdate: number | null) => boolean;
export declare const getErrorValidation: ({ fileList, value, maxNumber, keyUpdate, acceptType, maxFileSize, }: {
fileList: any;
value: any;
maxNumber: any;
keyUpdate: any;
acceptType: any;
maxFileSize: any;
}) => ErrorsType;