UNPKG

698 BTypeScriptView Raw
1import { MultipartFile } from '../src/multipart/file.js';
2import { FileValidationOptions } from '../src/types.js';
3type FileFactoryParameters = {
4 fieldName: string;
5 clientName: string;
6 headers: any;
7 size: number;
8 extname: string;
9 type: string;
10 subtype: string;
11};
12/**
13 * File factory exposes the API to create fake multipart file instances
14 * for testing
15 */
16export declare class MultipartFileFactory {
17 #private;
18 /**
19 * Merge factory params
20 */
21 merge(params: Partial<FileFactoryParameters>): this;
22 /**
23 * Create an instance of multipart file
24 */
25 create(validationOptions?: Partial<FileValidationOptions>): MultipartFile;
26}
27export {};