UNPKG

436 BTypeScriptView Raw
1import { ErrorHttpStatusCode } from '../../utils/http-error-by-code.util';
2import { FileValidator } from './file-validator.interface';
3/**
4 * @publicApi
5 */
6export interface ParseFileOptions {
7 validators?: FileValidator[];
8 errorHttpStatusCode?: ErrorHttpStatusCode;
9 exceptionFactory?: (error: string) => any;
10 /**
11 * Defines if file parameter is required.
12 * @default true
13 */
14 fileIsRequired?: boolean;
15}