1 | import { ErrorHttpStatusCode } from '../../utils/http-error-by-code.util';
|
2 | import { FileValidator } from './file-validator.interface';
|
3 | /**
|
4 | * @publicApi
|
5 | */
|
6 | export 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 | }
|