You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
637 B
18 lines
637 B
import { FastifyRequest } from 'fastify';
|
|
import { File } from '../interfaces';
|
|
export declare type Strategy = 'NONE' | 'VALUE' | 'ARRAY' | 'OBJECT';
|
|
declare type Placeholder = {
|
|
fieldname?: string;
|
|
};
|
|
declare class FileAppender {
|
|
strategy: Strategy;
|
|
request: FastifyRequest;
|
|
constructor(strategy: Strategy, request: FastifyRequest);
|
|
insertPlaceholder(file: Pick<File, 'fieldname' | 'originalname' | 'encoding' | 'mimetype'>): {
|
|
fieldname: string;
|
|
};
|
|
removePlaceholder(placeholder: Placeholder): void;
|
|
replacePlaceholder(placeholder: Placeholder, file: File): void;
|
|
}
|
|
export default FileAppender;
|