minSize
Creates a validation functions that validates the file size.
const validate = minSize(requirement, error);
Parameters
requirement
number
error
string
Return
validate
(value:
MaybeValue<
) =>File |
>File
[]string
Creates a validation functions that validates the file size.
const validate = minSize(requirement, error);
requirement
number
error
string
validate
(value: MaybeValue<File | File
[]
>
) => string