@ngx-dropzone/cdk
Version:
CDK with basic dropzone functionality.
17 lines (16 loc) • 686 B
TypeScript
import { ValidatorFn } from '@angular/forms';
export declare class FileInputValidators {
/**
* Checks if the file size is equal or greater than the minimum size.
* Validates every file within array or single file. Returns no error when null.
*/
static minSize(min: number): ValidatorFn;
/**
* Checks if the file size is equal or smaller than the allowed size.
* Validates every file within array or single file. Returns no error when null.
*/
static maxSize(max: number): ValidatorFn;
/** Checks if all provided files match the specified `accept` value. */
static accept(accept: string): ValidatorFn;
private static validate;
}