UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

18 lines (17 loc) • 570 B
import { FileValidator } from './file-validator.interface'; import { IFile } from './interfaces'; export type MaxFileSizeValidatorOptions = { maxSize: number; message?: string | ((maxSize: number) => string); }; /** * Defines the built-in MaxSize File Validator * * @see [File Validators](https://docs.nestjs.com/techniques/file-upload#file-validation) * * @publicApi */ export declare class MaxFileSizeValidator extends FileValidator<MaxFileSizeValidatorOptions, IFile> { buildErrorMessage(file?: IFile): string; isValid(file?: IFile): boolean; }